[lkml]   [2012]   [Feb]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: kconfig: tristate choice with depender choice
    On Thu, 9 Feb 2012 00:26:25 -0500, Arnaud Lacombe <> wrote:
    >> confirmed.
    > actually, not that much. Your reduced testcase is missing a MODULES
    > symbol to have modules enabled and have them show up in the final
    > `.config'. If you add:
    > config MODULES
    > boolean
    > default y
    > then you end up with CONFIG_A=m in the `.config'.

    Yes, so it is the problem. I got CONFIG_A=m in .config from
    CONFIG_A=y in defconfig.

    > Now, I may have missed something.
    > Do you have a situation where a MODULES symbol is present, enabled,
    > but CONFIG_A=y still appear from CONFIG_A=m in the defconfig ?

    I tested in this way:

    1. Add this example to the end of drivers/char/Kconfig file.
    prompt "choice list AB"
    config A
    tristate "a"
    config B
    tristate "b"
    prompt "choice list CD"
    depends on A
    config C
    bool "c"
    config D
    bool "d"

    2. Then run commands:

    $ cp arch/x86/configs/i386_defconfig arch/x86/configs/test_defconfig
    $ echo 'CONFIG_A=y' >> arch/x86/configs/test_defconfig
    $ make O=../build test_defconfig
    $ grep CONFIG_A= ../build/.config

    Atsushi Nemoto

     \ /
      Last update: 2012-02-09 15:35    [W:0.021 / U:16.712 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site