Makefile: Support include files for .dts files

Linux supports this, and if we are to have compatible device tree files,
U-Boot should also.

Avoid giving the device tree files access to U-Boot's include/ directory.
Only include/dt-bindings is accessible.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
This commit is contained in:
Simon Glass 2014-06-11 23:29:44 -06:00
parent 42d3b29d9e
commit 5957ac2a9f
5 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1 @@
../../../../include/dt-bindings

View File

@ -0,0 +1 @@
../../../../include/dt-bindings

View File

@ -0,0 +1 @@
../../../../include/dt-bindings

View File

@ -0,0 +1 @@
../../../../include/dt-bindings

View File

@ -153,6 +153,7 @@ ld_flags = $(LDFLAGS) $(ldflags-y)
# Modified for U-Boot
dtc_cpp_flags = -Wp,-MD,$(depfile).pre.tmp -nostdinc \
-I$(srctree)/arch/$(ARCH)/dts \
-I$(srctree)/arch/$(ARCH)/dts/include \
-undef -D__DTS__
# Finds the multi-part object the current object will be linked into