mbed-tools icon indicating copy to clipboard operation
mbed-tools copied to clipboard

Adding option to explicitly specify build directory

Open lukgni opened this issue 4 years ago • 3 comments

Description

mbed-tools configure stores target specifc configuration (.mbedbuild/) in a project dir - this can't be overridden with different path. It is a little bit inconvenient, especially in situation when we want to use single project directory to work with multiple HW targets (or with tests on multiple HW in CI/CD).

Maybe we could add a new option to mbed-tool configure | mbed-tool compile commands, which would explicitly specify build directory where .mbedbuild will be created (something similar to -B flag from cmake >3.19)

For example:

mbed-tools configure -B <build_directory> ...
cmake  -B <build_directory> ...
cmake --build <build_directory>

or

mbed-tools compile -B <build_directory> ...

lukgni avatar Feb 10 '21 23:02 lukgni

It's something I need as well.

@Patater @rwalton-arm unless you guys are already working on that, I'm willing to make a PR.

let me know. :)

ladislas avatar Feb 11 '21 06:02 ladislas

@ladislas We aren't working on this currently, but would appreciate a PR for it. Thanks!

Patater avatar Feb 11 '21 11:02 Patater

Any updates on this?

boraozgen avatar Mar 22 '21 13:03 boraozgen