X-Git-Url: https://jxself.org/git/?p=carl9170fw.git;a=blobdiff_plain;f=config%2Fconf.c;h=89d87de2c93b8acb2d1c976d7f1c2edaa6ab77d5;hp=2f968e25b3c0c8bf40972ccd324815c6cc5d4391;hb=18b696a20bbca64a93dfecae0fdff3fb0dc85166;hpb=31deb4896c4f5f2cbf3cef0eac9f547e8440c460 diff --git a/config/conf.c b/config/conf.c index 2f968e2..89d87de 100644 --- a/config/conf.c +++ b/config/conf.c @@ -1,6 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2002 Roman Zippel - * Released under the terms of the GNU GPL v2.0. */ #include @@ -31,7 +31,6 @@ enum input_mode { defconfig, savedefconfig, listnewconfig, - oldnoconfig, }; static enum input_mode input_mode = oldaskconfig; @@ -454,7 +453,6 @@ static struct option long_opts[] = { {"alldefconfig", no_argument, NULL, alldefconfig}, {"randconfig", no_argument, NULL, randconfig}, {"listnewconfig", no_argument, NULL, listnewconfig}, - {"noconfig", no_argument, NULL, oldnoconfig}, {NULL, 0, NULL, 0} }; @@ -494,6 +492,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; @@ -530,7 +536,6 @@ int main(int ac, char **av) case allmodconfig: case alldefconfig: case listnewconfig: - case oldnoconfig: break; case '?': conf_usage(progname); @@ -564,7 +569,6 @@ int main(int ac, char **av) case oldaskconfig: case oldconfig: case listnewconfig: - case oldnoconfig: conf_read(NULL); break; case allnoconfig: @@ -633,7 +637,6 @@ int main(int ac, char **av) /* fall through */ case oldconfig: case listnewconfig: - case oldnoconfig: /* Update until a loop caused no more changes */ do { conf_cnt = 0;