Patchwork [U-Boot,v4,1/4] fdt: Add dts/dtsi file include paths to DTC command line

login
register
mail settings
Submitter Tom Warren
Date Feb. 14, 2013, 9:03 p.m.
Message ID <1360875841-30594-2-git-send-email-twarren@nvidia.com>
Download mbox | patch
Permalink /patch/220498/
State Superseded
Delegated to: Tom Warren
Headers show

Comments

Tom Warren - Feb. 14, 2013, 9:03 p.m.
This requires a version of dtc that can handle the 'i' argument

Signed-off-by: Tom Warren <twarren@nvidia.com>
---
v4: new

 dts/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/dts/Makefile b/dts/Makefile
index 922c78c..2ef31e9 100644
--- a/dts/Makefile
+++ b/dts/Makefile
@@ -50,7 +50,7 @@  DT_BIN	:= $(obj)dt.dtb
 $(DT_BIN): $(TOPDIR)/board/$(VENDOR)/dts/$(DEVICE_TREE).dts
 	rc=$$( \
 		cat $< | $(CPP) -P $(DTS_CPPFLAGS) - | \
-		{ { $(DTC) -R 4 -p 0x1000 -O dtb -o ${DT_BIN} - 2>&1 ; \
+		{ { $(DTC) -R 4 -p 0x1000 -i $(TOPDIR)/board/$(VENDOR)/dts -i $(TOPDIR)/arch/$(ARCH)/dts -O dtb -o ${DT_BIN} - 2>&1 ; \
 		    echo $$? >&3 ; } | \
 		  grep -v '^DTC: dts->dtb  on file' ; \
 	        } 3>&1 1>&2 ) ; \