diff options
author | Daniel Golle <daniel@makrotopia.org> | 2023-05-26 10:26:49 +0100 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2023-05-29 13:04:14 +0100 |
commit | 912974cc15031acb3ccf8e1bf12c5809ce01464e (patch) | |
tree | 33474fac338c8539e4961704cab4936039e2a327 /target/linux/mediatek/image/mt7622.mk | |
parent | afe2722f6de70d6bbe91f2fd9adbe5f39ce550d2 (diff) | |
download | upstream-912974cc15031acb3ccf8e1bf12c5809ce01464e.tar.gz upstream-912974cc15031acb3ccf8e1bf12c5809ce01464e.tar.bz2 upstream-912974cc15031acb3ccf8e1bf12c5809ce01464e.zip |
mediatek: fix, clean and unify SD card image generation
Make sure sub-images on the SD card are size-checked, allow
generating SD card without squashfs and/or initramfs.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(cherry picked from commit 43d27b02522c100b0c625d4b22f4bb6ad83c166f)
Diffstat (limited to 'target/linux/mediatek/image/mt7622.mk')
-rw-r--r-- | target/linux/mediatek/image/mt7622.mk | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/target/linux/mediatek/image/mt7622.mk b/target/linux/mediatek/image/mt7622.mk index 12e819ed54..92824ff24a 100644 --- a/target/linux/mediatek/image/mt7622.mk +++ b/target/linux/mediatek/image/mt7622.mk @@ -88,9 +88,10 @@ define Device/bananapi_bpi-r64 pad-to 40960k | bl31-uboot bananapi_bpi-r64-emmc |\ pad-to 43008k | bl2 snand-2ddr |\ pad-to 43520k | bl31-uboot bananapi_bpi-r64-snand |\ - $(if $(CONFIG_TARGET_ROOTFS_SQUASHFS),\ - pad-to 46080k | append-image squashfs-sysupgrade.itb | check-size | 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 |