kconfig: allow stdin/stdout redirection

Allow stdin/stdout redirection for the CLI conf (not mconf).
This allows to recall a sample and automatically apply the defaults
to new configuration option, with something like the following:
 yes "" |ct-ng "sample_name"
This commit is contained in:
Yann E. MORIN" 2009-09-08 22:42:48 +02:00
parent e3cc9d1b27
commit 0233ac8534

View File

@ -67,10 +67,10 @@ static void strip(char *str)
static void check_stdin(void)
{
if (!valid_stdin) {
printf(_("aborted!\n\n"));
printf(_("Console input/output is redirected. "));
printf(_("Run 'make oldconfig' to update configuration.\n\n"));
exit(1);
/* For crosstool-NG, we don't care if stdin/stdout got redirected.
* In this case, just printf a cariage return, for pretty output.
*/
printf("\n");
}
}