summaryrefslogtreecommitdiff
path: root/kconfig/conf.c
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-09-08 20:42:48 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-09-08 20:42:48 (GMT)
commit0233ac8534a367afba9c293f0485cb8af7d67114 (patch)
tree3a2526e8b3363403cf50f006dcab967db80b0a57 /kconfig/conf.c
parente3cc9d1b272dac8a96fd36d0581feee2ced2e82f (diff)
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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kconfig/conf.c b/kconfig/conf.c
index 5d10a8e..cded872 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");
}
}