From 2186121ab31dd66443e700635e976683c5be533a Mon Sep 17 00:00:00 2001 From: David Bauer Date: Fri, 23 Jul 2021 01:33:56 +0200 Subject: [PATCH] generic: Kconfig: exit onunset symbol --- ...generic-Kconfig-exit-on-unset-symbol.patch | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 patches/openwrt/0005-generic-Kconfig-exit-on-unset-symbol.patch diff --git a/patches/openwrt/0005-generic-Kconfig-exit-on-unset-symbol.patch b/patches/openwrt/0005-generic-Kconfig-exit-on-unset-symbol.patch new file mode 100644 index 00000000..6bc66641 --- /dev/null +++ b/patches/openwrt/0005-generic-Kconfig-exit-on-unset-symbol.patch @@ -0,0 +1,23 @@ +From: David Bauer +Date: Fri, 23 Jul 2021 01:32:38 +0200 +Subject: generic: Kconfig: exit on unset symbol + +Signed-off-by: David Bauer + +diff --git a/target/linux/generic/hack-5.4/205-kconfig-exit.patch b/target/linux/generic/hack-5.4/205-kconfig-exit.patch +new file mode 100644 +index 0000000000000000000000000000000000000000..ddffd0816c9d76f0da03d0cbb30ae734fe43c182 +--- /dev/null ++++ b/target/linux/generic/hack-5.4/205-kconfig-exit.patch +@@ -0,0 +1,11 @@ ++--- a/scripts/kconfig/conf.c +++++ b/scripts/kconfig/conf.c ++@@ -212,6 +212,8 @@ static int conf_sym(struct menu *menu) ++ break; ++ continue; ++ case 0: +++ if (!sym_has_value(sym) && !tty_stdio) +++ exit(1); ++ newval = oldval; ++ break; ++ case '?':