-
Notifications
You must be signed in to change notification settings - Fork 7.3k
west flash --context
fails for Sysbuild projects
#87497
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
Comments
Thank you for reporting this. However - unless you are able to reproduce this issue with upstream Zephyr |
@henrikbrixandersen Thanks for the note! I will check this on Zephyr |
@henrikbrixandersen This is reproducible on Zephyr Below I use an NXP board and
If I provide the
If the build is done using Zephyr's build system there is no problem:
This issue is not related to nRF Connect SDK (NCS) and I have updated my original post to link to this example. |
I have a fix for this. I will raise pull request soon. |
Describe the bug
Note: The bug described below is present when a project is built using Sysbuild (
west build --sysbuild
). The bug does not occur if the project is built using Zephyr's build system (west build --no-sysbuild
).west flash --context
should list the available runners for a specific board, along with various common and runner-specific options. However, if the project is built with Sysbuild there is a fatal error:To reproduce
Expected behavior
Build and runner information is output similar to the following:
Additional information/Troubleshooting
My project has a single domain (
abc
); no bootloader or other application is built. Thebuild/domains.yaml
file looks like:When I run
west flash --context
:zephyr/scripts/west_commands/run_common.py
dump_context()
looks atbuild/zephyr/.config
(the Sysbuild Kconfig) to load the build configuration and determine the board (CONFIG_BOARD_TARGET
), but that returns{}
(None
) because it is looking (incorrectly) at the Sysbuild Kconfig file instead of theabc
domains Kconfig file.runners.yaml
file is not inbuild/zephyr
; it is actually inbuild/abc/zephyr
.Work around
If I include the domain
abc
as part of the build path:results in expected output.
Furthermore, if the code has been built with
west build ..... --no-sysbuild
, this problem does not occur.Impact
This is a minor annoyance. I'm not sure how
--context
would apply for Sysbuild projects if there are multiple domains. Would the--context
information have to be output for all domains or just the default one?While I could find a work around it may be unexpected and troublesome. Also, I'm not sure if my work around is the appropriate thing to do.
Environment:
The issue also reproduces on Zephyr
main
(without nRF Connect SDK):The text was updated successfully, but these errors were encountered: