diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-11-06 03:31:22 -0500 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2008-12-03 21:32:00 +0100 |
commit | d03fab43c5ba4f5fa46db73c937e9b993a531d27 (patch) | |
tree | 9a63b61b7ad3954e99ca1e96772630404c62e1da /scripts/mkcompile_h | |
parent | d8672b40d3a6f17de5b5bc71d6e531d7576a856a (diff) | |
download | linux-stable-d03fab43c5ba4f5fa46db73c937e9b993a531d27.tar.gz linux-stable-d03fab43c5ba4f5fa46db73c937e9b993a531d27.tar.bz2 linux-stable-d03fab43c5ba4f5fa46db73c937e9b993a531d27.zip |
kbuild: kill output in silent mode of mkcompile_h
The mkcompile_h script does `echo` regardless of silent mode the make is
running at, so have it respect $quiet from kbuild and only echo when not in
silent mode.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/mkcompile_h')
-rwxr-xr-x | scripts/mkcompile_h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/mkcompile_h b/scripts/mkcompile_h index a8740df07b09..6a12dd9f1181 100755 --- a/scripts/mkcompile_h +++ b/scripts/mkcompile_h @@ -4,6 +4,8 @@ SMP=$3 PREEMPT=$4 CC=$5 +vecho() { [ "${quiet}" = "silent_" ] || echo "$@" ; } + # If compile.h exists already and we don't own autoconf.h # (i.e. we're not the same user who did make *config), don't # modify compile.h @@ -11,7 +13,7 @@ CC=$5 # do "compiled by root" if [ -r $TARGET -a ! -O include/linux/autoconf.h ]; then - echo " SKIPPED $TARGET" + vecho " SKIPPED $TARGET" exit 0 fi @@ -89,7 +91,7 @@ if [ -r $TARGET ] && \ cmp -s .tmpver.1 .tmpver.2; then rm -f .tmpcompile else - echo " UPD $TARGET" + vecho " UPD $TARGET" mv -f .tmpcompile $TARGET fi rm -f .tmpver.1 .tmpver.2 |