boot/edk2: drop dependency on tf-a for macchiatobin
PATCH 1/1 boot/edk2: drop dependency on tf-a for macchiatobin
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
---
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(-)
boot/edk2/edk2.mk +1 -1
@@ -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)
Signature · 6 lines
2.48.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Julien Olivain
AppliedQuoted 9 lines · Vincent Stehlé
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]
Quoted 6 lines
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é <[email protected]>Cc Dick Olsson <[email protected]>
Applied to master, thanks.
I also added extra info in the commit log while applying.
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 8 lines · Vincent Stehlé
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]
Quoted 6 lines
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é <[email protected]>Cc Dick Olsson <[email protected]>
Applied to 2025.02.x, thanks.
Regards,
Arnout
Quoted 42 lines
---
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=yThen 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(-)boot/edk2/edk2.mk +0
-0
boot/edk2/edk2.mk endef · line 121
Quoted 8 lines
boot/edk2/edk2.mk +1
-1@@ -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)
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot