summaryrefslogtreecommitdiff
path: root/scripts/Makefile.lib
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-03-31 16:44:25 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-03-31 17:19:31 +0200
commit5248f31613cde73ad30c05d9b9c86fe3dbe6b845 (patch)
treef07047be4764632bec90d9bf8417d6250d393d51 /scripts/Makefile.lib
parentca4473e417f9a98d82adbbc59ac31061d0d674d3 (diff)
downloadembtoolkit-5248f31613cde73ad30c05d9b9c86fe3dbe6b845.tar.gz
embtoolkit-5248f31613cde73ad30c05d9b9c86fe3dbe6b845.tar.bz2
embtoolkit-5248f31613cde73ad30c05d9b9c86fe3dbe6b845.tar.xz
kconfig: update from upstream 46a1f21a679abaaeae6d
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'scripts/Makefile.lib')
-rw-r--r--scripts/Makefile.lib19
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 70f26ef..1f65560 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -156,13 +156,20 @@ cpp_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(LINUXINCLUDE) \
ld_flags = $(LDFLAGS) $(ldflags-y)
+dtc_cpp_flags = -Wp,-MD,$(depfile) -nostdinc \
+ -I$(srctree)/arch/$(SRCARCH)/boot/dts \
+ -I$(srctree)/arch/$(SRCARCH)/include/dts \
+ -undef -D__DTS__
+
# Finds the multi-part object the current object will be linked into
modname-multi = $(sort $(foreach m,$(multi-used),\
$(if $(filter $(subst $(obj)/,,$*.o), $($(m:.o=-objs)) $($(m:.o=-y))),$(m:.o=))))
+
# Needed to generate shipped files for embtoolkit
# REGENERATE_PARSERS = 1
#
+
ifdef REGENERATE_PARSERS
# GPERF
@@ -269,6 +276,18 @@ $(obj)/%.dtb.S: $(obj)/%.dtb
quiet_cmd_dtc = DTC $@
cmd_dtc = $(objtree)/scripts/dtc/dtc -O dtb -o $@ -b 0 $(DTC_FLAGS) -d $(depfile) $<
+$(obj)/%.dtb: $(src)/%.dts FORCE
+ $(call if_changed_dep,dtc)
+
+dtc-tmp = $(subst $(comma),_,$(dot-target).dts)
+
+quiet_cmd_dtc_cpp = DTC+CPP $@
+cmd_dtc_cpp = $(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \
+ $(objtree)/scripts/dtc/dtc -O dtb -o $@ -b 0 $(DTC_FLAGS) $(dtc-tmp)
+
+$(obj)/%.dtb: $(src)/%.dtsp FORCE
+ $(call if_changed_dep,dtc_cpp)
+
# Bzip2
# ---------------------------------------------------------------------------