]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fdt: fix dts preprocessor options
authorAllen Martin <amartin@nvidia.com>
Tue, 8 Jan 2013 16:07:54 +0000 (16:07 +0000)
committerGerald Van Baren <gvb@unssw.com>
Fri, 8 Feb 2013 01:38:51 +0000 (20:38 -0500)
Using "-ansi" preprocessor option will cause dts lines that begin with
'#' to choke the preprocessor.  Change to "-x assembler-with-cpp"
instead which is what the kernel uses to preprocess dts files.

Signed-off-by: Allen Martin <amartin@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Simon Glass <sjg@chromium.org>
dts/Makefile

index 785104e6d6409aa1b956db10107e17ddc6257a6d..922c78c1ca497c18916456359950403ac34774b3 100644 (file)
@@ -36,7 +36,7 @@ $(error Your architecture does not have device tree support enabled. \
 Please define CONFIG_ARCH_DEVICE_TREE))
 
 # We preprocess the device tree file provide a useful define
-DTS_CPPFLAGS := -ansi \
+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\"