[Buildroot] [git commit branch/2023.02.x] boot/uboot: set DTC path when BR2_TARGET_UBOOT_NEEDS_DTC

Peter Korsgaard peter at korsgaard.com
Fri Aug 25 19:32:38 UTC 2023


commit: https://git.buildroot.net/buildroot/commit/?id=ab72054281376ead3742ff9cbb8511562b0f7c53
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2023.02.x

In order for host-dtc to get picked up properly we need to set
the DTC path passed to the build explicitly.

See:
https://github.com/u-boot/u-boot/blob/v2023.07.02/Makefile#L420

Signed-off-by: James Hilliard <james.hilliard1 at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
(cherry picked from commit 231d79c81e9a1f8c2ef14861374a40fcdc5e6b33)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 boot/uboot/uboot.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
index 4eae8e95c3..1a6e70a792 100644
--- a/boot/uboot/uboot.mk
+++ b/boot/uboot/uboot.mk
@@ -209,6 +209,7 @@ endif
 
 ifeq ($(BR2_TARGET_UBOOT_NEEDS_DTC),y)
 UBOOT_DEPENDENCIES += host-dtc
+UBOOT_MAKE_OPTS += DTC=$(HOST_DIR)/bin/dtc
 endif
 
 ifeq ($(BR2_TARGET_UBOOT_NEEDS_PYTHON3),y)



More information about the buildroot mailing list