1 From 6b49c1dbe0ac43e39eec97a7e79cf5fb995747dc Mon Sep 17 00:00:00 2001
2 From: Eric Le Bihan <eric.le.bihan.dev@free.fr>
3 Date: Mon, 12 Sep 2016 21:49:55 +0530
4 Subject: [PATCH] openconf: do not check stdin
6 Do not check if stdin is redirected when ask_silent is true, so the
7 `yes` program can be used to answer the questions about new values.
11 yes "" | make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- oldconfig
13 Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
14 Signed-off-by: Anup Patel <anup@brainfault.org>
16 tools/openconf/conf.c | 12 ------------
17 1 file changed, 12 deletions(-)
19 diff --git a/tools/openconf/conf.c b/tools/openconf/conf.c
20 index a428058..711cf0b 100644
21 --- a/tools/openconf/conf.c
22 +++ b/tools/openconf/conf.c
23 @@ -65,16 +65,6 @@ static void strip(char *str)
27 -static void check_stdin(void)
30 - printf("aborted!\n\n");
31 - printf("Console input/output is redirected. ");
32 - printf("Run 'make oldconfig' to update configuration.\n\n");
37 static int conf_askvalue(struct symbol *sym, const char *def)
40 @@ -100,7 +90,6 @@ static int conf_askvalue(struct symbol *sym, const char *def)
47 ret = fgets(line, 128, stdin);
48 @@ -306,7 +295,6 @@ static int conf_choice(struct menu *menu)
55 ret = fgets(line, 128, stdin);