mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
dts/Makefile: pass -undef -D__DTS__ to cpp
This brings U-Boot's cpp invocation into line with the way the Linux kernel invokes cpp on device trees. Consistency will be useful to ensure *.dts is portable between the two. -undef also has the added advantage of not defining "linux", so DT property names such as "linux,keymap" don't get mangled. Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
32ac4bd9ca
commit
f53932addd
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ DTS_INCDIRS = $(SRCTREE)/board/$(VENDOR)/$(BOARD)/dts
|
|||
DTS_INCDIRS += $(SRCTREE)/board/$(VENDOR)/dts
|
||||
DTS_INCDIRS += $(SRCTREE)/arch/$(ARCH)/dts
|
||||
|
||||
DTS_CPPFLAGS := -x assembler-with-cpp \
|
||||
DTS_CPPFLAGS := -x assembler-with-cpp -undef -D__DTS__ \
|
||||
-nostdinc $(addprefix -I,$(DTS_INCDIRS))
|
||||
|
||||
DTC_FLAGS := -R 4 -p 0x1000 \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue