diff options
author | Michal Marek <mmarek@suse.cz> | 2015-04-08 13:30:42 +0200 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2015-04-09 17:44:34 +0200 |
commit | 0a1f00a1c86421cc07cec87011c7cf4df68ee54b (patch) | |
tree | 06a6169a2c87dea29e62d44abfc493337c4854d5 /scripts/kconfig/nconf.c | |
parent | kconfig: Simplify Makefile (diff) | |
download | linux-0a1f00a1c86421cc07cec87011c7cf4df68ee54b.tar.xz linux-0a1f00a1c86421cc07cec87011c7cf4df68ee54b.zip |
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/nconf.c')
-rw-r--r-- | scripts/kconfig/nconf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/kconfig/nconf.c b/scripts/kconfig/nconf.c index 984489ef2b46..d42d534a66cd 100644 --- a/scripts/kconfig/nconf.c +++ b/scripts/kconfig/nconf.c @@ -1482,6 +1482,11 @@ int main(int ac, char **av) bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); + if (ac > 1 && strcmp(av[1], "-s") == 0) { + /* Silence conf_read() until the real callback is set up */ + conf_set_message_callback(NULL); + av++; + } conf_parse(av[1]); conf_read(NULL); |