mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-29 09:45:52 +00:00
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: Horst Kronstorfer <hkronsto@frequentis.com>
This commit is contained in:
parent
8fde2f3a95
commit
b4f106be2d
1 changed files with 2 additions and 1 deletions
|
@ -36,7 +36,8 @@ $(error Your architecture does not have device tree support enabled. \
|
||||||
Please define CONFIG_ARCH_DEVICE_TREE))
|
Please define CONFIG_ARCH_DEVICE_TREE))
|
||||||
|
|
||||||
# We preprocess the device tree file provide a useful define
|
# We preprocess the device tree file provide a useful define
|
||||||
DTS_CPPFLAGS := -DARCH_CPU_DTS=\"$(SRCTREE)/arch/$(ARCH)/dts/$(CONFIG_ARCH_DEVICE_TREE).dtsi\" \
|
DTS_CPPFLAGS := -ansi \
|
||||||
|
-DARCH_CPU_DTS=\"$(SRCTREE)/arch/$(ARCH)/dts/$(CONFIG_ARCH_DEVICE_TREE).dtsi\" \
|
||||||
-DBOARD_DTS=\"$(SRCTREE)/board/$(VENDOR)/$(BOARD)/dts/$(DEVICE_TREE).dts\"
|
-DBOARD_DTS=\"$(SRCTREE)/board/$(VENDOR)/$(BOARD)/dts/$(DEVICE_TREE).dts\"
|
||||||
|
|
||||||
all: $(obj).depend $(LIB)
|
all: $(obj).depend $(LIB)
|
||||||
|
|
Loading…
Add table
Reference in a new issue