[dpdk-dev] mk: print target when reporting build complete

Message ID 1435833337-26386-1-git-send-email-bruce.richardson@intel.com (mailing list archive)
State Accepted, archived
Headers

Commit Message

Bruce Richardson July 2, 2015, 10:35 a.m. UTC
When a target is finished building, it reports just "Build complete".
When building multiple targets simultaneously, e.g.
	make install T=x86_64-native-linuxapp-*
and one target fails, it's not always obvious which of the builds
failed. To help this, we add the actual target that is completed to the
"Build complete" message.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
 mk/rte.sdkbuild.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Comments

Thomas Monjalon July 2, 2015, 11:47 a.m. UTC | #1
2015-07-02 11:35, Bruce Richardson:
> When a target is finished building, it reports just "Build complete".
> When building multiple targets simultaneously, e.g.
> 	make install T=x86_64-native-linuxapp-*
> and one target fails, it's not always obvious which of the builds
> failed. To help this, we add the actual target that is completed to the
> "Build complete" message.
> 
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>

Good idea.
Applied, thanks
  

Patch

diff --git a/mk/rte.sdkbuild.mk b/mk/rte.sdkbuild.mk
index 09bb60a..352f738 100644
--- a/mk/rte.sdkbuild.mk
+++ b/mk/rte.sdkbuild.mk
@@ -1,6 +1,6 @@ 
 #   BSD LICENSE
 #
-#   Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
+#   Copyright(c) 2010-2015 Intel Corporation. All rights reserved.
 #   All rights reserved.
 #
 #   Redistribution and use in source and binary forms, with or without
@@ -60,7 +60,7 @@  CLEANDIRS = $(addsuffix _clean,$(ROOTDIRS-y) $(ROOTDIRS-n) $(ROOTDIRS-))
 
 .PHONY: build
 build: $(ROOTDIRS-y)
-	@echo Build complete
+	@echo "Build complete [$(RTE_TARGET)]"
 ifneq ($(DESTDIR),)
 	$(Q)mkdir -p $(DESTDIR)
 	$(Q)tar -C $(RTE_SDK) -cf - mk scripts/*.sh | tar -C $(DESTDIR) -x \