From 0d2566b79115427bea726649597c7f89dbb3065f Mon Sep 17 00:00:00 2001 From: Quentin Schulz Date: Fri, 31 May 2024 11:25:16 +0200 Subject: [PATCH] bsp: u-boot: explicit dependency on trusted-firware-a All Aarch64 boards require a BL31 from TF-A to be able to boot a Linux kernel. Therefore let's explicit this dependency right after adding the BL31 variable to EXTRA_OEMAKE. While it is already explicitly added later in the file, it is stored in a variable whose name is a bit confusing as TF-A has not much to do with being an init firmware. Signed-off-by: Quentin Schulz --- recipes-bsp/u-boot/u-boot_%.bbappend | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes-bsp/u-boot/u-boot_%.bbappend b/recipes-bsp/u-boot/u-boot_%.bbappend index 594ed49..0e6397b 100644 --- a/recipes-bsp/u-boot/u-boot_%.bbappend +++ b/recipes-bsp/u-boot/u-boot_%.bbappend @@ -12,6 +12,10 @@ BL31:rockchip:aarch64 = "${DEPLOY_DIR_IMAGE}/bl31-${SOC_FAMILY}.elf" BL31:rk3588s = "${DEPLOY_DIR_IMAGE}/bl31-rk3588.elf" EXTRA_OEMAKE:append:rockchip:aarch64 = " BL31=${BL31}" +TFA_DEPENDS ??= "" +TFA_DEPENDS:rockchip:aarch64 = " trusted-firmware-a:do_deploy" +do_compile[depends] .= "${TFA_DEPENDS}" + # No open-source TPL (yet) EXTRA_OEMAKE:append:rk3308 = " ROCKCHIP_TPL=${DEPLOY_DIR_IMAGE}/ddr-rk3308.bin" EXTRA_OEMAKE:append:rk3568 = " ROCKCHIP_TPL=${DEPLOY_DIR_IMAGE}/ddr-rk3568.bin"