-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Add default runners to west config #77849
Comments
Do you know you can set |
The proposed west config alias.flash "flash --runner=openocd"
west config alias.debug "debug --runner=openocd" |
That would do nicely. Can you override the alias? |
That seems to just move the problem from having to remember to set it during debug to having to remember to set it during build. I'm thinking of a situation where I'm working in an STM32 shop and in my daily life I'll always be using a specific tool, or I'm a student with an STM32 development board and don't want to remember specify the assignment-recommended runner for every exercise. In these situations you want a set-it-and-forget it option for 99% of your work, with an easy override for when you need something different. |
What do you mean? You can override a command with an alias, if that is what you mean. |
To try it out: $ pip uninstall west
$ pip install https://github.com/zephyrproject-rtos/west/archive/pull/716/head.zip |
I mean if I did |
It will expand to |
Is your enhancement proposal related to a problem? Please describe.
If you do not have the same runner on your board as the default in
board.cmake
you need to supply the alternative each time.Describe the solution you'd like
west config
options to set the defaultwest flash
andwest debug
runners that override those inboard.cmake
.--runner
option to thewest
command would override the default, as it does for the default inboard.cmake
.default
(or the option being missing) would revert to the default inboard.cmake
.Describe alternatives you've considered
Different defaults per board would be nice, but hugely complicated to maintain and administer.
Additional context
Prompted by #75284 as it changes the runner, and anyone who does not download the ST software will have to add
--runner openocd
to their commands.The text was updated successfully, but these errors were encountered: