mbed-tools
mbed-tools copied to clipboard
Adding option to explicitly specify build directory
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> ...
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 We aren't working on this currently, but would appreciate a PR for it. Thanks!
Any updates on this?