[openwrt/openwrt] mediatek: filogic: add uboot build for mt7981
LEDE Commits
lede-commits at lists.infradead.org
Mon May 29 05:08:35 PDT 2023
dangole pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/c55bcf777226dd43620d351c54008b43824b4303
commit c55bcf777226dd43620d351c54008b43824b4303
Author: Chukun Pan <amadeus at jmu.edu.cn>
AuthorDate: Tue Apr 25 23:06:20 2023 +0800
mediatek: filogic: add uboot build for mt7981
Rename previous uboot build to mt7986-*.
Signed-off-by: Chukun Pan <amadeus at jmu.edu.cn>
(cherry picked from commit c620409d58a29d49ceccf838e90e030610c06611)
Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
target/linux/mediatek/image/filogic.mk | 40 ++++++++++++++++++++--------------
1 file changed, 24 insertions(+), 16 deletions(-)
diff --git a/target/linux/mediatek/image/filogic.mk b/target/linux/mediatek/image/filogic.mk
index fac72a1b37..da0d81c346 100644
--- a/target/linux/mediatek/image/filogic.mk
+++ b/target/linux/mediatek/image/filogic.mk
@@ -6,11 +6,19 @@ define Image/Prepare
echo -ne '\xde\xad\xc0\xde' > $(KDIR)/ubi_mark
endef
-define Build/bl2
+define Build/mt7981-bl2
+ cat $(STAGING_DIR_IMAGE)/mt7981-$1-bl2.img >> $@
+endef
+
+define Build/mt7981-bl31-uboot
+ cat $(STAGING_DIR_IMAGE)/mt7981_$1-u-boot.fip >> $@
+endef
+
+define Build/mt7986-bl2
cat $(STAGING_DIR_IMAGE)/mt7986-$1-bl2.img >> $@
endef
-define Build/bl31-uboot
+define Build/mt7986-bl31-uboot
cat $(STAGING_DIR_IMAGE)/mt7986_$1-u-boot.fip >> $@
endef
@@ -99,24 +107,24 @@ define Device/bananapi_bpi-r3
nor-preloader.bin nor-bl31-uboot.fip \
sdcard.img.gz \
snand-preloader.bin snand-bl31-uboot.fip
- ARTIFACT/emmc-preloader.bin := bl2 emmc-ddr4
- ARTIFACT/emmc-bl31-uboot.fip := bl31-uboot bananapi_bpi-r3-emmc
- ARTIFACT/nor-preloader.bin := bl2 nor-ddr4
- ARTIFACT/nor-bl31-uboot.fip := bl31-uboot bananapi_bpi-r3-nor
- ARTIFACT/snand-preloader.bin := bl2 spim-nand-ddr4
- ARTIFACT/snand-bl31-uboot.fip := bl31-uboot bananapi_bpi-r3-snand
+ ARTIFACT/emmc-preloader.bin := mt7986-bl2 emmc-ddr4
+ ARTIFACT/emmc-bl31-uboot.fip := mt7986-bl31-uboot bananapi_bpi-r3-emmc
+ ARTIFACT/nor-preloader.bin := mt7986-bl2 nor-ddr4
+ ARTIFACT/nor-bl31-uboot.fip := mt7986-bl31-uboot bananapi_bpi-r3-nor
+ ARTIFACT/snand-preloader.bin := mt7986-bl2 spim-nand-ddr4
+ ARTIFACT/snand-bl31-uboot.fip := mt7986-bl31-uboot bananapi_bpi-r3-snand
ARTIFACT/sdcard.img.gz := mt7986-gpt sdmmc |\
- pad-to 17k | bl2 sdmmc-ddr4 |\
- pad-to 6656k | bl31-uboot bananapi_bpi-r3-sdmmc |\
+ pad-to 17k | mt7986-bl2 sdmmc-ddr4 |\
+ pad-to 6656k | mt7986-bl31-uboot bananapi_bpi-r3-sdmmc |\
$(if $(CONFIG_TARGET_ROOTFS_INITRAMFS),\
pad-to 12M | append-image-stage initramfs-recovery.itb | check-size 44m |\
) \
- pad-to 44M | bl2 spim-nand-ddr4 |\
- pad-to 45M | bl31-uboot bananapi_bpi-r3-snand |\
- pad-to 49M | bl2 nor-ddr4 |\
- pad-to 50M | bl31-uboot bananapi_bpi-r3-nor |\
- pad-to 51M | bl2 emmc-ddr4 |\
- pad-to 52M | bl31-uboot bananapi_bpi-r3-emmc |\
+ pad-to 44M | mt7986-bl2 spim-nand-ddr4 |\
+ pad-to 45M | mt7986-bl31-uboot bananapi_bpi-r3-snand |\
+ pad-to 49M | mt7986-bl2 nor-ddr4 |\
+ pad-to 50M | mt7986-bl31-uboot bananapi_bpi-r3-nor |\
+ pad-to 51M | mt7986-bl2 emmc-ddr4 |\
+ pad-to 52M | mt7986-bl31-uboot bananapi_bpi-r3-emmc |\
pad-to 56M | mt7986-gpt emmc |\
$(if $(CONFIG_TARGET_ROOTFS_SQUASHFS),\
pad-to 64M | append-image squashfs-sysupgrade.itb | check-size |\
More information about the lede-commits
mailing list