Patchwork [U-Boot,v5,1/4] fdt: Add dts/dtsi arch & board include paths to DTS_CPPFLAGS

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

Comments

Tom Warren - Feb. 20, 2013, 9:05 p.m.
This allows the use of '#include "xyz"' in the dts/dtsi file which
helps the C preprocessor find common dtsi include files.

Signed-off-by: Tom Warren <twarren@nvidia.com>
---
v4: new
v5: Add dts/dtsi paths to DTS_CPPFLAGS instead of DTC command line

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

Patch

diff --git a/dts/Makefile b/dts/Makefile
index 922c78c..6f36153 100644
--- a/dts/Makefile
+++ b/dts/Makefile
@@ -38,7 +38,8 @@  Please define CONFIG_ARCH_DEVICE_TREE))
 # We preprocess the device tree file provide a useful define
 DTS_CPPFLAGS := -x assembler-with-cpp \
 		-DARCH_CPU_DTS=\"$(SRCTREE)/arch/$(ARCH)/dts/$(CONFIG_ARCH_DEVICE_TREE).dtsi\" \
-		-DBOARD_DTS=\"$(SRCTREE)/board/$(VENDOR)/$(BOARD)/dts/$(DEVICE_TREE).dts\"
+		-DBOARD_DTS=\"$(SRCTREE)/board/$(VENDOR)/$(BOARD)/dts/$(DEVICE_TREE).dts\" \
+		-I$(SRCTREE)/board/$(VENDOR)/dts -I$(SRCTREE)/arch/$(ARCH)/dts
 
 all:	$(obj).depend $(LIB)