diff options
author | Daniel Golle <daniel@makrotopia.org> | 2022-09-08 02:34:28 +0100 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2022-09-08 02:51:11 +0100 |
commit | 1a6f6a1e8cbc29042f63771d5f05bdbe622d9078 (patch) | |
tree | 13ce4ba72ffc75cd541d8868f652821b87c38cd9 /target/linux | |
parent | 47306d47ef1873f11cbfb2cd24f4e12a83a31301 (diff) | |
download | upstream-1a6f6a1e8cbc29042f63771d5f05bdbe622d9078.tar.gz upstream-1a6f6a1e8cbc29042f63771d5f05bdbe622d9078.tar.bz2 upstream-1a6f6a1e8cbc29042f63771d5f05bdbe622d9078.zip |
mediatek: bpi-r3: make initramfs/recovery optional
Only include recovery image in SD card image generated for the
BananaPi BPi-R3 if building with CONFIG_TARGET_ROOTFS_INITRAMFS.
This allows to build images larger than 32 MB (the limit for
initramfs/recovery image) by deselecting initramfs.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/mediatek/image/filogic.mk | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/target/linux/mediatek/image/filogic.mk b/target/linux/mediatek/image/filogic.mk index dfc71bbb14..e366661240 100644 --- a/target/linux/mediatek/image/filogic.mk +++ b/target/linux/mediatek/image/filogic.mk @@ -62,7 +62,9 @@ define Device/bananapi_bpi-r3 ARTIFACT/sdcard.img.gz := mt7986-gpt sdmmc |\ pad-to 17k | bl2 sdmmc-ddr4 |\ pad-to 6656k | bl31-uboot bananapi_bpi-r3-sdmmc |\ - pad-to 12M | append-image-stage initramfs-recovery.itb |\ + $(if $(CONFIG_TARGET_ROOTFS_INITRAMFS),\ + pad-to 12M | append-image-stage initramfs-recovery.itb | check-size 44m |\ + ) \ pad-to 44M | bl2 spim-nand-ddr4 |\ pad-to 45M | bl31-uboot bananapi_bpi-r3-snand |\ pad-to 49M | bl2 nor-ddr4 |\ @@ -70,7 +72,10 @@ define Device/bananapi_bpi-r3 pad-to 51M | bl2 emmc-ddr4 |\ pad-to 52M | bl31-uboot bananapi_bpi-r3-emmc |\ pad-to 56M | mt7986-gpt emmc |\ - pad-to 64M | append-image squashfs-sysupgrade.itb | gzip + $(if $(CONFIG_TARGET_ROOTFS_SQUASHFS),\ + pad-to 64M | append-image squashfs-sysupgrade.itb | check-size | gzip \ + ) + IMAGE_SIZE := $$(shell expr 64 + $$(CONFIG_TARGET_ROOTFS_PARTSIZE))m KERNEL := kernel-bin | gzip KERNEL_INITRAMFS := kernel-bin | lzma | \ fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd | pad-to 64k |