[Crosstoolchain-logs] [device-tree-compiler] 135/357: dtc: Make make print a message when linking testcases

Hector Oron zumbi at moszumanska.debian.org
Thu Dec 8 17:06:06 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 ed0117a0c059ec0e1257573b0850081787bd651d
Author: David Gibson <david at gibson.dropbear.id.au>
Date:   Fri Aug 31 16:04:27 2007 +1000

    dtc: Make make print a message when linking testcases
    
    Currently, dtc relies on make's implicit rule to build the testcases.
    This means that when not making verbosely (V=0, the default) there is
    no message at all while relinking the testsuites.  This can be very
    confusing when updating libfdt.a (upon which the testcases depend) and
    make appears to do nothing.
    
    This patch corrects the situation, borrowing the rule used to link dtc
    itself to link all the testcases as well.
    
    Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
---
 Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 24ce91a..5766012 100644
--- a/Makefile
+++ b/Makefile
@@ -101,8 +101,6 @@ lex.yy.c: dtc-lexer.l
 	$(LEX) $<
 
 dtc: $(DTC_OBJS)
-	@$(VECHO) LD $@
-	$(LINK.c) -o $@ $^
 
 ftdump:	ftdump.o
 
@@ -168,6 +166,10 @@ endef
 #
 # Generic compile rules
 #
+%: %.o
+	@$(VECHO) LD $@
+	$(LINK.c) -o $@ $^
+
 %.o: %.c
 	@$(VECHO) CC $@
 	$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -c $<

-- 
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