* [Buildroot] [PATCH v2] Makefile: Remove 'quiet' variable
@ 2015-10-08 20:03 Cédric Marie
2015-10-27 4:52 ` James Knight
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Cédric Marie @ 2015-10-08 20:03 UTC (permalink / raw)
To: buildroot
'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>
---
Changes v1 -> v2:
- KBUILD_VERBOSE must not be removed, it is used for packages based
on Kbuild.
Title of PATCH v1 was:
Makefile: Remove KBUILD_VERBOSE and quiet
In order to describe how the verbosity level is managed in different
infrastructures, comments will be added in Makefile (suggested by Arnout).
It will be provided in a separate patch.
Arnout also suggested not to export 'Q', which seems to be Buildroot
internal. This will also be provided in a separate patch, if confirmed.
---
Makefile | 4 +---
support/scripts/mkmakefile | 4 +---
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/Makefile b/Makefile
index 181d446..470ea65 100644
--- a/Makefile
+++ b/Makefile
@@ -226,14 +226,12 @@ ifndef KBUILD_VERBOSE
endif
ifeq ($(KBUILD_VERBOSE),1)
- quiet =
Q =
ifndef VERBOSE
VERBOSE = 1
endif
export VERBOSE
else
- quiet = quiet_
Q = @
endif
@@ -245,7 +243,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
diff --git a/support/scripts/mkmakefile b/support/scripts/mkmakefile
index 833be6a..37162a3 100755
--- a/support/scripts/mkmakefile
+++ b/support/scripts/mkmakefile
@@ -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
--
2.6.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH v2] Makefile: Remove 'quiet' variable
2015-10-08 20:03 [Buildroot] [PATCH v2] Makefile: Remove 'quiet' variable Cédric Marie
@ 2015-10-27 4:52 ` James Knight
2015-10-28 21:00 ` Arnout Vandecappelle
2015-10-28 23:05 ` Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: James Knight @ 2015-10-27 4:52 UTC (permalink / raw)
To: buildroot
On Thu, Oct 8, 2015 at 4:03 PM, C?dric Marie
<cedric.marie@openmailbox.org> wrote:
> '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>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH v2] Makefile: Remove 'quiet' variable
2015-10-08 20:03 [Buildroot] [PATCH v2] Makefile: Remove 'quiet' variable Cédric Marie
2015-10-27 4:52 ` James Knight
@ 2015-10-28 21:00 ` Arnout Vandecappelle
2015-10-28 23:05 ` Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Arnout Vandecappelle @ 2015-10-28 21:00 UTC (permalink / raw)
To: buildroot
On 08-10-15 22:03, C?dric Marie wrote:
> '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: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Regards,
Arnout
>
> ---
> Changes v1 -> v2:
> - KBUILD_VERBOSE must not be removed, it is used for packages based
> on Kbuild.
>
> Title of PATCH v1 was:
> Makefile: Remove KBUILD_VERBOSE and quiet
>
> In order to describe how the verbosity level is managed in different
> infrastructures, comments will be added in Makefile (suggested by Arnout).
> It will be provided in a separate patch.
>
> Arnout also suggested not to export 'Q', which seems to be Buildroot
> internal. This will also be provided in a separate patch, if confirmed.
> ---
> Makefile | 4 +---
> support/scripts/mkmakefile | 4 +---
> 2 files changed, 2 insertions(+), 6 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index 181d446..470ea65 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -226,14 +226,12 @@ ifndef KBUILD_VERBOSE
> endif
>
> ifeq ($(KBUILD_VERBOSE),1)
> - quiet =
> Q =
> ifndef VERBOSE
> VERBOSE = 1
> endif
> export VERBOSE
> else
> - quiet = quiet_
> Q = @
> endif
>
> @@ -245,7 +243,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
> diff --git a/support/scripts/mkmakefile b/support/scripts/mkmakefile
> index 833be6a..37162a3 100755
> --- a/support/scripts/mkmakefile
> +++ b/support/scripts/mkmakefile
> @@ -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
>
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH v2] Makefile: Remove 'quiet' variable
2015-10-08 20:03 [Buildroot] [PATCH v2] Makefile: Remove 'quiet' variable Cédric Marie
2015-10-27 4:52 ` James Knight
2015-10-28 21:00 ` Arnout Vandecappelle
@ 2015-10-28 23:05 ` Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2015-10-28 23:05 UTC (permalink / raw)
To: buildroot
>>>>> "C?dric" == C?dric Marie <cedric.marie@openmailbox.org> writes:
> '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>
> ---
> Changes v1 -> v2:
> - KBUILD_VERBOSE must not be removed, it is used for packages based
> on Kbuild.
> Title of PATCH v1 was:
> Makefile: Remove KBUILD_VERBOSE and quiet
> In order to describe how the verbosity level is managed in different
> infrastructures, comments will be added in Makefile (suggested by Arnout).
> It will be provided in a separate patch.
> Arnout also suggested not to export 'Q', which seems to be Buildroot
> internal. This will also be provided in a separate patch, if confirmed.
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-10-28 23:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-08 20:03 [Buildroot] [PATCH v2] Makefile: Remove 'quiet' variable Cédric Marie
2015-10-27 4:52 ` James Knight
2015-10-28 21:00 ` Arnout Vandecappelle
2015-10-28 23:05 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox