diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-09-08 22:42:48 +0200 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-09-08 22:42:48 +0200 |
commit | 0233ac8534a367afba9c293f0485cb8af7d67114 (patch) | |
tree | 3a2526e8b3363403cf50f006dcab967db80b0a57 /kconfig/conf.c | |
parent | e3cc9d1b272dac8a96fd36d0581feee2ced2e82f (diff) | |
download | crosstool-ng-0233ac8534a367afba9c293f0485cb8af7d67114.tar.gz crosstool-ng-0233ac8534a367afba9c293f0485cb8af7d67114.tar.bz2 crosstool-ng-0233ac8534a367afba9c293f0485cb8af7d67114.zip |
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"
Diffstat (limited to 'kconfig/conf.c')
-rw-r--r-- | kconfig/conf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kconfig/conf.c b/kconfig/conf.c index 5d10a8e7..cded872d 100644 --- a/kconfig/conf.c +++ b/kconfig/conf.c @@ -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"); } } |