1111Kconfig := Kconfig
1212endif
1313
14+ ifeq ($(quiet ) ,silent_)
15+ silent := -s
16+ endif
17+
1418# We need this, in case the user has it in its environment
1519unexport CONFIG_
1620
1721xconfig : $(obj ) /qconf
18- $< $(Kconfig )
22+ $< $(silent ) $( Kconfig )
1923
2024gconfig : $(obj ) /gconf
21- $< $(Kconfig )
25+ $< $(silent ) $( Kconfig )
2226
2327menuconfig : $(obj ) /mconf
24- $< $(Kconfig )
28+ $< $(silent ) $( Kconfig )
2529
2630config : $(obj ) /conf
27- $< --oldaskconfig $(Kconfig )
31+ $< $( silent ) --oldaskconfig $(Kconfig )
2832
2933nconfig : $(obj ) /nconf
30- $< $(Kconfig )
34+ $< $(silent ) $( Kconfig )
3135
3236silentoldconfig : $(obj ) /conf
3337 $(Q ) mkdir -p include/config include/generated
34- $< --$@ $(Kconfig )
38+ $< $( silent ) --$@ $(Kconfig )
3539
3640localyesconfig localmodconfig : $(obj ) /streamline_config.pl $(obj ) /conf
3741 $(Q ) mkdir -p include/config include/generated
@@ -40,18 +44,18 @@ localyesconfig localmodconfig: $(obj)/streamline_config.pl $(obj)/conf
4044 cmp -s .tmp.config .config || \
4145 (mv -f .config .config.old.1; \
4246 mv -f .tmp.config .config; \
43- $(obj ) /conf --silentoldconfig $(Kconfig ) ; \
47+ $(obj ) /conf $( silent ) --silentoldconfig $(Kconfig ) ; \
4448 mv -f .config.old.1 .config.old) \
4549 else \
4650 mv -f .tmp.config .config; \
47- $(obj ) /conf --silentoldconfig $(Kconfig ) ; \
51+ $(obj ) /conf $( silent ) --silentoldconfig $(Kconfig ) ; \
4852 fi
4953 $(Q ) rm -f .tmp.config
5054
5155# Create new linux.pot file
5256# Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files
5357update-po-config : $(obj ) /kxgettext $(obj ) /gconf.glade.h
54- $(Q ) echo " GEN config.pot"
58+ $(Q )$( kecho ) " GEN config.pot"
5559 $(Q ) xgettext --default-domain=linux \
5660 --add-comments --keyword=_ --keyword=N_ \
5761 --from-code=UTF-8 \
@@ -62,11 +66,11 @@ update-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h
6266 $(Q ) (for i in ` ls $( srctree) /arch/* /Kconfig \
6367 $(srctree ) /arch/* /um/Kconfig` ; \
6468 do \
65- echo " GEN $$ i" ; \
69+ $( kecho ) " GEN $$ i" ; \
6670 $(obj ) /kxgettext $$ i \
6771 >> $(obj ) /config.pot; \
6872 done )
69- $(Q ) echo " GEN linux.pot"
73+ $(Q )$( kecho ) " GEN linux.pot"
7074 $(Q ) msguniq --sort-by-file --to-code=UTF-8 $(obj ) /config.pot \
7175 --output $(obj ) /linux.pot
7276 $(Q ) rm -f $(obj ) /config.pot
@@ -77,7 +81,7 @@ simple-targets := oldconfig allnoconfig allyesconfig allmodconfig \
7781PHONY += $(simple-targets )
7882
7983$(simple-targets ) : $(obj ) /conf
80- $< --$@ $(Kconfig )
84+ $< $( silent ) --$@ $(Kconfig )
8185
8286PHONY += oldnoconfig savedefconfig defconfig
8387
@@ -87,18 +91,18 @@ PHONY += oldnoconfig savedefconfig defconfig
8791oldnoconfig : olddefconfig
8892
8993savedefconfig : $(obj ) /conf
90- $< --$@ =defconfig $(Kconfig )
94+ $< $( silent ) --$@ =defconfig $(Kconfig )
9195
9296defconfig : $(obj ) /conf
9397ifeq ($(KBUILD_DEFCONFIG ) ,)
94- $< --defconfig $(Kconfig)
98+ $< $(silent) --defconfig $(Kconfig)
9599else
96- @echo "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'"
97- $(Q)$< --defconfig=arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig)
100+ @$(kecho) "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'"
101+ $(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig)
98102endif
99103
100104% _defconfig : $(obj ) /conf
101- $(Q ) $< --defconfig=arch/$(SRCARCH ) /configs/$@ $(Kconfig )
105+ $(Q ) $< $( silent ) --defconfig=arch/$(SRCARCH ) /configs/$@ $(Kconfig )
102106
103107configfiles =$(wildcard $(srctree ) /kernel/configs/$@ $(srctree ) /arch/$(SRCARCH ) /configs/$@ )
104108
@@ -215,7 +219,7 @@ $(obj)/.tmp_qtcheck: $(src)/Makefile
215219
216220# QT needs some extra effort...
217221$(obj ) /.tmp_qtcheck :
218- @set -e; echo " CHECK qt" ; dir=" " ; pkg=" " ; \
222+ @set -e; $( kecho ) " CHECK qt" ; dir=" " ; pkg=" " ; \
219223 if ! pkg-config --exists QtCore 2> /dev/null; then \
220224 echo " * Unable to find the QT4 tool qmake. Trying to use QT3" ; \
221225 pkg-config --exists qt 2> /dev/null && pkg=qt; \
0 commit comments