Skip to content

Commit

Permalink
dts/Makefile: pass -undef -D__DTS__ to cpp
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Simon Glass <[email protected]>
  • Loading branch information
nvswarren authored and trini committed Aug 2, 2013
1 parent 32ac4bd commit f53932a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit f53932a

Please sign in to comment.