aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/hack-5.15/205-kconfig-exit.patch
blob: e61c3ffdd9790f1f80becc3875b9f5e5d27e2ae6 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/scripts/kconfig/conf.c
+++ b/scripts/kconfig/conf.c
@@ -435,6 +435,8 @@ static int conf_sym(struct menu *menu)
 				break;
 			continue;
 		case 0:
+			if (!sym_has_value(sym) && !tty_stdio && getenv("FAIL_ON_UNCONFIGURED"))
+				exit(1);
 			newval = oldval;
 			break;
 		case '?':