diff options
| author | Allen Martin <amartin@nvidia.com> | 2013-01-08 16:07:54 +0000 | 
|---|---|---|
| committer | Tom Warren <twarren@nvidia.com> | 2013-01-17 09:07:59 -0700 | 
| commit | 7cb70a34b976e68f6348ea0718780e8f38901482 (patch) | |
| tree | 7d640266996c2892e4bf9e907a6038446be9d190 | |
| parent | 64e6ec1d4e2f97b6ae03ee158f64f5b0074c214a (diff) | |
| download | olio-uboot-2014.01-7cb70a34b976e68f6348ea0718780e8f38901482.tar.xz olio-uboot-2014.01-7cb70a34b976e68f6348ea0718780e8f38901482.zip | |
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 <amartin@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
| -rw-r--r-- | dts/Makefile | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/dts/Makefile b/dts/Makefile index 785104e6d..922c78c1c 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\" |