From: Masahiro Yamada Date: Thu, 16 Aug 2018 07:48:26 +0000 (+0900) Subject: kconfig: suppress "configuration written to .config" for syncconfig X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=a9ddd9e866faef305376bf826b868b36bebf59ed;p=carl9170fw.git kconfig: suppress "configuration written to .config" for syncconfig The top-level Makefile invokes "make syncconfig" when necessary. Then, Kconfig displays the following message when .config is updated. # # configuration written to .config # It is distracting because "make syncconfig" happens during the build stage, and does nothing important in most cases. Suggested-by: Linus Torvalds Signed-off-by: Masahiro Yamada Signed-off-by: Christian Lamparter --- diff --git a/config/conf.c b/config/conf.c index 2f968e2..c19af7d 100644 --- a/config/conf.c +++ b/config/conf.c @@ -494,6 +494,14 @@ int main(int ac, char **av) } input_mode = (enum input_mode)opt; switch (opt) { + case syncconfig: + /* + * syncconfig is invoked during the build stage. + * Suppress distracting "configuration written to ..." + */ + conf_set_message_callback(NULL); + sync_kconfig = 1; + break case defconfig: case savedefconfig: defconfig_file = optarg;