VOLUME := ${raspi}
PBOOT := rpi_boot.img
PROOT := rpi_root.img
-SYSROOT := sys_root_${release}_${ARCH}/
CFGROOT := img_mount/
define SOURCES :=
deb http://deb.debian.org/debian ${release} main non-free-firmware
-deb https://deb.debian.org/debian-security/ ${release}/updates main
+deb https://deb.debian.org/debian-security/ ${release}-security main
endef
PACKAGES += firmware-brcm80211 bluez-firmware initramfs-tools e2fsprogs raspi-firmware linux-image-arm64
_target: _umount
clean: _raspberry_clean
+export VOLUME PBOOT SQUASH
+
img_mount/:
mkdir -p -m 755 "$@"
chmod 755 "$@"
${BOOT_MB} "$$((${BOOT_MB} + 2))" ${ROOT_MB} | sfdisk "$${VOLUME}"
_raspberry_fstab:
- printf '%%s\n' \
+ printf '%s\n' \
'LABEL=FSROOT / ${fstype} auto,nofail,rw 0 0' \
'LABEL=BOOT /boot/firmware vfat auto,nofail,ro 0 0' \
>"$${CFGROOT}/etc/fstab"