Skip to content

Commit

Permalink
kbuild: kill output in silent mode of mkcompile_h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mike Frysinger authored and Sam Ravnborg committed Dec 3, 2008
1 parent d8672b4 commit d03fab4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/mkcompile_h
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@ 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
# So "sudo make install" won't change the "compiled by <user>"
# do "compiled by root"

if [ -r $TARGET -a ! -O include/linux/autoconf.h ]; then
echo " SKIPPED $TARGET"
vecho " SKIPPED $TARGET"
exit 0
fi

Expand Down Expand Up @@ -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

0 comments on commit d03fab4

Please sign in to comment.