mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
kbuild: clean up ${quiet} checks in shell scripts
There were efforts to make 'make -s' really silent when it is a warning-free build. The conventional way was to let a shell script check ${quiet}, and if it is 'silent_', suppress the stdout by itself. With the previous commit, the 'cmd' takes care of it now. The 'cmd' is also invoked from if_changed, if_changed_dep, and if_changed_rule. You can omit ${quiet} checks in shell scripts when they are invoked from the 'cmd' macro. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
parent
174a1dcc96
commit
c39013ee64
3 changed files with 3 additions and 9 deletions
|
@ -56,9 +56,7 @@ if [ -f kernel/kheaders.md5 ] &&
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${quiet}" != "silent_" ]; then
|
echo " GEN $tarfile"
|
||||||
echo " GEN $tarfile"
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm -rf $cpio_dir
|
rm -rf $cpio_dir
|
||||||
mkdir $cpio_dir
|
mkdir $cpio_dir
|
||||||
|
|
|
@ -38,9 +38,7 @@ LDFLAGS_vmlinux="$3"
|
||||||
# Will be supressed by "make -s"
|
# Will be supressed by "make -s"
|
||||||
info()
|
info()
|
||||||
{
|
{
|
||||||
if [ "${quiet}" != "silent_" ]; then
|
printf " %-7s %s\n" "${1}" "${2}"
|
||||||
printf " %-7s %s\n" "${1}" "${2}"
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Generate a linker script to ensure correct ordering of initcalls.
|
# Generate a linker script to ensure correct ordering of initcalls.
|
||||||
|
|
|
@ -9,8 +9,6 @@ PREEMPT_RT=$5
|
||||||
CC_VERSION="$6"
|
CC_VERSION="$6"
|
||||||
LD=$7
|
LD=$7
|
||||||
|
|
||||||
vecho() { [ "${quiet}" = "silent_" ] || echo "$@" ; }
|
|
||||||
|
|
||||||
# Do not expand names
|
# Do not expand names
|
||||||
set -f
|
set -f
|
||||||
|
|
||||||
|
@ -82,7 +80,7 @@ if [ -r $TARGET ] && \
|
||||||
cmp -s .tmpver.1 .tmpver.2; then
|
cmp -s .tmpver.1 .tmpver.2; then
|
||||||
rm -f .tmpcompile
|
rm -f .tmpcompile
|
||||||
else
|
else
|
||||||
vecho " UPD $TARGET"
|
echo " UPD $TARGET"
|
||||||
mv -f .tmpcompile $TARGET
|
mv -f .tmpcompile $TARGET
|
||||||
fi
|
fi
|
||||||
rm -f .tmpver.1 .tmpver.2
|
rm -f .tmpver.1 .tmpver.2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue