diff options
author | Daniel Golle <daniel@makrotopia.org> | 2022-09-08 02:44:30 +0100 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2022-09-18 15:39:41 +0100 |
commit | 29c5d5d3da5bf887c0a2bb0be8438c5da2695818 (patch) | |
tree | 2646bdea4efeef083542ada55b69622afc1bf593 /target | |
parent | d10352917b3b4baf3feae65e95286fa6e64ac15e (diff) | |
download | upstream-29c5d5d3da5bf887c0a2bb0be8438c5da2695818.tar.gz upstream-29c5d5d3da5bf887c0a2bb0be8438c5da2695818.tar.bz2 upstream-29c5d5d3da5bf887c0a2bb0be8438c5da2695818.zip |
mediatek: bpi-r64: make initramfs/recovery optional
Only include recovery image in SD card image generated for the
BananaPi BPi-R64 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>
(cherry picked from commit 50c892d67bb4af90861be9fbb6831c2eeb62de11)
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/mediatek/image/mt7622.mk | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/target/linux/mediatek/image/mt7622.mk b/target/linux/mediatek/image/mt7622.mk index 8ec58ff776..ffcc3e564e 100644 --- a/target/linux/mediatek/image/mt7622.mk +++ b/target/linux/mediatek/image/mt7622.mk @@ -86,13 +86,18 @@ define Device/bananapi_bpi-r64 ARTIFACT/sdcard.img.gz := mt7622-gpt sdmmc |\ pad-to 512k | bl2 sdmmc-2ddr |\ pad-to 2048k | bl31-uboot bananapi_bpi-r64-sdmmc |\ - pad-to 6144k | append-image-stage initramfs-recovery.itb |\ + $(if $(CONFIG_TARGET_ROOTFS_INITRAMFS),\ + pad-to 6144k | append-image-stage initramfs-recovery.itb | checksize 38912k |\ + ) \ pad-to 38912k | mt7622-gpt emmc |\ pad-to 39424k | bl2 emmc-2ddr |\ pad-to 40960k | bl31-uboot bananapi_bpi-r64-emmc |\ pad-to 43008k | bl2 snand-2ddr |\ pad-to 43520k | bl31-uboot bananapi_bpi-r64-snand |\ - pad-to 46080k | append-image squashfs-sysupgrade.itb | gzip + $(if $(CONFIG_TARGET_ROOTFS_SQUASHFS),\ + pad-to 46080k | append-image squashfs-sysupgrade.itb | check-size | gzip \ + ) + IMAGE_SIZE := $$(shell expr 45 + $$(CONFIG_TARGET_ROOTFS_PARTSIZE))m KERNEL := kernel-bin | gzip KERNEL_INITRAMFS := kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb with-initrd | pad-to 128k IMAGE/sysupgrade.itb := append-kernel | fit gzip $$(DTS_DIR)/$$(DEVICE_DTS).dtb external-static-with-rootfs | append-metadata |