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>
This commit is contained in:
parent
4c4ba37896
commit
d6fef27f2d
|
@ -104,8 +104,12 @@ define Device/bananapi_bpi-r2
|
||||||
pad-to 2k | append-preloader $$(UBOOT_TARGET) |\
|
pad-to 2k | append-preloader $$(UBOOT_TARGET) |\
|
||||||
pad-to $$(UBOOT_OFFSET) | append-bootloader $$(UBOOT_TARGET) |\
|
pad-to $$(UBOOT_OFFSET) | append-bootloader $$(UBOOT_TARGET) |\
|
||||||
pad-to 4092k | mt7623-mbr emmc |\
|
pad-to 4092k | mt7623-mbr emmc |\
|
||||||
|
$(if $(CONFIG_TARGET_ROOTFS_INITRAMFS),\
|
||||||
pad-to 4M | append-image-stage initramfs-recovery.itb |\
|
pad-to 4M | append-image-stage initramfs-recovery.itb |\
|
||||||
|
) \
|
||||||
|
$(if $(CONFIG_TARGET_ROOTFS_SQUASHFS),\
|
||||||
pad-to 48M | append-image squashfs-sysupgrade.itb |\
|
pad-to 48M | append-image squashfs-sysupgrade.itb |\
|
||||||
|
) \
|
||||||
gzip
|
gzip
|
||||||
ARTIFACTS := u-boot.bin preloader.bin sdcard.img.gz
|
ARTIFACTS := u-boot.bin preloader.bin sdcard.img.gz
|
||||||
SUPPORTED_DEVICES := bananapi,bpi-r2
|
SUPPORTED_DEVICES := bananapi,bpi-r2
|
||||||
|
@ -135,8 +139,12 @@ define Device/unielec_u7623-02
|
||||||
# but OpenWrt expects 'SDMM' magic for sysupgrade.
|
# but OpenWrt expects 'SDMM' magic for sysupgrade.
|
||||||
ARTIFACT/emmc.img.gz := mt7623-mbr sdmmc |\
|
ARTIFACT/emmc.img.gz := mt7623-mbr sdmmc |\
|
||||||
pad-to $$(UBOOT_OFFSET) | append-bootloader $$(UBOOT_TARGET) |\
|
pad-to $$(UBOOT_OFFSET) | append-bootloader $$(UBOOT_TARGET) |\
|
||||||
|
$(if $(CONFIG_TARGET_ROOTFS_INITRAMFS),\
|
||||||
pad-to 4M | append-image-stage initramfs-recovery.itb |\
|
pad-to 4M | append-image-stage initramfs-recovery.itb |\
|
||||||
|
) \
|
||||||
|
$(if $(CONFIG_TARGET_ROOTFS_SQUASHFS),\
|
||||||
pad-to 48M | append-image squashfs-sysupgrade.itb |\
|
pad-to 48M | append-image squashfs-sysupgrade.itb |\
|
||||||
|
) \
|
||||||
gzip | append-metadata
|
gzip | append-metadata
|
||||||
ARTIFACT/scatter.txt := scatterfile emmc.img.gz
|
ARTIFACT/scatter.txt := scatterfile emmc.img.gz
|
||||||
ARTIFACTS := u-boot.bin scatter.txt emmc.img.gz
|
ARTIFACTS := u-boot.bin scatter.txt emmc.img.gz
|
||||||
|
|
Loading…
Reference in New Issue