summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2013-07-24 10:09:24 -0700
committerTom Rini <trini@ti.com>2013-08-02 18:30:11 -0400
commitf53932addd3169839834829937a3cd7ae912f7ac (patch)
tree380612ddd364de6228ed9f30a977438484a9cf04
parent32ac4bd9ca6402ea7d07d528d2e550c7ea76e4b3 (diff)
downloadu-boot-imx-f53932addd3169839834829937a3cd7ae912f7ac.zip
u-boot-imx-f53932addd3169839834829937a3cd7ae912f7ac.tar.gz
u-boot-imx-f53932addd3169839834829937a3cd7ae912f7ac.tar.bz2
dts/Makefile: pass -undef -D__DTS__ to cpp
This brings U-Boot's cpp invocation into line with the way the Linux kernel invokes cpp on device trees. Consistency will be useful to ensure *.dts is portable between the two. -undef also has the added advantage of not defining "linux", so DT property names such as "linux,keymap" don't get mangled. Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Simon Glass <sjg@chromium.org>
-rw-r--r--dts/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/dts/Makefile b/dts/Makefile
index ccd552f..3cf991e 100644
--- a/dts/Makefile
+++ b/dts/Makefile
@@ -21,7 +21,7 @@ DTS_INCDIRS = $(SRCTREE)/board/$(VENDOR)/$(BOARD)/dts
DTS_INCDIRS += $(SRCTREE)/board/$(VENDOR)/dts
DTS_INCDIRS += $(SRCTREE)/arch/$(ARCH)/dts
-DTS_CPPFLAGS := -x assembler-with-cpp \
+DTS_CPPFLAGS := -x assembler-with-cpp -undef -D__DTS__ \
-nostdinc $(addprefix -I,$(DTS_INCDIRS))
DTC_FLAGS := -R 4 -p 0x1000 \