Re: [PATCH 5/7] linux-kbuild: fix: implement choice for kconfigs
From: David Hunter
Date: Thu Oct 10 2024 - 16:30:07 EST
Apologies, I was a little too quick with the send button on my previous
email. I forgot that I also wanted to respond to this part as well.
On 9/23/24 23:46, Masahiro Yamada wrote:
I believe the only benefit to parse 'choice' block
is to propagate its 'depends on' down to member configs.
I am not quite sure this statement is correct. I definitely agree that
the main reason to parse the "choice" block is to propagate the
"depends"; however, I believe that there is also information for
defaults as well as for prompts inside the "choice" blocks.
I made a shell script that reads all of the choice blocks in the various
Kconfig files. I wanted to know how many of each type of information is
in there. Here are the results:
- select: 0
- prompts: 152
- defaults: 156
- depends: 72
Also, I should note that while there are no selects inside of a choice,
I am unaware if this will always be the case in the future.
Here is a link to the shell script that I made:
https://github.com/dshunter107/linux-tools/blob/main/check_propagation.sh
Thanks,
David Hunter