[Crosstoolchain-logs] [device-tree-compiler] 191/357: dtc: Add missing dependencies for tests

Hector Oron zumbi at moszumanska.debian.org
Thu Dec 8 17:06:12 UTC 2016


This is an automated email from the git hooks/post-receive script.

zumbi pushed a commit to branch upstream/1.3.x
in repository device-tree-compiler.

commit f6588bc32fd46d63da6058f37ce799ab948c3513
Author: David Gibson <david at gibson.dropbear.id.au>
Date:   Tue Nov 13 09:52:58 2007 +1100

    dtc: Add missing dependencies for tests
    
    At present, the Makefiles will not rebuild trees.o or the dtb files
    derived from it if testdata.h is updated.  This is incorrect, and is
    because of missing dependency information.
    
    This patch fixes the problem by making sure that dependency
    information is generated from trees.S and dumptrees.c.
    
    Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
---
 Makefile             | 4 ++++
 tests/Makefile.tests | 3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 4d4b98e..9f9bee0 100644
--- a/Makefile
+++ b/Makefile
@@ -188,6 +188,10 @@ clean: libfdt_clean tests_clean
 	@$(VECHO) DEP $<
 	$(CC) $(CPPFLAGS) -MM -MG -MT "$*.o $@" $< > $@
 
+%.d: %.S
+	@$(VECHO) DEP $<
+	$(CC) $(CPPFLAGS) -MM -MG -MT "$*.o $@" $< > $@
+
 %.i:	%.c
 	@$(VECHO) CPP $@
 	$(CC) $(CPPFLAGS) -E $< > $@
diff --git a/tests/Makefile.tests b/tests/Makefile.tests
index 8ee0e5d..ec589aa 100644
--- a/tests/Makefile.tests
+++ b/tests/Makefile.tests
@@ -21,7 +21,8 @@ TESTS_TREES = $(TESTS_TREES_L:%=$(TESTS_PREFIX)%)
 
 TESTS_TARGETS = $(TESTS) $(TESTS_TREES)
 
-TESTS_DEPFILES = $(TESTS:%=%.d) $(TESTS_PREFIX)testutils.d
+TESTS_DEPFILES = $(TESTS:%=%.d) \
+	$(addprefix $(TESTS_PREFIX),testutils.d trees.d dumptrees.d)
 
 TESTS_CLEANFILES_L =  *.output vgcore.* *.dtb *.test.dts
 TESTS_CLEANFILES = $(TESTS_CLEANFILES_L:%=$(TESTS_PREFIX)%)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git



More information about the Crosstoolchain-logs mailing list