mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 23:42:43 +00:00
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>
This commit is contained in:
parent
1a6f6a1e8c
commit
50c892d67b
@ -86,13 +86,18 @@ define Device/bananapi_bpi-r64
|
|||||||
ARTIFACT/sdcard.img.gz := mt7622-gpt sdmmc |\
|
ARTIFACT/sdcard.img.gz := mt7622-gpt sdmmc |\
|
||||||
pad-to 512k | bl2 sdmmc-2ddr |\
|
pad-to 512k | bl2 sdmmc-2ddr |\
|
||||||
pad-to 2048k | bl31-uboot bananapi_bpi-r64-sdmmc |\
|
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 38912k | mt7622-gpt emmc |\
|
||||||
pad-to 39424k | bl2 emmc-2ddr |\
|
pad-to 39424k | bl2 emmc-2ddr |\
|
||||||
pad-to 40960k | bl31-uboot bananapi_bpi-r64-emmc |\
|
pad-to 40960k | bl31-uboot bananapi_bpi-r64-emmc |\
|
||||||
pad-to 43008k | bl2 snand-2ddr |\
|
pad-to 43008k | bl2 snand-2ddr |\
|
||||||
pad-to 43520k | bl31-uboot bananapi_bpi-r64-snand |\
|
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 := kernel-bin | gzip
|
||||||
KERNEL_INITRAMFS := kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb with-initrd | pad-to 128k
|
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
|
IMAGE/sysupgrade.itb := append-kernel | fit gzip $$(DTS_DIR)/$$(DEVICE_DTS).dtb external-static-with-rootfs | append-metadata
|
||||||
|
Loading…
Reference in New Issue
Block a user