summaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.lib
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-03-21 14:28:11 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-04-28 14:18:25 +0200
commit5d0362c5d350ffdd9c9df016b0a86e2c18b796a3 (patch)
tree1d7adee0056faccfd3590bc27667f835bb0f188f /scripts/Makefile.lib
parenta115d5f94398bf0da9dcbe7912b177253d28e7b9 (diff)
downloadbarebox-5d0362c5d350ffdd9c9df016b0a86e2c18b796a3.tar.gz
barebox-5d0362c5d350ffdd9c9df016b0a86e2c18b796a3.tar.xz
dts: Use dt-bindings from kernel
barebox used to have its own include/dt-bindings with files copied from the corresponding kernel files. Use upstream dt-bindings directly instead. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts/Makefile.lib')
-rw-r--r--scripts/Makefile.lib6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index cf7e2d54f7..d4306cbe78 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -146,8 +146,9 @@ cpp_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(__cpp_flags)
ld_flags = $(LDFLAGS) $(EXTRA_LDFLAGS)
dtc_cpp_flags = -Wp,-MD,$(depfile).pre -nostdinc \
- -I$(srctree)/arch/$(SRCARCH)/dts \
- -I$(srctree)/arch/$(SRCARCH)/dts/include \
+ -I$(srctree)/arch/$(SRCARCH)/dts/include \
+ -I$(srctree)/dts/include \
+ -I$(srctree)/dts/src/ \
-undef -D__DTS__
# Finds the multi-part object the current object will be linked into
@@ -222,6 +223,7 @@ quiet_cmd_dtc = DTC $@
cmd_dtc = $(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \
$(objtree)/scripts/dtc/dtc -O dtb -o $@ -b 0 \
-i $(srctree)/arch/$(SRCARCH)/dts $(DTC_FLAGS) \
+ -i $(srctree)/dts/src/$(SRCARCH) \
-d $(depfile).dtc $(dtc-tmp) ; \
cat $(depfile).pre $(depfile).dtc > $(depfile)