diff options
author | Michal Marek <mmarek@suse.cz> | 2015-04-08 07:30:42 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2015-04-09 11:44:34 -0400 |
commit | 0a1f00a1c86421cc07cec87011c7cf4df68ee54b (patch) | |
tree | 06a6169a2c87dea29e62d44abfc493337c4854d5 /scripts/kconfig/Makefile | |
parent | 1cba0c305758c3c1786ecaceb03e142c95a4edc9 (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/Makefile | 40 |
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 | |||
11 | Kconfig := Kconfig | 11 | Kconfig := Kconfig |
12 | endif | 12 | endif |
13 | 13 | ||
14 | ifeq ($(quiet),silent_) | ||
15 | silent := -s | ||
16 | endif | ||
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 |
15 | unexport CONFIG_ | 19 | unexport CONFIG_ |
16 | 20 | ||
17 | xconfig: $(obj)/qconf | 21 | xconfig: $(obj)/qconf |
18 | $< $(Kconfig) | 22 | $< $(silent) $(Kconfig) |
19 | 23 | ||
20 | gconfig: $(obj)/gconf | 24 | gconfig: $(obj)/gconf |
21 | $< $(Kconfig) | 25 | $< $(silent) $(Kconfig) |
22 | 26 | ||
23 | menuconfig: $(obj)/mconf | 27 | menuconfig: $(obj)/mconf |
24 | $< $(Kconfig) | 28 | $< $(silent) $(Kconfig) |
25 | 29 | ||
26 | config: $(obj)/conf | 30 | config: $(obj)/conf |
27 | $< --oldaskconfig $(Kconfig) | 31 | $< $(silent) --oldaskconfig $(Kconfig) |
28 | 32 | ||
29 | nconfig: $(obj)/nconf | 33 | nconfig: $(obj)/nconf |
30 | $< $(Kconfig) | 34 | $< $(silent) $(Kconfig) |
31 | 35 | ||
32 | silentoldconfig: $(obj)/conf | 36 | silentoldconfig: $(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 | ||
36 | localyesconfig localmodconfig: $(obj)/streamline_config.pl $(obj)/conf | 40 | localyesconfig 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 |
53 | update-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h | 57 | update-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 \ | |||
77 | PHONY += $(simple-targets) | 81 | PHONY += $(simple-targets) |
78 | 82 | ||
79 | $(simple-targets): $(obj)/conf | 83 | $(simple-targets): $(obj)/conf |
80 | $< --$@ $(Kconfig) | 84 | $< $(silent) --$@ $(Kconfig) |
81 | 85 | ||
82 | PHONY += oldnoconfig savedefconfig defconfig | 86 | PHONY += oldnoconfig savedefconfig defconfig |
83 | 87 | ||
@@ -87,18 +91,18 @@ PHONY += oldnoconfig savedefconfig defconfig | |||
87 | oldnoconfig: olddefconfig | 91 | oldnoconfig: olddefconfig |
88 | 92 | ||
89 | savedefconfig: $(obj)/conf | 93 | savedefconfig: $(obj)/conf |
90 | $< --$@=defconfig $(Kconfig) | 94 | $< $(silent) --$@=defconfig $(Kconfig) |
91 | 95 | ||
92 | defconfig: $(obj)/conf | 96 | defconfig: $(obj)/conf |
93 | ifeq ($(KBUILD_DEFCONFIG),) | 97 | ifeq ($(KBUILD_DEFCONFIG),) |
94 | $< --defconfig $(Kconfig) | 98 | $< $(silent) --defconfig $(Kconfig) |
95 | else | 99 | else |
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) |
98 | endif | 102 | endif |
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 | ||
103 | configfiles=$(wildcard $(srctree)/kernel/configs/$@ $(srctree)/arch/$(SRCARCH)/configs/$@) | 107 | configfiles=$(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; \ |