From 5806d2cfdb67b6284657ab124016b99df9146681 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 22 Aug 2025 12:39:21 -0500 Subject: [PATCH] Fix allnoconfig to write out values changed by KCONFIG_ALLCONFIG. --- scripts/kconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/kconfig.c b/scripts/kconfig.c index de8eae1d..9581f51d 100644 --- a/scripts/kconfig.c +++ b/scripts/kconfig.c @@ -189,8 +189,8 @@ int value(struct kconfig *kc) return !strcmp(kc->contain->def, kc->symbol); s = ""; } - if (*kc->type!='b') return atoi(s); + if (kc->value) return *kc->value=='y'; if (cfgtype==1 || !*kc->prompt) return *s=='y'; if (cfgtype==4) return random()&1; return !!cfgtype; -- 2.39.5