[Buildroot] [PATCH 1/1] boot/uboot: Really use host-dtc
David De Grave (Essensium/Mind)
david.degrave at mind.be
Thu Jul 26 10:36:30 UTC 2018
U-Boot's build system (at least in 2018.01) does not use $(HOST_DIR)/bin/dtc to
compile dts files. Instead it tries to use it's internal dtc who is not
compiled by default and result in a build failure:
DTC arch/arm/dts/foo.dtb
/bin/sh: ./scripts/dtc/dtc: No such file or directory
make[4]: *** [scripts/Makefile.lib:329: arch/arm/dts/foo.dtb] Error 127
To reproduce this error, use a uboot config that contains the following:
CONFIG_MULTI_DTB_FIT=y
CONFIG_OF_LIST="foo"
Signed-off-by: David De Grave (Essensium/Mind) <david.degrave at mind.be>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
---
boot/uboot/uboot.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
index bf227f2893..e877de221e 100644
--- a/boot/uboot/uboot.mk
+++ b/boot/uboot/uboot.mk
@@ -141,6 +141,7 @@ UBOOT_MAKE_OPTS += BL31=$(BINARIES_DIR)/bl31.bin
endif
ifeq ($(BR2_TARGET_UBOOT_NEEDS_DTC),y)
+UBOOT_MAKE_OPTS += DTC=$(HOST_DIR)/bin/dtc
UBOOT_DEPENDENCIES += host-dtc
endif
--
2.13.6
More information about the buildroot
mailing list