mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-20 05:17:54 +00:00
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:
parent
e3cc9d1b27
commit
0233ac8534
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user