summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-11-25 20:15:58 -0700
committerSimon Glass <sjg@chromium.org>2016-12-20 08:09:55 +1300
commitb116aff27c56dbc9132d847f7134eb7e4cc26aa3 (patch)
tree83b7e62de610494ecae799f9c9c16ca86ddcdd01 /scripts
parent17a944b671e39efe6743da43a73aba020af6efce (diff)
downloadu-boot-imx-b116aff27c56dbc9132d847f7134eb7e4cc26aa3.zip
u-boot-imx-b116aff27c56dbc9132d847f7134eb7e4cc26aa3.tar.gz
u-boot-imx-b116aff27c56dbc9132d847f7134eb7e4cc26aa3.tar.bz2
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 <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.lib5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 956a8a9..a237b7b 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