Skip to contentSkip to conversation

boot/arm-trusted-firmware: add option to depend on host-uboot-tools for mkimage

PATCH New Lance Fredrickson 1 participant 1 message Jan 28

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 boot/arm-trusted-firmware: add option to depend on host-uboot-tools for mkimage

From: lancethepants <[email protected]>

Some ATF platform builds (e.g. Mediatek) require mkimage to produce bl2.img. Add a NEEDS_UBOOT_MKIMAGE config option similar to NEEDS_DTC.

---
 boot/arm-trusted-firmware/Config.in               | 7 +++++++
 boot/arm-trusted-firmware/arm-trusted-firmware.mk | 4 ++++
 2 files changed, 11 insertions(+)
boot/arm-trusted-firmware/Config.in +7 -0
index 72684e5974..f431171ab0 100644
@@ -252,6 +252,13 @@ config BR2_TARGET_ARM_TRUSTED_FIRMWARE_NEEDS_DTC
 	  Select this option if your ATF board configuration
 	  requires the Device Tree compiler to be available.
 
+config BR2_TARGET_ARM_TRUSTED_FIRMWARE_NEEDS_UBOOT_MKIMAGE
+	bool "Needs mkimage"
+	select BR2_PACKAGE_HOST_UBOOT_TOOLS
+	help
+	  Select this option if your ATF board configuration
+	  requires mkimage from u-boot-tools to be available.
+
 config BR2_TARGET_ARM_TRUSTED_FIRMWARE_NEEDS_ARM32_TOOLCHAIN
 	bool "Needs arm-none-eabi toolchain"
 	depends on BR2_aarch64
boot/arm-trusted-firmware/arm-trusted-firmware.mk +4 -0
index f5b1e5030e..df36f81575 100644
@@ -36,6 +36,10 @@ ifeq ($(BR2_TARGET_ARM_TRUSTED_FIRMWARE_NEEDS_DTC),y)
 ARM_TRUSTED_FIRMWARE_DEPENDENCIES += host-dtc
 endif
 
+ifeq ($(BR2_TARGET_ARM_TRUSTED_FIRMWARE_NEEDS_UBOOT_MKIMAGE),y)
+ARM_TRUSTED_FIRMWARE_DEPENDENCIES += host-uboot-tools
+endif
+
 ifeq ($(BR2_TARGET_ARM_TRUSTED_FIRMWARE_NEEDS_ARM32_TOOLCHAIN),y)
 ARM_TRUSTED_FIRMWARE_DEPENDENCIES += host-arm-gnu-toolchain
 endif
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot