Commit b4f106be authored by Horst Kronstorfer's avatar Horst Kronstorfer Committed by Wolfgang Denk
Browse files

dts/Makefile: Turn off some predefined macros

Add '-ansi' to DTS_CPPFLAGS to avoid unwanted expansion of dts content
that matches some predefined macros.

Example: A number of PowerPC related *.dts files in the kernel define a
property named 'linux,network-index' which (w/o '-ansi') is expanded to
'1,network-index' by the preprocessor because of '#define linux 1.'
Signed-off-by: default avatarHorst Kronstorfer <>
parent 8fde2f3a
......@@ -36,7 +36,8 @@ $(error Your architecture does not have device tree support enabled. \
# We preprocess the device tree file provide a useful define
DTS_CPPFLAGS := -ansi \
all: $(obj).depend $(LIB)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment