summaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/Makefile
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2015-04-08 07:30:42 -0400
committerMichal Marek <mmarek@suse.cz>2015-04-09 11:44:34 -0400
commit0a1f00a1c86421cc07cec87011c7cf4df68ee54b (patch)
tree06a6169a2c87dea29e62d44abfc493337c4854d5 /scripts/kconfig/Makefile
parent1cba0c305758c3c1786ecaceb03e142c95a4edc9 (diff)
kconfig: Do not print status messages in make -s mode
Add an -s option to the various frontends and pass it when make -s is used. Also, use $(kecho) instead of @echo in the Makefile. Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/kconfig/Makefile')
-rw-r--r--scripts/kconfig/Makefile40
1 files changed, 22 insertions, 18 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index 1f5e45355731..d9b1fef0c67e 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -11,27 +11,31 @@ else
11Kconfig := Kconfig 11Kconfig := Kconfig
12endif 12endif
13 13
14ifeq ($(quiet),silent_)
15silent := -s
16endif
17
14# We need this, in case the user has it in its environment 18# We need this, in case the user has it in its environment
15unexport CONFIG_ 19unexport CONFIG_
16 20
17xconfig: $(obj)/qconf 21xconfig: $(obj)/qconf
18 $< $(Kconfig) 22 $< $(silent) $(Kconfig)
19 23
20gconfig: $(obj)/gconf 24gconfig: $(obj)/gconf
21 $< $(Kconfig) 25 $< $(silent) $(Kconfig)
22 26
23menuconfig: $(obj)/mconf 27menuconfig: $(obj)/mconf
24 $< $(Kconfig) 28 $< $(silent) $(Kconfig)
25 29
26config: $(obj)/conf 30config: $(obj)/conf
27 $< --oldaskconfig $(Kconfig) 31 $< $(silent) --oldaskconfig $(Kconfig)
28 32
29nconfig: $(obj)/nconf 33nconfig: $(obj)/nconf
30 $< $(Kconfig) 34 $< $(silent) $(Kconfig)
31 35
32silentoldconfig: $(obj)/conf 36silentoldconfig: $(obj)/conf
33 $(Q)mkdir -p include/config include/generated 37 $(Q)mkdir -p include/config include/generated
34 $< --$@ $(Kconfig) 38 $< $(silent) --$@ $(Kconfig)
35 39
36localyesconfig localmodconfig: $(obj)/streamline_config.pl $(obj)/conf 40localyesconfig localmodconfig: $(obj)/streamline_config.pl $(obj)/conf
37 $(Q)mkdir -p include/config include/generated 41 $(Q)mkdir -p include/config include/generated
@@ -40,18 +44,18 @@ localyesconfig localmodconfig: $(obj)/streamline_config.pl $(obj)/conf
40 cmp -s .tmp.config .config || \ 44 cmp -s .tmp.config .config || \
41 (mv -f .config .config.old.1; \ 45 (mv -f .config .config.old.1; \
42 mv -f .tmp.config .config; \ 46 mv -f .tmp.config .config; \
43 $(obj)/conf --silentoldconfig $(Kconfig); \ 47 $(obj)/conf $(silent) --silentoldconfig $(Kconfig); \
44 mv -f .config.old.1 .config.old) \ 48 mv -f .config.old.1 .config.old) \
45 else \ 49 else \
46 mv -f .tmp.config .config; \ 50 mv -f .tmp.config .config; \
47 $(obj)/conf --silentoldconfig $(Kconfig); \ 51 $(obj)/conf $(silent) --silentoldconfig $(Kconfig); \
48 fi 52 fi
49 $(Q)rm -f .tmp.config 53 $(Q)rm -f .tmp.config
50 54
51# Create new linux.pot file 55# Create new linux.pot file
52# Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files 56# Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files
53update-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h 57update-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h
54 $(Q)echo " GEN config.pot" 58 $(Q)$(kecho) " GEN config.pot"
55 $(Q)xgettext --default-domain=linux \ 59 $(Q)xgettext --default-domain=linux \
56 --add-comments --keyword=_ --keyword=N_ \ 60 --add-comments --keyword=_ --keyword=N_ \
57 --from-code=UTF-8 \ 61 --from-code=UTF-8 \
@@ -62,11 +66,11 @@ update-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h
62 $(Q)(for i in `ls $(srctree)/arch/*/Kconfig \ 66 $(Q)(for i in `ls $(srctree)/arch/*/Kconfig \
63 $(srctree)/arch/*/um/Kconfig`; \ 67 $(srctree)/arch/*/um/Kconfig`; \
64 do \ 68 do \
65 echo " GEN $$i"; \ 69 $(kecho) " GEN $$i"; \
66 $(obj)/kxgettext $$i \ 70 $(obj)/kxgettext $$i \
67 >> $(obj)/config.pot; \ 71 >> $(obj)/config.pot; \
68 done ) 72 done )
69 $(Q)echo " GEN linux.pot" 73 $(Q)$(kecho) " GEN linux.pot"
70 $(Q)msguniq --sort-by-file --to-code=UTF-8 $(obj)/config.pot \ 74 $(Q)msguniq --sort-by-file --to-code=UTF-8 $(obj)/config.pot \
71 --output $(obj)/linux.pot 75 --output $(obj)/linux.pot
72 $(Q)rm -f $(obj)/config.pot 76 $(Q)rm -f $(obj)/config.pot
@@ -77,7 +81,7 @@ simple-targets := oldconfig allnoconfig allyesconfig allmodconfig \
77PHONY += $(simple-targets) 81PHONY += $(simple-targets)
78 82
79$(simple-targets): $(obj)/conf 83$(simple-targets): $(obj)/conf
80 $< --$@ $(Kconfig) 84 $< $(silent) --$@ $(Kconfig)
81 85
82PHONY += oldnoconfig savedefconfig defconfig 86PHONY += oldnoconfig savedefconfig defconfig
83 87
@@ -87,18 +91,18 @@ PHONY += oldnoconfig savedefconfig defconfig
87oldnoconfig: olddefconfig 91oldnoconfig: olddefconfig
88 92
89savedefconfig: $(obj)/conf 93savedefconfig: $(obj)/conf
90 $< --$@=defconfig $(Kconfig) 94 $< $(silent) --$@=defconfig $(Kconfig)
91 95
92defconfig: $(obj)/conf 96defconfig: $(obj)/conf
93ifeq ($(KBUILD_DEFCONFIG),) 97ifeq ($(KBUILD_DEFCONFIG),)
94 $< --defconfig $(Kconfig) 98 $< $(silent) --defconfig $(Kconfig)
95else 99else
96 @echo "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'" 100 @$(kecho) "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'"
97 $(Q)$< --defconfig=arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig) 101 $(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig)
98endif 102endif
99 103
100%_defconfig: $(obj)/conf 104%_defconfig: $(obj)/conf
101 $(Q)$< --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig) 105 $(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig)
102 106
103configfiles=$(wildcard $(srctree)/kernel/configs/$@ $(srctree)/arch/$(SRCARCH)/configs/$@) 107configfiles=$(wildcard $(srctree)/kernel/configs/$@ $(srctree)/arch/$(SRCARCH)/configs/$@)
104 108
@@ -215,7 +219,7 @@ $(obj)/.tmp_qtcheck: $(src)/Makefile
215 219
216# QT needs some extra effort... 220# QT needs some extra effort...
217$(obj)/.tmp_qtcheck: 221$(obj)/.tmp_qtcheck:
218 @set -e; echo " CHECK qt"; dir=""; pkg=""; \ 222 @set -e; $(kecho) " CHECK qt"; dir=""; pkg=""; \
219 if ! pkg-config --exists QtCore 2> /dev/null; then \ 223 if ! pkg-config --exists QtCore 2> /dev/null; then \
220 echo "* Unable to find the QT4 tool qmake. Trying to use QT3"; \ 224 echo "* Unable to find the QT4 tool qmake. Trying to use QT3"; \
221 pkg-config --exists qt 2> /dev/null && pkg=qt; \ 225 pkg-config --exists qt 2> /dev/null && pkg=qt; \