From: Yalei Zang Date: Fri, 24 Jul 2026 01:32:05 +0000 (+0800) Subject: airoha: an7583: add BL2 and BL31+U-Boot Artifacts for EVB board X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4797e145b34434fd53d3decc700e77bbacbe67d3;p=thirdparty%2Fopenwrt.git airoha: an7583: add BL2 and BL31+U-Boot Artifacts for EVB board 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 Link: https://github.com/openwrt/openwrt/pull/24397 Signed-off-by: Jonas Jelonek --- diff --git a/target/linux/airoha/image/an7583.mk b/target/linux/airoha/image/an7583.mk index e1b7e875c39..62a166e8a92 100644 --- a/target/linux/airoha/image/an7583.mk +++ b/target/linux/airoha/image/an7583.mk @@ -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