* [QUESTION] Why tristate look like bool?
@ 2025-12-03 12:07 Les Boys
2025-12-03 17:53 ` Randy Dunlap
0 siblings, 1 reply; 2+ messages in thread
From: Les Boys @ 2025-12-03 12:07 UTC (permalink / raw)
To: yann.morin.1998@free.fr
Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org
First, I wrote a minimal Kconfig:
```
config TRISTATE_TEST
tristate "Test"
```
Then, I ran:
```
./conf --oldaskconfig test.lbConfig
```
Finally, it showed:
```
Test (TRISTATE_TEST) [N/y] (NEW):
```
This is not excepted, it should shows:
```
Test (TRISTATE_TEST) [N/y/m] (NEW):
```
I am confused about this problem, no document talks about it, please explain to me, thanks.
-- Les Boys
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [QUESTION] Why tristate look like bool?
2025-12-03 12:07 [QUESTION] Why tristate look like bool? Les Boys
@ 2025-12-03 17:53 ` Randy Dunlap
0 siblings, 0 replies; 2+ messages in thread
From: Randy Dunlap @ 2025-12-03 17:53 UTC (permalink / raw)
To: Les Boys, yann.morin.1998@free.fr
Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org
Hi,
On 12/3/25 4:07 AM, Les Boys wrote:
> First, I wrote a minimal Kconfig:
> ```
> config TRISTATE_TEST
> tristate "Test"
> ```
> Then, I ran:
> ```
> ./conf --oldaskconfig test.lbConfig
> ```
> Finally, it showed:
> ```
> Test (TRISTATE_TEST) [N/y] (NEW):
> ```
> This is not excepted, it should shows:
> ```
> Test (TRISTATE_TEST) [N/y/m] (NEW):
> ```
> I am confused about this problem, no document talks about it, please explain to me, thanks.
I was fairly sure that it has something to do with MODULES.
To your test config file, I added:
config MODULES
def_bool y
but the test results were still the same. Then I recalled that there is
a special keyword for "modules", described (or mentioned) in
Documentation/kbuild/kconfig-language.rst. When I add "modules" to
CONFIG_MODULES, it works as expected.
config MODULES
modules
def_bool y
The kconfig subsystem knows about modular builds but they must be
enabled for them to be allowed on other kconfig symbols.
HTH.
--
~Randy
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-12-03 17:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-03 12:07 [QUESTION] Why tristate look like bool? Les Boys
2025-12-03 17:53 ` Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).