BOOT_MB := 62
ROOT_MB := 959
+fstype := ext4
+
config.mk:
cp "config.example" "$@"
endef
endif
-fstype := ext4
-
ifdef disk
VOLUME := ${disk}
PBOOT := ${disk}1
endef
PACKAGES += firmware-brcm80211 libraspberrypi-bin libraspberrypi0 pi-bluetooth raspberrypi-bootloader raspberrypi-kernel initramfs-tools btrfs-tools
- fstype := btrfs
_target: _umount _config
_sparse: ${PBOOT} ${PROOT}
-ifdef raspi
-_format_root: ${PROOT}
- -umount "$${CFGROOT}/boot" "$${CFGROOT}" "${PROOT}"
- mkfs.${fstype} -f -L FSROOT "$${PROOT}"
+ifeq "${fstype}" "ext4"
+ fsflag:=-F
else
+ fsflag:=-f
+endif
+
_format_root: ${PROOT}
-umount "$${CFGROOT}/boot" "$${CFGROOT}" "${PROOT}"
- mkfs.ext4 -F -L FSROOT "$${PROOT}"
-endif
+ mkfs.${fstype} ${fsflag} -L FSROOT "$${PROOT}"
_format_boot: ${PBOOT}
-umount "$${CFGROOT}/boot" "${PBOOT}"