From a9ddd9e866faef305376bf826b868b36bebf59ed Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Thu, 16 Aug 2018 16:48:26 +0900 Subject: [PATCH] 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 --- config/conf.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- 2.31.1