blob: a9b47c3d2644c3d2c91bc7ad9c7c53d8986dbaed [file] [log] [blame]
From: Weijie Gao <weijie.gao@mediatek.com>
Subject: [PATCH] mediatek/filogic: prevent unused artifact files from
building
Artifact files (bl2/bl31/sd image) are useless in internal use.
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
--- a/target/linux/mediatek/image/filogic.mk
+++ b/target/linux/mediatek/image/filogic.mk
@@ -760,36 +760,6 @@ define Device/mediatek_mt7981-rfb
IMAGES := sysupgrade.itb
IMAGE_SIZE := $$(shell expr 64 + $$(CONFIG_TARGET_ROOTFS_PARTSIZE))m
IMAGE/sysupgrade.itb := append-kernel | fit gzip $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb external-with-rootfs | pad-rootfs | append-metadata
- ARTIFACTS := \
- emmc-preloader.bin emmc-bl31-uboot.fip \
- nor-preloader.bin nor-bl31-uboot.fip \
- sdcard.img.gz \
- snfi-nand-preloader.bin snfi-nand-bl31-uboot.fip \
- spim-nand-preloader.bin spim-nand-bl31-uboot.fip
- ARTIFACT/emmc-preloader.bin := mt7981-bl2 emmc-ddr3
- ARTIFACT/emmc-bl31-uboot.fip := mt7981-bl31-uboot rfb-emmc
- ARTIFACT/nor-preloader.bin := mt7981-bl2 nor-ddr3
- ARTIFACT/nor-bl31-uboot.fip := mt7981-bl31-uboot rfb-emmc
- ARTIFACT/snfi-nand-preloader.bin := mt7981-bl2 snand-ddr3
- ARTIFACT/snfi-nand-bl31-uboot.fip := mt7981-bl31-uboot rfb-snfi
- ARTIFACT/spim-nand-preloader.bin := mt7981-bl2 spim-nand-ddr3
- ARTIFACT/spim-nand-bl31-uboot.fip := mt7981-bl31-uboot rfb-spim-nand
- ARTIFACT/sdcard.img.gz := mt798x-gpt sdmmc |\
- pad-to 17k | mt7981-bl2 sdmmc-ddr3 |\
- pad-to 6656k | mt7981-bl31-uboot rfb-sd |\
- $(if $(CONFIG_TARGET_ROOTFS_INITRAMFS),\
- pad-to 12M | append-image-stage initramfs.itb | check-size 44m |\
- ) \
- pad-to 44M | mt7981-bl2 spim-nand-ddr3 |\
- pad-to 45M | mt7981-bl31-uboot rfb-spim-nand |\
- pad-to 49M | mt7981-bl2 nor-ddr3 |\
- pad-to 50M | mt7981-bl31-uboot rfb-nor |\
- pad-to 51M | mt7981-bl2 snand-ddr3 |\
- pad-to 53M | mt7981-bl31-uboot rfb-snfi |\
- $(if $(CONFIG_TARGET_ROOTFS_SQUASHFS),\
- pad-to 64M | append-image squashfs-sysupgrade.itb | check-size |\
- ) \
- gzip
endef
TARGET_DEVICES += mediatek_mt7981-rfb
@@ -865,35 +835,6 @@ define Device/mediatek_mt7988a-rfb
IMAGE_SIZE := $$(shell expr 64 + $$(CONFIG_TARGET_ROOTFS_PARTSIZE))m
IMAGES := sysupgrade.itb
IMAGE/sysupgrade.itb := append-kernel | fit gzip $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb external-with-rootfs | pad-rootfs | append-metadata
- ARTIFACTS := \
- emmc-gpt.bin emmc-preloader.bin emmc-bl31-uboot.fip \
- nor-preloader.bin nor-bl31-uboot.fip \
- sdcard.img.gz \
- snand-preloader.bin snand-bl31-uboot.fip
- ARTIFACT/emmc-gpt.bin := mt798x-gpt emmc
- ARTIFACT/emmc-preloader.bin := mt7988-bl2 emmc-comb
- ARTIFACT/emmc-bl31-uboot.fip := mt7988-bl31-uboot rfb-emmc
- ARTIFACT/nor-preloader.bin := mt7988-bl2 nor-comb
- ARTIFACT/nor-bl31-uboot.fip := mt7988-bl31-uboot rfb-nor
- ARTIFACT/snand-preloader.bin := mt7988-bl2 spim-nand-ubi-comb
- ARTIFACT/snand-bl31-uboot.fip := mt7988-bl31-uboot rfb-snand
- ARTIFACT/sdcard.img.gz := mt798x-gpt sdmmc |\
- pad-to 17k | mt7988-bl2 sdmmc-comb |\
- pad-to 6656k | mt7988-bl31-uboot rfb-sd |\
- $(if $(CONFIG_TARGET_ROOTFS_INITRAMFS),\
- pad-to 12M | append-image-stage initramfs.itb | check-size 44m |\
- ) \
- pad-to 44M | mt7988-bl2 spim-nand-comb |\
- pad-to 45M | mt7988-bl31-uboot rfb-snand |\
- pad-to 51M | mt7988-bl2 nor-comb |\
- pad-to 51M | mt7988-bl31-uboot rfb-nor |\
- pad-to 55M | mt7988-bl2 emmc-comb |\
- pad-to 56M | mt7988-bl31-uboot rfb-emmc |\
- pad-to 62M | mt798x-gpt emmc |\
- $(if $(CONFIG_TARGET_ROOTFS_SQUASHFS),\
- pad-to 64M | append-image squashfs-sysupgrade.itb | check-size |\
- ) \
- gzip
endef
TARGET_DEVICES += mediatek_mt7988a-rfb