summaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/image
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2023-05-22 22:58:58 +0100
committerDaniel Golle <daniel@makrotopia.org>2023-05-22 23:04:09 +0100
commitd6fef27f2dd4a852ed7846e4aa5f06dcd8df91b6 (patch)
tree0cc1298b3751048d70624cbd6680c187065705af /target/linux/mediatek/image
parent4c4ba378969c19b66b96403434f176a84d25f3a1 (diff)
downloadopenwrt-d6fef27f2dd4a852ed7846e4aa5f06dcd8df91b6.tar.gz
openwrt-d6fef27f2dd4a852ed7846e4aa5f06dcd8df91b6.tar.bz2
openwrt-d6fef27f2dd4a852ed7846e4aa5f06dcd8df91b6.zip
mediatek: mt7623: build SD card without all filesystems
Allow building SD card images without having both initramfs and squashfs present on the card, just like it has already been done for the mt7622 and filogic subtargets. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'target/linux/mediatek/image')
-rw-r--r--target/linux/mediatek/image/mt7623.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/target/linux/mediatek/image/mt7623.mk b/target/linux/mediatek/image/mt7623.mk
index 26befc1c1e..1645ecd545 100644
--- a/target/linux/mediatek/image/mt7623.mk
+++ b/target/linux/mediatek/image/mt7623.mk
@@ -104,8 +104,12 @@ define Device/bananapi_bpi-r2
pad-to 2k | append-preloader $$(UBOOT_TARGET) |\
pad-to $$(UBOOT_OFFSET) | append-bootloader $$(UBOOT_TARGET) |\
pad-to 4092k | mt7623-mbr emmc |\
+ $(if $(CONFIG_TARGET_ROOTFS_INITRAMFS),\
pad-to 4M | append-image-stage initramfs-recovery.itb |\
+ ) \
+ $(if $(CONFIG_TARGET_ROOTFS_SQUASHFS),\
pad-to 48M | append-image squashfs-sysupgrade.itb |\
+ ) \
gzip
ARTIFACTS := u-boot.bin preloader.bin sdcard.img.gz
SUPPORTED_DEVICES := bananapi,bpi-r2
@@ -135,8 +139,12 @@ define Device/unielec_u7623-02
# but OpenWrt expects 'SDMM' magic for sysupgrade.
ARTIFACT/emmc.img.gz := mt7623-mbr sdmmc |\
pad-to $$(UBOOT_OFFSET) | append-bootloader $$(UBOOT_TARGET) |\
+ $(if $(CONFIG_TARGET_ROOTFS_INITRAMFS),\
pad-to 4M | append-image-stage initramfs-recovery.itb |\
+ ) \
+ $(if $(CONFIG_TARGET_ROOTFS_SQUASHFS),\
pad-to 48M | append-image squashfs-sysupgrade.itb |\
+ ) \
gzip | append-metadata
ARTIFACT/scatter.txt := scatterfile emmc.img.gz
ARTIFACTS := u-boot.bin scatter.txt emmc.img.gz