Patchwork [U-Boot,V2,REPOST,8/9] dts/Makefile: don't use cpp -P

login
register
mail settings
Submitter Stephen Warren
Date July 24, 2013, 5:09 p.m.
Message ID <1374685764-4828-9-git-send-email-swarren@wwwdotorg.org>
Download mbox | patch
Permalink /patch/261472/
State Accepted
Delegated to: Tom Rini
Headers show

Comments

Stephen Warren - July 24, 2013, 5:09 p.m.
From: Stephen Warren <swarren@nvidia.com>

Recent dtc supports #line directives in the input source code, and even
uses them to generate useful line numbers in any messages it emits. Stop
passing -P to cpp, since there's no need any more.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Simon Glass <sjg@chromium.org>
---
 dts/Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/dts/Makefile b/dts/Makefile
index 42ba42f..805d2cc 100644
--- a/dts/Makefile
+++ b/dts/Makefile
@@ -51,7 +51,7 @@  all:	$(obj).depend $(LIB)
 DT_BIN	:= $(obj)dt.dtb
 
 $(DT_BIN): $(TOPDIR)/board/$(VENDOR)/dts/$(DEVICE_TREE).dts
-	$(CPP) -P $(DTS_CPPFLAGS) $< -o $(DT_BIN).dts.tmp
+	$(CPP) $(DTS_CPPFLAGS) $< -o $(DT_BIN).dts.tmp
 	$(DTC) $(DTC_FLAGS) -O dtb -o ${DT_BIN} $(DT_BIN).dts.tmp
 
 process_lds = \