diff mbox

[U-Boot,28/30] binman: Allow configuration options to be used in .dts files

Message ID 1469494766-26601-29-git-send-email-sjg@chromium.org
State Accepted
Commit b116aff27c56dbc9132d847f7134eb7e4cc26aa3
Delegated to: Simon Glass
Headers show

Commit Message

Simon Glass July 26, 2016, 12:59 a.m. UTC
It is sometimes useful to be able to reference configuration options in a
device tree source file. Add the necessary includes so that this works.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 scripts/Makefile.lib | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox

Patch

diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index e720562..440f871 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -168,6 +168,11 @@  ld_flags       = $(LDFLAGS) $(ldflags-y)
 dtc_cpp_flags  = -Wp,-MD,$(depfile).pre.tmp -nostdinc                    \
 		 -I$(srctree)/arch/$(ARCH)/dts                           \
 		 -I$(srctree)/arch/$(ARCH)/dts/include                   \
+		 -Iinclude                                               \
+		 -I$(srctree)/include                                    \
+		 -I$(srctree)/arch/$(ARCH)/include                       \
+		 -include $(srctree)/include/linux/kconfig.h             \
+		 -D__ASSEMBLY__                                          \
 		 -undef -D__DTS__
 
 # Finds the multi-part object the current object will be linked into