diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-11-06 03:31:35 -0500 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2008-12-03 15:32:01 -0500 |
commit | fd54f502841c1caa7cfd5af564aad1bd017371fa (patch) | |
tree | d45bc3583946387722d3aa587a82213961e0befe | |
parent | 5410ecc0def8955ab99810c5626cc7e156991896 (diff) |
kbuild: use KECHO convenience echo
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 <vapier@gentoo.org>
[sam: added kecho in a few more places for O=... builds]
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
-rw-r--r-- | Makefile | 8 | ||||
-rw-r--r-- | arch/blackfin/boot/Makefile | 2 | ||||
-rw-r--r-- | scripts/Kbuild.include | 11 |
3 files changed, 7 insertions, 14 deletions
@@ -926,7 +926,7 @@ PHONY += prepare archprepare prepare0 prepare1 prepare2 prepare3 | |||
926 | # 2) Create the include2 directory, used for the second asm symlink | 926 | # 2) Create the include2 directory, used for the second asm symlink |
927 | prepare3: include/config/kernel.release | 927 | prepare3: include/config/kernel.release |
928 | ifneq ($(KBUILD_SRC),) | 928 | ifneq ($(KBUILD_SRC),) |
929 | @echo ' Using $(srctree) as source for kernel' | 929 | @$(kecho) ' Using $(srctree) as source for kernel' |
930 | $(Q)if [ -f $(srctree)/.config -o -d $(srctree)/include/config ]; then \ | 930 | $(Q)if [ -f $(srctree)/.config -o -d $(srctree)/include/config ]; then \ |
931 | echo " $(srctree) is not clean, please run 'make mrproper'";\ | 931 | echo " $(srctree) is not clean, please run 'make mrproper'";\ |
932 | echo " in the '$(srctree)' directory.";\ | 932 | echo " in the '$(srctree)' directory.";\ |
@@ -983,7 +983,7 @@ endef | |||
983 | # directory for generated filesas used by some architectures. | 983 | # directory for generated filesas used by some architectures. |
984 | define create-symlink | 984 | define create-symlink |
985 | if [ ! -L include/asm ]; then \ | 985 | if [ ! -L include/asm ]; then \ |
986 | echo ' SYMLINK $@ -> include/asm-$(SRCARCH)'; \ | 986 | $(kecho) ' SYMLINK $@ -> include/asm-$(SRCARCH)'; \ |
987 | if [ ! -d include/asm-$(SRCARCH) ]; then \ | 987 | if [ ! -d include/asm-$(SRCARCH) ]; then \ |
988 | mkdir -p include/asm-$(SRCARCH); \ | 988 | mkdir -p include/asm-$(SRCARCH); \ |
989 | fi; \ | 989 | fi; \ |
@@ -1096,7 +1096,7 @@ all: modules | |||
1096 | PHONY += modules | 1096 | PHONY += modules |
1097 | modules: $(vmlinux-dirs) $(if $(KBUILD_BUILTIN),vmlinux) | 1097 | modules: $(vmlinux-dirs) $(if $(KBUILD_BUILTIN),vmlinux) |
1098 | $(Q)$(AWK) '!x[$$0]++' $(vmlinux-dirs:%=$(objtree)/%/modules.order) > $(objtree)/modules.order | 1098 | $(Q)$(AWK) '!x[$$0]++' $(vmlinux-dirs:%=$(objtree)/%/modules.order) > $(objtree)/modules.order |
1099 | @echo ' Building modules, stage 2.'; | 1099 | @$(kecho) ' Building modules, stage 2.'; |
1100 | $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost | 1100 | $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost |
1101 | $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.fwinst obj=firmware __fw_modbuild | 1101 | $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.fwinst obj=firmware __fw_modbuild |
1102 | 1102 | ||
@@ -1360,7 +1360,7 @@ $(module-dirs): crmodverdir $(objtree)/Module.symvers | |||
1360 | $(Q)$(MAKE) $(build)=$(patsubst _module_%,%,$@) | 1360 | $(Q)$(MAKE) $(build)=$(patsubst _module_%,%,$@) |
1361 | 1361 | ||
1362 | modules: $(module-dirs) | 1362 | modules: $(module-dirs) |
1363 | @echo ' Building modules, stage 2.'; | 1363 | @$(kecho) ' Building modules, stage 2.'; |
1364 | $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost | 1364 | $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost |
1365 | 1365 | ||
1366 | PHONY += modules_install | 1366 | PHONY += modules_install |
diff --git a/arch/blackfin/boot/Makefile b/arch/blackfin/boot/Makefile index 522f3c124060..e028d13481a9 100644 --- a/arch/blackfin/boot/Makefile +++ b/arch/blackfin/boot/Makefile | |||
@@ -25,7 +25,7 @@ $(obj)/vmlinux.gz: $(obj)/vmlinux.bin FORCE | |||
25 | 25 | ||
26 | $(obj)/vmImage: $(obj)/vmlinux.gz | 26 | $(obj)/vmImage: $(obj)/vmlinux.gz |
27 | $(call if_changed,uimage) | 27 | $(call if_changed,uimage) |
28 | @echo 'Kernel: $@ is ready' | 28 | @$(kecho) 'Kernel: $@ is ready' |
29 | 29 | ||
30 | install: | 30 | install: |
31 | sh $(srctree)/$(src)/install.sh $(KERNELRELEASE) $(BOOTIMAGE) System.map "$(INSTALL_PATH)" | 31 | sh $(srctree)/$(src)/install.sh $(KERNELRELEASE) $(BOOTIMAGE) System.map "$(INSTALL_PATH)" |
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 8cf87e815e51..c29be8f90248 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include | |||
@@ -46,22 +46,15 @@ kecho := $($(quiet)kecho) | |||
46 | # - If they are equal no change, and no timestamp update | 46 | # - If they are equal no change, and no timestamp update |
47 | # - stdin is piped in from the first prerequisite ($<) so one has | 47 | # - stdin is piped in from the first prerequisite ($<) so one has |
48 | # to specify a valid file as first prerequisite (often the kbuild file) | 48 | # to specify a valid file as first prerequisite (often the kbuild file) |
49 | chk_filechk = : | ||
50 | quiet_chk_filechk = echo ' CHK $@' | ||
51 | silent_chk_filechk = : | ||
52 | upd_filechk = : | ||
53 | quiet_upd_filechk = echo ' UPD $@' | ||
54 | silent_upd_filechk = : | ||
55 | |||
56 | define filechk | 49 | define filechk |
57 | $(Q)set -e; \ | 50 | $(Q)set -e; \ |
58 | $($(quiet)chk_filechk); \ | 51 | $(kecho) ' CHK $@'; \ |
59 | mkdir -p $(dir $@); \ | 52 | mkdir -p $(dir $@); \ |
60 | $(filechk_$(1)) < $< > $@.tmp; \ | 53 | $(filechk_$(1)) < $< > $@.tmp; \ |
61 | if [ -r $@ ] && cmp -s $@ $@.tmp; then \ | 54 | if [ -r $@ ] && cmp -s $@ $@.tmp; then \ |
62 | rm -f $@.tmp; \ | 55 | rm -f $@.tmp; \ |
63 | else \ | 56 | else \ |
64 | $($(quiet)upd_filechk); \ | 57 | $(kecho) ' UPD $@'; \ |
65 | mv -f $@.tmp $@; \ | 58 | mv -f $@.tmp $@; \ |
66 | fi | 59 | fi |
67 | endef | 60 | endef |