summaryrefslogtreecommitdiffstats
path: root/support/scripts
diff options
context:
space:
mode:
authorSerj Kalichev <serj.kalichev@gmail.com>2018-11-02 14:29:33 +0300
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-11-02 21:23:02 +0100
commitc77cd170826e6430315f56a5c4d44ee97cc83050 (patch)
treea5ccd04dd7daf55b638c638655414ed5d627c45e /support/scripts
parent2d74dbd2aae2fecdf667859348d49bc681b75d95 (diff)
downloadbuildroot-c77cd170826e6430315f56a5c4d44ee97cc83050.tar.gz
buildroot-c77cd170826e6430315f56a5c4d44ee97cc83050.zip
support/scripts/mkmakefile: make wrapper silent by default
Suppose we use Makefile wrapper and build some project out of buildroot tree (O=...). A command like "make busybox-all-external-deps" will output the string "uname 022 && make ..." to stdout before the usefull information. It pollutes stdout. At 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@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'support/scripts')
-rwxr-xr-xsupport/scripts/mkmakefile9
1 files changed, 8 insertions, 1 deletions
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:;
OpenPOWER on IntegriCloud