Browse Source

Fix allnoconfig to write out values changed by KCONFIG_ALLCONFIG.

Rob Landley 3 months ago
parent
commit
5806d2cfdb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/kconfig.c

+ 1 - 1
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;