From: Allen Martin Date: Tue, 8 Jan 2013 16:07:54 +0000 (+0000) Subject: fdt: fix dts preprocessor options X-Git-Tag: v2013.04-rc1~55 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6487d88aaa034e78e9882f7856ba670a8de88b41;p=oweals%2Fu-boot.git fdt: fix dts preprocessor options 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 Reviewed-by: Stephen Warren Acked-by: Simon Glass --- diff --git a/dts/Makefile b/dts/Makefile index 785104e6d6..922c78c1ca 100644 --- a/dts/Makefile +++ b/dts/Makefile @@ -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\"