forked from openwrt/openwrt
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
generic: Kconfig: exit on unset symbol
When a target configuration has unser Kconfig symbols, the build will fail when OpenWrt is compiled with V=s and stdin is connected to a tty. In case OpenWrt is compiled without either of these preconditions, the build will uscceed with the symbols in question being unset. Modify the kernel configuration in a way it fails on unset symbols regardless of the aformentioned preconditions. Signed-off-by: David Bauer <mail@david-bauer.net>
- Loading branch information
1 parent
29a3967
commit eaa9c94
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 && getenv("FAIL_ON_UNCONFIGURED")) | ||
+ exit(1); | ||
newval = oldval; | ||
break; | ||
case '?': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 && getenv("FAIL_ON_UNCONFIGURED")) | ||
+ exit(1); | ||
newval = oldval; | ||
break; | ||
case '?': |