Commit d03fab43c5ba4f5fa46db73c937e9b993a531d27

Authored by Mike Frysinger
Committed by Sam Ravnborg
1 parent d8672b40d3

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>

Showing 1 changed file with 4 additions and 2 deletions Side-by-side Diff

... ... @@ -4,6 +4,8 @@
4 4 PREEMPT=$4
5 5 CC=$5
6 6  
  7 +vecho() { [ "${quiet}" = "silent_" ] || echo "$@" ; }
  8 +
7 9 # If compile.h exists already and we don't own autoconf.h
8 10 # (i.e. we're not the same user who did make *config), don't
9 11 # modify compile.h
... ... @@ -11,7 +13,7 @@
11 13 # do "compiled by root"
12 14  
13 15 if [ -r $TARGET -a ! -O include/linux/autoconf.h ]; then
14   - echo " SKIPPED $TARGET"
  16 + vecho " SKIPPED $TARGET"
15 17 exit 0
16 18 fi
17 19  
... ... @@ -89,7 +91,7 @@
89 91 cmp -s .tmpver.1 .tmpver.2; then
90 92 rm -f .tmpcompile
91 93 else
92   - echo " UPD $TARGET"
  94 + vecho " UPD $TARGET"
93 95 mv -f .tmpcompile $TARGET
94 96 fi
95 97 rm -f .tmpver.1 .tmpver.2