From 79d67fa52711c9d4bbc933ddfc51de07c576265b Mon Sep 17 00:00:00 2001 From: Zoltan HERPAI Date: Wed, 29 Apr 2020 11:02:27 +0200 Subject: [PATCH] uboot-sunxi: add ATF variable for specifying which flavour to use In preparation for H6 support (which requires a separate ATF blob), add an envvar to the A64 boards specifying which ATF blob to use. Signed-off-by: Zoltan HERPAI --- package/boot/uboot-sunxi/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/package/boot/uboot-sunxi/Makefile b/package/boot/uboot-sunxi/Makefile index 89ee483047..af3b635de5 100644 --- a/package/boot/uboot-sunxi/Makefile +++ b/package/boot/uboot-sunxi/Makefile @@ -31,6 +31,7 @@ define U-Boot/a64-olinuxino BUILD_DEVICES:=olimex_a64-olinuxino DEPENDS:=+PACKAGE_u-boot-olimex_a64-olinuxino:arm-trusted-firmware-sunxi UENV:=a64 + ATF:=a64 endef define U-Boot/a64-olinuxino-emmc @@ -39,6 +40,7 @@ define U-Boot/a64-olinuxino-emmc BUILD_DEVICES:=olimex_a64-olinuxino-emmc DEPENDS:=+PACKAGE_u-boot-olimex_a64-olinuxino-emmc:arm-trusted-firmware-sunxi UENV:=a64 + ATF:=a64 endef define U-Boot/A10-OLinuXino-Lime @@ -226,6 +228,7 @@ define U-Boot/nanopi_neo_plus2 BUILD_DEVICES:=friendlyarm_nanopi-neo-plus2 DEPENDS:=+PACKAGE_u-boot-nanopi_neo_plus2:arm-trusted-firmware-sunxi UENV:=a64 + ATF:=a64 endef define U-Boot/nanopi_neo2 @@ -234,6 +237,7 @@ define U-Boot/nanopi_neo2 BUILD_DEVICES:=friendlyarm_nanopi-neo2 DEPENDS:=+PACKAGE_u-boot-nanopi_neo2:arm-trusted-firmware-sunxi UENV:=a64 + ATF:=a64 endef define U-Boot/pine64_plus @@ -242,6 +246,7 @@ define U-Boot/pine64_plus BUILD_DEVICES:=pine64_pine64-plus DEPENDS:=+PACKAGE_u-boot-pine64_plus:arm-trusted-firmware-sunxi UENV:=a64 + ATF:=a64 endef define U-Boot/bananapi_m2_plus_h3 @@ -262,6 +267,7 @@ define U-Boot/sopine_baseboard BUILD_DEVICES:=pine64_sopine-baseboard DEPENDS:=+PACKAGE_u-boot-sopine_baseboard:arm-trusted-firmware-sunxi UENV:=a64 + ATF:=a64 endef @@ -271,6 +277,7 @@ define U-Boot/orangepi_zero_plus BUILD_DEVICES:=xunlong_orangepi-zero-plus DEPENDS:=+PACKAGE_u-boot-orangepi_zero_plus:arm-trusted-firmware-sunxi UENV:=a64 + ATF:=a64 endef define U-Boot/orangepi_pc2 @@ -279,6 +286,7 @@ define U-Boot/orangepi_pc2 BUILD_DEVICES:=xunlong_orangepi-pc2 DEPENDS:=+PACKAGE_u-boot-orangepi_pc2:arm-trusted-firmware-sunxi UENV:=a64 + ATF:=a64 endef define U-Boot/rgl_c64mini @@ -339,7 +347,7 @@ UBOOT_TARGETS := \ UBOOT_CONFIGURE_VARS += USE_PRIVATE_LIBGCC=yes UBOOT_MAKE_FLAGS += \ - BL31=$(STAGING_DIR_IMAGE)/bl31.bin + BL31=$(STAGING_DIR_IMAGE)/bl31_$(ATF).bin define Build/InstallDev $(INSTALL_DIR) $(STAGING_DIR_IMAGE) -- 2.30.2