6 years, 4 months ago.

Why does mbed-cli (mbed new) always clone mbed-sdk-tools into every project directory it creates?

Why isn't mbed-sdk-tools just part of mbed-cli, which lives in one place on the user's system? It seems like most of it is scripts that do stuff, not configuration/customization.

1 Answer

6 years, 4 months ago.

Because this way we can keep evolving the build system with new releases of Mbed OS, without requiring users to update Mbed CLI. Mbed CLI is a front that actually calls the relevant Python script in mbed-os / mbed folder (e.g. build.py does the actual building, and gets invoked by Mbed CLI, but is not part of CLI).

Accepted Answer

On reading your answer, my first thought was what's the big deal about having to update mbed-cli? But thinking about it a bit more, this way any user necessarily keeps the build tools in sync with the software, so I guess that makes sense.

There would be less duplication if another of my feature ideas were implemented: allow sharing static libraries (esp. mbed-os) among multiple projects #580. :D

posted by Brendan McDonnell 15 Dec 2017

Gave a suggestion in your GH ticket :-)

posted by Jan Jongboom 16 Dec 2017