From: Simon Glass Date: Sat, 26 Nov 2016 03:15:58 +0000 (-0700) Subject: binman: Allow configuration options to be used in .dts files X-Git-Tag: v2017.01-rc3~46^2~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b116aff27c56dbc9132d847f7134eb7e4cc26aa3;p=u-boot binman: Allow configuration options to be used in .dts files 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 Reviewed-by: Bin Meng Tested-by: Bin Meng --- diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 956a8a9b04..a237b7bf85 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