Why does prj.conf not take precedence over a local boards/.conf file? #86742
Unanswered
droberson-ds
asked this question in
Q&A
Replies: 2 comments 5 replies
-
I believe you're looking for: https://docs.zephyrproject.org/latest/build/kconfig/setting.html#the-initial-configuration |
Beta Was this translation helpful? Give feedback.
4 replies
-
What is
Without
west build -b nrf9151dk samples/basic/blinky: CONFIG_HEAP_MEM_POOL_SIZE=0
west build -b nrf9151dk samples/basic/blinky -- -DCONFIG_HEAP_MEM_POOL_SIZE=2048: CONFIG_HEAP_MEM_POOL_SIZE=2048
echo 'CONFIG_HEAP_MEM_POOL_SIZE=1024' >> samples/basic/blinky/prj.conf: CONFIG_HEAP_MEM_POOL_SIZE=1024
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am new to Zephyr and stumbled onto an issue I cannot wrap my brain around. To preface:
My understanding was that prj.conf takes precedence over any other configuration files. In practice, it seems that a local .conf file in my boards directory takes precedence.
I have the following project structure:
And CONFIG_HEAP_MEM_POOL_SIZE is defined in both of the following files:
The issue is that whatever I set CONFIG_HEAP_MEM_POOL_SIZE to in prj.conf, it is ignored and defaults to the value assigned in nrf9151dk_nrf9151_ns.conf.
Question: Is this expected behavior? If so, where is this detailed in the Zephyr documentation? I can't seem to find it.
Note: I already asked Nordic this question and they couldn't point me to any clear documentation that states how this is supposed to work. The only stated that the nrf9151dk_nrf9151_ns.conf file takes precedence.
For reference: https://devzone.nordicsemi.com/f/nordic-q-a/119413/unable-to-change-config_heap_mem_pool_size-in-prj-conf
Thanks for any clarification. I really want to understand why it works the way it does.
Derek
Beta Was this translation helpful? Give feedback.
All reactions