Re: [PATCH v2 02/12] kconfig: refactor choice value calculation

From: Masahiro Yamada
Date: Sun Sep 01 2024 - 05:11:41 EST


On Sun, Sep 1, 2024 at 2:31 AM Niklas Söderlund
<niklas.soderlund@xxxxxxxxxxxx> wrote:
>
> Hello Yamada-san,
>
> Thanks for your work.
>
> I bisected a kconfig issue to this change, but I'm not sure how to
> resolve it and would appreciate your help.
>
> Before this changes if I run menuconfig,
>
> $ ARCH=arm64 make menuconfig
>
> The menu option for by SOC_RENESAS is visible at
>
> Device Drivers ->
> SOC (System On Chip) specific Drivers ->
> Renesas SoC driver support
>
> However after this patch it is not.
>
> Furthermore searching (/) for any config option protected by SOC_RENESAS
> in drivers/soc/renesas/Kconfig (e.g. ARCH_R8A77965) results in a search
> hit, but if I try to jump to it by pressing 1 all I get is a blank
> screen.
>
> I'm not sure if a fix to the for mention Kconfig file is needed or if
> something else is wrong. This is still true for today's linux-next [1].
>
> 1. 985bf40edf43 ("Add linux-next specific files for 20240830")






The prompt of SOC_RENESAS depends on
COMPILE_TEST && !ARCH_RENESAS.
Hence, it is hidden by default.

Pressing (1) navigated to the nearest parent menu.

Setting COMPILE_TEST=y and ARCH_RENESAS=n made it visible.

All look quite normal to me.



Symbol: SOC_RENESAS [=y]
Type : bool
Defined at drivers/soc/renesas/Kconfig:2
Prompt: Renesas SoC driver support
Visible if: COMPILE_TEST [=n] && !ARCH_RENESAS [=y]
Location:
-> Device Drivers
(1) -> SOC (System On Chip) specific Drivers
-> Renesas SoC driver support (SOC_RENESAS [=y])
Selects: GPIOLIB [=y] && PINCTRL [=y] && SOC_BUS [=y]






--
Best Regards
Masahiro Yamada