[Buildroot] [git commit branch/2018.08.x] package/pkg-generic.mk: fix show-build-order stdout pollution

Peter Korsgaard peter at korsgaard.com
Mon Nov 26 16:19:12 UTC 2018


commit: https://git.buildroot.net/buildroot/commit/?id=af1027fa524249b34d46e09dfba4c0363d3e98ab
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2018.08.x

The commands like "make show-build-order" or "make
<package>-show-build-order" show the build order and then print
"make[1]: Nothing to be done for 'show-build-order'" to stdout. It
pollutes output. Technically this message is true but it's not true
for user because he gets an information.

The <package>-show-build-order targets use $(info) for package name
printing.  The make utility doesn't consider the internal directive as
a command so it think that it's "Nothing to be done". The patch adds
the empty command to <package>-show-build-order to inform make utility
that taget makes some real actions.

Signed-off-by: Serj Kalichev <serj.kalichev at gmail.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
[Thomas: invert $(info) and @:, as suggested by Yann.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>

(cherry picked from commit 75c81a12f68f943af2966e737f882b3f4fc7a909)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/pkg-generic.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
index 91b61c6de0..f89b9ff4c7 100644
--- a/package/pkg-generic.mk
+++ b/package/pkg-generic.mk
@@ -797,6 +797,7 @@ $(1)-show-recursive-rdepends:
 			$$(TOPDIR)/support/scripts/graph-depends -p $(1) --reverse -f -q
 
 $(1)-show-build-order: $$(patsubst %,%-show-build-order,$$($(2)_FINAL_ALL_DEPENDENCIES))
+	@:
 	$$(info $(1))
 
 $(1)-graph-depends: graph-depends-requirements


More information about the buildroot mailing list