-
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
west: Question on west flash --hex-file
behavior with build.dir-fmt
#33498
Comments
west flash --hex-file
behavior with dir-fmtwest flash --hex-file
behavior with build.dir-fmt
I don't think this is a bug. West should not guess which build directory you are using IMO. You can try using build.guess-dir which will work in some situations if the build directory can be guessed unambiguously. But it's not clear that we can just start at the hex file location and assume it's in a build directory, I think. |
@mbolivar-nordic My request is not to ask west to guess the location in current case (at least this is not my understanding):
But the following reports an error, while the file location is given in the same way
|
The first example looks like The second example seems to be using |
Ok, I had a try using |
I know that's kind of pain to specify twice but I don't see a good way to avoid it. |
Describe the bug
Cf related dicussion here
To Reproduce
Steps to reproduce the behavior:
0. Configure dir-fmt as follows
[build]
dir-fmt = build/{board}/
Reported error:
The equivalent procedure works well w/o dir-fmt configuration
Expected behavior
west flash --hex-file
has same behavior whatever dir-fmt configuration.Impact
Annoying
The text was updated successfully, but these errors were encountered: