History

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.

Masahiro Yamada committed 5 years ago

Commit c39013e1 parent 174a1dc3 files · +3 −9Browse files

Showing the changes to kernel (1 of 3 files). Show all

Unified · Split

kernel/gen_kheaders.sh+1−3
@@ -56,9 +56,7 @@ if [ -f kernel/kheaders.md5 ] && · 55 unmodified lines
56 exit56 exit
57fi57fi
58 58
59if [ "${quiet}" != "silent_" ]; then59echo " GEN $tarfile"
60 echo " GEN $tarfile"
61fi
62 60
63rm -rf $cpio_dir61rm -rf $cpio_dir
64mkdir $cpio_dir62mkdir $cpio_dir

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t