571 Commits

Author SHA1 Message Date
Serge Schneider
2aa7133eea Create WORK_DIR earlier
The exit trap uses the log function which writes to a log file in WORK_DIR.
2024-10-29 15:30:58 +00:00
Matthew Lear
b8e497cf21
Allow export image customisation (#801)
* Allow export image customisation

Add new variable EXPORT_CONFIG_DIR to set the location of the scripts
pigen will run when exporting an image. Setting this is optional. If
not specified, the current location is retained.

By utilising STAGE_LIST AND EXPORT_CONFIG_DIR, a user can construct
custom images out-of-tree without modification to any defaults.

(cherry picked from commit e5e6ceeaf46f52f77b759d3d35aef8bbd0a69c8b)

* Shellcheck and style fixes

Fixed shellcheck warnings and made the changes more consistent with the surrounding code

---------

Co-authored-by: Serge Schneider <serge@raspberrypi.com>
2024-10-29 10:15:10 +00:00
Serge Schneider
9dfbb1546d Update release notes 2024-10-28 14:58:23 +00:00
Serge Schneider
f165f8a3a8 Update release notes 2024-10-28 14:58:23 +00:00
Serge Schneider
9e65ea75d8 Update release notes 2024-10-28 14:58:23 +00:00
Serge Schneider
8f88b83a9a stage4: install squeekboard 2024-10-28 14:58:23 +00:00
Serge Schneider
674c30e864 Replace python3-rpi.gpio with python3-rpi-lgpio 2024-10-28 14:58:23 +00:00
Serge Schneider
a766e71ff1 stage3: switch from arandr to raindrop 2024-10-28 14:58:23 +00:00
Serge Schneider
40a5c1ceed stage3: switch to labwc by default 2024-10-28 14:58:23 +00:00
Serge Schneider
7fe9ae553c stage3: Switch chromium package and remove unnecessary steps 2024-10-28 14:58:23 +00:00
Serge Schneider
21e8e54d22 export-image: generate sbom file if syft is available 2024-10-28 14:58:23 +00:00
Sébastien Le Ray
dca93d24c7
README: add specific stage build for Docker (#777) 2024-07-09 10:08:38 +01:00
Serge Schneider
0b115f302a stage4: Pre-install rpi-connect 2024-06-24 14:01:25 +01:00
Serge Schneider
ca5eb625d8 Enable DWC2 host mode support for CM5 by default 2024-06-24 10:43:37 +01:00
Serge Schneider
9b17be9621 Update release notes 2024-06-19 12:22:39 +01:00
Serge Schneider
07ab464853 stage4: Pre-install labwc 2024-06-19 12:22:22 +01:00
Serge Schneider
75fe47c757 Increase default swap size to 200 2024-05-27 13:48:11 +01:00
Tom Dewey
fb48183f0d
Expand trap cleanup function (#773)
* build.sh: Unmount intermediates on trap

Iterate through image files which might be in use and detach them

Avoid silent failures - let the user know whether the build failed

* common: update unmount_image

Use udevadm settle instead of sleep if possible

Use losetup's -j option to find the loop device associated with a give image file

* build.sh: update clean-up trap term

---------

Co-authored-by: Serge Schneider <serge@raspberrypi.com>
2024-05-15 15:50:40 +01:00
Pev
d790fed832
Compare mount output using base of dirname (#771)
* Compare mount output using base of dirname

If you're building from a bind-mounted directory, the build will
fail as it will find two entries to unmount, but a single unmount
will remove them both causing an error. Adding a space means that
the mountpoint will only match with a single mount entry ; the
expected path, rather than the pre bind-mount.

* Switch to awk instead of mount, grep, cut pipes

Retry unmount 5 times and give up, letting the user know that they need to resolve the issue manually

---------

Co-authored-by: David Peverley <pev@analogue-micro.com>
Co-authored-by: Serge Schneider <serge@raspberrypi.com>
2024-05-15 15:45:43 +01:00
Serge Schneider
9917c869a7 README.md: Consistent formatting of 'Default' values 2024-05-13 16:41:17 +01:00
Serge Schneider
d87f764fcb build.sh: Warn user of unsupported build environment architecture and fail early if binfmt_misc isn't working as expected 2024-05-13 16:10:11 +01:00
Serge Schneider
e95e00f879 Set a default IMG_NAME
This also adds the 'ARCH' environment variable, which will help reduce the delta between master and arm64 branches.
2024-05-13 16:10:11 +01:00
Serge Schneider
f1c166a283 export-image: run du with -x to avoid crossing filesystem boundaries
Fixes #537
2024-04-29 14:37:36 +01:00
Kristof Nachtergaele
5780b1ff64 export stage list 2024-04-29 10:52:50 +01:00
Serge Schneider
165e960237 Fix keyboard configuration
keyboard-configuration scripts ignores debconf settings if it doesn't
detect an attached keyboard. Instead, it sets XKBOPTIONS to
lv3:ralt_switch, which is not a desired option. It also considers an
empty XKBOPTIONS string to be unset. This workaround sets it to a
placeholder value which is removed later. dpkg-reconfigure is run
so that debconf-get-selections prints the correct values.
2024-04-18 11:29:40 +01:00
Serge Schneider
c70f96f146 stage5: smartsim has been removed from recommended apps 2024-04-09 15:51:44 +01:00
Serge Schneider
7ce2538bca Revert "Added docker-compose.yml for easy apt-cacher-ng startup"
This reverts commit fe45b739871c2eba65ec520e00816299abbfbc5b.

It's probably a bad idea to reference docker containers from unofficial sources
2024-04-09 15:27:24 +01:00
Serge Schneider
1109642814 Update release notes 2024-03-15 14:54:55 +00:00
Serge Schneider
af5a88a20a stage4: add openocd 2024-03-13 19:53:05 +00:00
Serge Schneider
3b5e214f5e export-image: format boot partition with appropriate FAT size 2024-03-13 18:16:30 +00:00
Serge Schneider
b829737d2a Update release notes 2024-03-13 15:46:00 +00:00
Serge Schneider
d92bef11f4 stage4: add meson 2024-03-13 15:45:15 +00:00
Serge Schneider
99e19802c3 stage4: remove disable-pwr-button substage
Desktop is now started with systemd-inhibit
2024-03-13 15:14:08 +00:00
Serge Schneider
e8d8670b6c Update release notes 2024-03-11 14:52:14 +00:00
Serge Schneider
4ce1f1fa89 stage3: Remove fbturbo 2024-03-11 14:49:23 +00:00
Serge Schneider
57c641a64d Update release notes 2024-03-07 23:17:56 +00:00
Serge Schneider
1ce1f1c913 Replace libcamera-apps with rpicam-apps 2024-03-04 08:54:17 +00:00
Christian Kuhtz
82e5642ad1
README.md: Add xxd dependency (#750) 2024-02-26 14:12:43 +00:00
Serge Schneider
c029146a13 ensure_loopdev_partitions: let udev settle 2024-02-26 14:04:17 +00:00
Serge Schneider
94cbf476a5 Create .gitlab-ci.yml file 2024-02-26 14:04:17 +00:00
Mark Spatz
502e5fa0e3
Remove QCOW2 build mechanism (#648) 2024-02-23 04:19:10 +00:00
Tom Dewey
69037ce9fe
Update README.md (#755)
Remove references to 'Raspbian', and instead refer to 'Raspberry Pi OS'.

Additionally, a first pass of editing for conciseness.

Replace bookworm instructions with bullseye
2024-02-19 14:32:58 +00:00
Serge Schneider
c20ce09fac export-image: make sure initramfs is created
Fixes #749
2024-01-30 14:43:17 +00:00
Serge Schneider
0425477d19 stage2: rc.local drop-in no longer required, since Debian ships its own version 2024-01-23 15:13:46 +00:00
Serge Schneider
a125344731 Remove cmdline.txt and config.txt symlinks 2024-01-22 14:48:55 +00:00
Serge Schneider
e682f62aed stage3: add vulkan support 2024-01-17 17:34:49 +00:00
Serge Schneider
30fa760eb1 stage0: prevent kernel packages from creating useless symlinks 2024-01-17 17:34:18 +00:00
Serge Schneider
a143895f0a stage0: Check whether foreign architecture is needed 2024-01-17 16:20:55 +00:00
Serge Schneider
ec04064a55 stage0: Only disable initramfs updates if update-initramfs.conf exists 2024-01-17 16:20:55 +00:00
Serge Schneider
c5fdb01eac Update release notes 2024-01-17 16:20:55 +00:00