From 0233ac8534a367afba9c293f0485cb8af7d67114 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Tue, 8 Sep 2009 22:42:48 +0200 Subject: 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" 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"); } } -- cgit v0.10.2-6-g49f6