-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
APPLICATION_CONFIG_DIR, CONF_FILE do not always pick up local boards/*.conf #51621
Comments
|
And from what I can see this is not a bug, this is intended design.
And this is confirmed by the cmake files:
And also described as working like this on the sysbuild pages:
|
@nordicjm Thank you for the comments. I should not have referenced an open PR. The files moved and may move again. Fortunately, this module currently has only one sample beneath Perhaps I should try to reproduce it from the test suite that verifies this build functionality. Where is that suite? |
Which is a fundamental misunderstanding of how Read the docs: https://docs.zephyrproject.org/latest/develop/application/index.html#application-configuration
This means that all additional files, such as board specific files under as also commented here: mcu-tools/mcuboot#1524 (review) |
Closed as this request is a misunderstanding of how the feature works and how it is intended to work. |
Describe the bug
While creating a new sample in the MCUBoot module, in the local, top-level CMakeLists.txt I set APPLICATION_CONFIG_DIR to point to the existing sample, and set CONF_DIR to be a list of ${APPLICATION_CONF_DIR}/prj.conf and the local prj.conf. The expectation was that the build system would find and apply ${APPLICATION_CONF_DIR}/boards/${target}.conf. It did not, resulting in the new image being a different size than the original. I ended up copying over all boards/ and overlay files to the local sample to get the built image to match expectations.
See MCUBoot PR #1489 for the original situation.
Please also mention any information which could help others to understand
the problem you're facing:
specific commit? Unknown.
To Reproduce
Once mcuboot in zephyrproject-rtos has been updated with MCUBoot PR #1489:
Steps to reproduce the behavior:
find_package()
:bootloader/mcuboot/zephyr/samples/boards/
Expected behavior
I expect the build system to pick up the boards directories from both APPLICATION_CONFIG_DIR and then my local boards/ directory so that I can cascade content together under the control of my local CMakeLists.txt.
Impact
What impact does this issue have on your progress (e.g., annoyance, showstopper)? This is a maintenance burden.
Logs and console output
If applicable, add console logs or other types of debug information
e.g Wireshark capture or Logic analyzer capture (upload in zip archive).
copy-and-paste text and put a code fence (```) before and after, to help
explain the issue. (if unable to obtain text log, add a screenshot)
Environment (please complete the following information):
Additional context
Add any other context that could be relevant to your issue, such as pin setting,
target configuration, ...
The text was updated successfully, but these errors were encountered: