forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert a few echos in the build system to new $(kecho) so we get correct output according to build verbosity. Signed-off-by: Mike Frysinger <[email protected]> [sam: added kecho in a few more places for O=... builds] Signed-off-by: Sam Ravnborg <[email protected]>
- Loading branch information
Showing
3 changed files
with
7 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,22 +46,15 @@ kecho := $($(quiet)kecho) | |
# - If they are equal no change, and no timestamp update | ||
# - stdin is piped in from the first prerequisite ($<) so one has | ||
# to specify a valid file as first prerequisite (often the kbuild file) | ||
chk_filechk = : | ||
quiet_chk_filechk = echo ' CHK $@' | ||
silent_chk_filechk = : | ||
upd_filechk = : | ||
quiet_upd_filechk = echo ' UPD $@' | ||
silent_upd_filechk = : | ||
|
||
define filechk | ||
$(Q)set -e; \ | ||
$($(quiet)chk_filechk); \ | ||
$(kecho) ' CHK $@'; \ | ||
mkdir -p $(dir $@); \ | ||
$(filechk_$(1)) < $< > [email protected]; \ | ||
if [ -r $@ ] && cmp -s $@ [email protected]; then \ | ||
rm -f [email protected]; \ | ||
else \ | ||
$($(quiet)upd_filechk); \ | ||
$(kecho) ' UPD $@'; \ | ||
mv -f [email protected] $@; \ | ||
fi | ||
endef | ||
|