[Buildroot] [PATCH v2 1/1] support/scripts/mkmakefile: Wrapper is silent by default
Serj Kalichev
serj.kalichev at gmail.com
Fri Nov 2 11:29:33 UTC 2018
Suppose we use Makefile wrapper and build some
project out of buildroot tree (O=...). The commands like "make
busybox-all-external-deps" will output the string "uname 022 && make ..." to
stdout before the usefull information. It pollutes stdout. In the same time
if we use the same command in the buildroot source-tree then we don't get the
additional output. This patch makes wrapper silent by default. People who
prefer to see more verbose output can use V=1.
Signed-off-by: Serj Kalichev <serj.kalichev at gmail.com>
---
support/scripts/mkmakefile | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/support/scripts/mkmakefile b/support/scripts/mkmakefile
index 37162a3173..c7569f2ca5 100755
--- a/support/scripts/mkmakefile
+++ b/support/scripts/mkmakefile
@@ -20,6 +20,13 @@ echo " GEN $2/Makefile"
cat << EOF > $2/Makefile
# Automatically generated by $0: don't edit
+ifeq ("\$(origin V)", "command line")
+VERBOSE := \$(V)
+endif
+ifneq (\$(VERBOSE),1)
+Q := @
+endif
+
lastword = \$(word \$(words \$(1)),\$(1))
makedir := \$(dir \$(call lastword,\$(MAKEFILE_LIST)))
@@ -33,7 +40,7 @@ MAKEFLAGS += --no-print-directory
all := \$(filter-out Makefile,\$(MAKECMDGOALS))
_all:
- umask 0022 && \$(MAKE) \$(MAKEARGS) \$(all)
+ \$(Q)umask 0022 && \$(MAKE) \$(MAKEARGS) \$(all)
Makefile:;
--
2.17.1
More information about the buildroot
mailing list