]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
airoha: an7583: add BL2 and BL31+U-Boot Artifacts for EVB board
authorYalei Zang <yalei.zang@airoha.com>
Fri, 24 Jul 2026 01:32:05 +0000 (09:32 +0800)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Sun, 2 Aug 2026 20:59:57 +0000 (22:59 +0200)
Pack the BL2 and BL31+U-Boot artifacts as Airoha AN7583 is currently
supported in upstream U-Boot and bootloader files can be used for
unfused boards.

Signed-off-by: Yalei Zang <yalei.zang@airoha.com>
Link: https://github.com/openwrt/openwrt/pull/24397
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
target/linux/airoha/image/an7583.mk

index e1b7e875c39078c013fb6bd6edf4af9575d8279c..62a166e8a92ff5445c47e073e52e29f3c2b38883 100644 (file)
@@ -1,3 +1,11 @@
+define Build/an7583-preloader
+  cat $(STAGING_DIR_IMAGE)/an7583_$1-bl2.fip >> $@
+endef
+
+define Build/an7583-bl31-uboot
+  cat $(STAGING_DIR_IMAGE)/an7583_$1-bl31-u-boot.fip >> $@
+endef
+
 define Device/FitImageLzma
   KERNEL_SUFFIX := -uImage.itb
   KERNEL = kernel-bin | lzma | \
@@ -15,6 +23,9 @@ define Device/airoha_an7583-evb
   DEVICE_DTS_CONFIG := config@1
   IMAGE/sysupgrade.bin := append-kernel | pad-to 128k | append-rootfs | \
        pad-rootfs | append-metadata
+  ARTIFACT/preloader.bin := an7583-preloader rfb
+  ARTIFACT/bl31-uboot.fip := an7583-bl31-uboot rfb
+  ARTIFACTS := preloader.bin bl31-uboot.fip
 endef
 TARGET_DEVICES += airoha_an7583-evb
 
@@ -23,6 +34,9 @@ define Device/airoha_an7583-evb-emmc
   DEVICE_MODEL := AN7583 Evaluation Board (EMMC)
   DEVICE_DTS := an7583-evb-emmc
   DEVICE_PACKAGES := kmod-phy-airoha-en8811h kmod-i2c-an7581
+  ARTIFACT/preloader.bin := an7583-preloader rfb
+  ARTIFACT/bl31-uboot.fip := an7583-bl31-uboot rfb
+  ARTIFACTS := preloader.bin bl31-uboot.fip
 endef
 TARGET_DEVICES += airoha_an7583-evb-emmc