defconfig,
savedefconfig,
listnewconfig,
- oldnoconfig,
};
static enum input_mode input_mode = oldaskconfig;
{"alldefconfig", no_argument, NULL, alldefconfig},
{"randconfig", no_argument, NULL, randconfig},
{"listnewconfig", no_argument, NULL, listnewconfig},
- {"noconfig", no_argument, NULL, oldnoconfig},
{NULL, 0, NULL, 0}
};
int opt;
const char *name, *defconfig_file = NULL /* gcc uninit */;
struct stat tmpstat;
+ int no_conf_write = 0;
tty_stdio = isatty(0) && isatty(1);
}
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;
case allmodconfig:
case alldefconfig:
case listnewconfig:
- case oldnoconfig:
break;
case '?':
conf_usage(progname);
case oldaskconfig:
case oldconfig:
case listnewconfig:
- case oldnoconfig:
conf_read(NULL);
break;
case allnoconfig:
/* fall through */
case oldconfig:
case listnewconfig:
- case oldnoconfig:
/* Update until a loop caused no more changes */
do {
conf_cnt = 0;
/*
* build so we shall update autoconf.
*/
- if (conf_write(NULL)) {
+ if (!no_conf_write && conf_write(NULL)) {
fprintf(stderr, "\n*** Error during writing of the configuration.\n\n");
exit(1);
}