]> git.sur5r.net Git - u-boot/commitdiff
binman: Allow configuration options to be used in .dts files
authorSimon Glass <sjg@chromium.org>
Sat, 26 Nov 2016 03:15:58 +0000 (20:15 -0700)
committerSimon Glass <sjg@chromium.org>
Mon, 19 Dec 2016 19:09:55 +0000 (08:09 +1300)
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>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
scripts/Makefile.lib

index 956a8a9b04471fceabdc8ca659a577da6360af78..a237b7bf85913e095f3a8472e773342cb3680f55 100644 (file)
@@ -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