diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-11-06 03:31:34 -0500 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2008-12-03 15:32:00 -0500 |
commit | 5410ecc0def8955ab99810c5626cc7e156991896 (patch) | |
tree | 53e12491b3a590101eddde098407f3ae3e759a5d /scripts | |
parent | d03fab43c5ba4f5fa46db73c937e9b993a531d27 (diff) |
kbuild: introduce $(kecho) convenience echo
There is a bunch of places in the build system where we do 'echo' to show
some nice status lines. This means we still get output when running in
silent mode. So declare a new KECHO variable that only does 'echo' when we
are in a suitable verbose build mode.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
[sam: added Documentation]
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Kbuild.include | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 936940b541f..8cf87e815e5 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include | |||
@@ -25,6 +25,13 @@ basetarget = $(basename $(notdir $@)) | |||
25 | escsq = $(subst $(squote),'\$(squote)',$1) | 25 | escsq = $(subst $(squote),'\$(squote)',$1) |
26 | 26 | ||
27 | ### | 27 | ### |
28 | # Easy method for doing a status message | ||
29 | kecho := : | ||
30 | quiet_kecho := echo | ||
31 | silent_kecho := : | ||
32 | kecho := $($(quiet)kecho) | ||
33 | |||
34 | ### | ||
28 | # filechk is used to check if the content of a generated file is updated. | 35 | # filechk is used to check if the content of a generated file is updated. |
29 | # Sample usage: | 36 | # Sample usage: |
30 | # define filechk_sample | 37 | # define filechk_sample |