Makefile: Remove 'quiet' variable
authorCédric Marie <cedric.marie@openmailbox.org>
Thu, 8 Oct 2015 20:03:37 +0000 (22:03 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 28 Oct 2015 23:04:05 +0000 (00:04 +0100)
'quiet' variable is set and exported, but it is not used. We can safely
remove it.

This variable is inherited from the Makefile of the Linux kernel, and
is not used in Buildroot.

In support/scripts/mkmakefile, 'quiet' value is checked, but the test
is always true ('quiet' is never set to silent_), so the test can be
removed as well.

Signed-off-by: Cédric Marie <cedric.marie@openmailbox.org>
Reviewed-by: "James Knight" <james.d.knight@live.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Makefile
support/scripts/mkmakefile

index dd8959f01940ebfe03055236a69cdb82a0134b65..8e3f6572d5c77fd7cc2bbee8b963c2185575f50a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -228,14 +228,12 @@ ifndef KBUILD_VERBOSE
 endif
 
 ifeq ($(KBUILD_VERBOSE),1)
-  quiet =
   Q =
 ifndef VERBOSE
   VERBOSE = 1
 endif
 export VERBOSE
 else
-  quiet = quiet_
   Q = @
 endif
 
@@ -247,7 +245,7 @@ SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
 # kconfig uses CONFIG_SHELL
 CONFIG_SHELL := $(SHELL)
 
-export SHELL CONFIG_SHELL quiet Q KBUILD_VERBOSE
+export SHELL CONFIG_SHELL Q KBUILD_VERBOSE
 
 ifndef HOSTAR
 HOSTAR := ar
index 833be6a92cb909f40e2c4172cbcf81b365fd1f6b..37162a3173acc6beb31dada85114613003923e3e 100755 (executable)
@@ -15,9 +15,7 @@ if test -e $2/Makefile && ! grep -q Automatically $2/Makefile
 then
        exit 0
 fi
-if [ "${quiet}" != "silent_" ]; then
-       echo "  GEN     $2/Makefile"
-fi
+echo "  GEN     $2/Makefile"
 
 cat << EOF > $2/Makefile
 # Automatically generated by $0: don't edit