Re: [PATCH] kconfig: change .config format to use =n instead of "is not set"

From: Boris Kolpackov
Date: Wed Mar 02 2022 - 08:24:36 EST


Masahiro Yamada <masahiroy@xxxxxxxxxx> writes:

> With this commit, Kconfig will output disable options in a more natural
> form, "CONFIG_FOO=n".

While I agree with the overall direction, I was wondering how this
relates to string and int/hex options. It appears that they either
have a value or are not written to the .config at all, for example,
if the option is disabled via the `depends on` attribute. At first
I thought this would be inconsistent (i.e., =n for bool and omitted
for string), but it appears a disabled bool option is also omitted.
Hopefully the fact that sometimes a false bool option is =n and
sometimes it's omitted won't surprise anyone.

Reviewed-by: Boris Kolpackov <boris@xxxxxxxxxxxxxxxxx>