Skip to content

Why dependency of LINKER_GENERIC_SECTIONS_PRESENT_AT_BOOT config is set in incorrect place? #56802

Closed Answered by yashi
xakep-amatop asked this question in Q&A
Discussion options

You must be logged in to vote

Ah, that's different.

The if on the bool 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 the default line. Just like the quote I placed on the other answer.

bool "foo" if BAR
default y if BAR

Thus, you need the following patch if that's what it intends to do.

diff --git a/Kconfig.zephyr b/Kconfig.zephyr
index 8fa4faec87c..47a5450c458 100644
--- a/Kconfig.zephyr
+++ b/Kconfig.zephyr
@@ -248,7 +248,7 @@ config LINKER_USE_PINNED_SECTION
 
 config LINKER_GENERIC_SECTIONS_PRESENT_AT_BOOT
 	bool "Generic sections are present at boot" if DEMAND_PAGING && LINKER_…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

xakep-amatop
Apr 14, 2023
Collaborator Author

You must be logged in to vote
3 replies
@yashi
Comment options

yashi Apr 14, 2023
Collaborator

Answer selected by xakep-amatop
@yashi
Comment options

yashi Apr 14, 2023
Collaborator

@xakep-amatop
Comment options

xakep-amatop Apr 14, 2023
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants