205-kconfig-exit.patch 574 B

1234567891011121314151617181920
  1. From 300d26562ce4dc427154cb247beb75db4b1f0774 Mon Sep 17 00:00:00 2001
  2. From: OpenWrt community <[email protected]>
  3. Date: Wed, 13 Jul 2022 13:29:57 +0200
  4. Subject: [PATCH] scripts/Kconfig: Kconfig exit
  5. ---
  6. scripts/kconfig/conf.c | 2 ++
  7. 1 file changed, 2 insertions(+)
  8. --- a/scripts/kconfig/conf.c
  9. +++ b/scripts/kconfig/conf.c
  10. @@ -435,6 +435,8 @@ static int conf_sym(struct menu *menu)
  11. break;
  12. continue;
  13. case 0:
  14. + if (!sym_has_value(sym) && !tty_stdio && getenv("FAIL_ON_UNCONFIGURED"))
  15. + exit(1);
  16. newval = oldval;
  17. break;
  18. case '?':