-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
west: fix for context with sysbuild #87537
base: main
Are you sure you want to change the base?
west: fix for context with sysbuild #87537
Conversation
Hello @vignesh-aerlync, and thank you very much for your first pull request to the Zephyr project! |
Thanks @vignesh-aerlync for the patch to my issue! I think it makes sense to use the |
@vignesh-aerlync please check the contribution guidelines, you need to add a sign-off to your commits. |
sure @pdgendt I will check. |
show `west flash --context` with sysbuild Signed-off-by: Vignesh Pandian <vignesh@aerlync.com>
1a0043c
to
75d91a6
Compare
Can you please check now. |
Welcome! :) |
Some things that have been noticed:
I've not used this feature before, don't know what it's meant to do but doesn't really seem to be working here? |
@nordicjm thank you for your review. I will check. |
Hi @nordicjm https://docs.zephyrproject.org/latest/develop/west/build-flash-debug.html#runner-specific-overrides From this document the --context flag in west flash displays runner-specific details, such as available flash runners, their configurations, and supported options. Since sysbuild is not a flash runner, it won’t appear in this output. If you're looking for sysbuild-related information, that is typically managed during the build stage, not flashing. To get domain-specific details, you can use either of these commands (both will produce the same output):
Let me know if you were expecting different information or if I missed something |
So I've tried that in a build without mcuboot but pretended there is mcuboot with
If I then enable MCUboot from sysbuild Kconfig using menuconfig, and run menuconfig again so it reconfigures (because otherwise this is not being detected) then I run the same command again
it is again giving me the default image context, which it should not |
The |
I expect it to to dump the information for that image. Whilst having 2 images might have the same flash runners available, that is not something that is true - a board might contain 2 SoCs, one image per SoC, and the flash runners for each might be completely different. Plus all the context information is wrong, when I do
nrf9160dk comes to mind which has an nrf52840 and nrf9160 on it, if there's one image for each, can see how the context needing to be aware of the domain is important |
Thank you its clear I will look into it. |
show
west flash --context
with sysbuild