[Buildroot] [PATCH] boot/edk2: drop dependency on tf-a for macchiatobin

Vincent Stehlé vincent.stehle at arm.com
Thu Apr 10 15:31:14 UTC 2025


When building a firmware for the MACCHIATObin with edk2 and
arm-trusted-firmware, the build fails with the following make error:

  make[1]: Circular output/build/edk2-edk2-stable202411/.stamp_configured <- arm-trusted-firmware dependency dropped.

In fact, only TF-A depends on EDK II (passed as BL33) for building and
not vice versa. [1]

Drop the false dependency on TF-A to fix the build.

[1] https://github.com/Semihalf/edk2-platforms/wiki/Build_firmware

Signed-off-by: Vincent Stehlé <vincent.stehle at arm.com>
Cc: Dick Olsson <hi at senzilla.io>
---


Hi,

We have nothing in-tree to build edk2 for the MACCHIATObin; here is an
ad-hoc defconfig can be used for build-testing:

  BR2_aarch64=y
  BR2_TOOLCHAIN_EXTERNAL=y
  BR2_INIT_NONE=y
  BR2_SYSTEM_BIN_SH_NONE=y
  # BR2_PACKAGE_BUSYBOX is not set
  # BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set
  # BR2_TARGET_ROOTFS_TAR is not set
  BR2_TARGET_ARM_TRUSTED_FIRMWARE=y
  BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="a80x0_mcbin"
  BR2_TARGET_ARM_TRUSTED_FIRMWARE_EDK2_AS_BL33=y
  BR2_TARGET_BINARIES_MARVELL=y
  BR2_TARGET_EDK2=y
  BR2_TARGET_EDK2_PLATFORM_SOLIDRUN_ARMADA80X0MCBIN=y
  BR2_TARGET_MV_DDR_MARVELL=y

Then to build, two options:

1. Use the in-flight TF-A build fix. [776370]
2. Build only `edk2'.

Best regards,
Vincent.

[776370] https://lists.buildroot.org/pipermail/buildroot/2025-April/776370.html


 boot/edk2/edk2.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/boot/edk2/edk2.mk b/boot/edk2/edk2.mk
index 3941d01883..bc4049b2de 100644
--- a/boot/edk2/edk2.mk
+++ b/boot/edk2/edk2.mk
@@ -115,7 +115,7 @@ endef
 
 else ifeq ($(BR2_TARGET_EDK2_PLATFORM_SOLIDRUN_ARMADA80X0MCBIN),y)
 EDK2_ARCH = AARCH64
-EDK2_DEPENDENCIES += host-dtc arm-trusted-firmware edk2-non-osi
+EDK2_DEPENDENCIES += host-dtc edk2-non-osi
 EDK2_PACKAGE_NAME = Platform/SolidRun/Armada80x0McBin
 EDK2_PLATFORM_NAME = Armada80x0McBin
 EDK2_BUILD_DIR = $(EDK2_PLATFORM_NAME)-$(EDK2_ARCH)
-- 
2.48.1



More information about the buildroot mailing list