diff mbox

[U-Boot] fix makefiles to respect DTC setting

Message ID 20150406134644.GA11778@amd
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Pavel Machek April 6, 2015, 1:46 p.m. UTC
Top-level Makefile has option to select dtc binary, but it is ignored
due to bug in Makefile.lib. Fix it.

Signed-off-by: Pavel Machek <pavel@denx.de>

Comments

Tom Rini April 7, 2015, 5:59 p.m. UTC | #1
On Mon, Apr 06, 2015 at 03:46:44PM +0200, Pavel Machek wrote:

> Top-level Makefile has option to select dtc binary, but it is ignored
> due to bug in Makefile.lib. Fix it.
> 
> Signed-off-by: Pavel Machek <pavel@denx.de>
> 
> diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
> index 13af604..8731fc6 100644

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 13af604..8731fc6 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -275,7 +275,7 @@  $(obj)/%.dtb.S: $(obj)/%.dtb
 quiet_cmd_dtc = DTC     $@
 # Modified for U-Boot
 cmd_dtc = $(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \
-	dtc -O dtb -o $@ -b 0 \
+	$(DTC) -O dtb -o $@ -b 0 \
 		-i $(dir $<) $(DTC_FLAGS) \
 		-d $(depfile).dtc.tmp $(dtc-tmp) ; \
 	cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile)