Why dependency of LINKER_GENERIC_SECTIONS_PRESENT_AT_BOOT config is set in incorrect place? #56802
-
As far as I know, it is not possible to use a condition in the same line where the boolean option is, so have we a mistake inside
Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Kconfig allows you to place a condition on a menu entry. And there are many usage in Linux kernel.
Do you have any reference for it? The doc doesn't explicitly state that you can do
But, because
is equivalent to
and it explicity allows to do
you can do
which, you can reduced to
The syntax might not allow this reduction. But, the a few lines down in the doc, you can find an example using a condition on
Please refert to the doc for more info. |
Beta Was this translation helpful? Give feedback.
-
Hi, @yashi it is quite interesting why I have different results with and without the next patch:
I built
Did I miss something ? |
Beta Was this translation helpful? Give feedback.
Ah, that's different.
The
if
on thebool
line is to show or hide the prompt. It doesn't have anything to do with the default value.If you want to control the default value depending on the dependencies, you must have
if
on thedefault
line. Just like the quote I placed on the other answer.Thus, you need the following patch if that's what it intends to do.