8 years, 9 months ago.

Clone portion of repo for single target and toolchain

Is there a way to clone just the portion of this library required for a single target / toolchain?

Question relating to:

The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

1 Answer

8 years, 9 months ago.

In future versions of mbed the targets will be separated into their own repositories, but for the time being it is not possible.

The repository you've referred to is a built version of the library so I'm not sure if you would have any benefit from only cloning part of it. What are you trying to do?

Accepted Answer

I'm setting up an offline build and development environment with the mbed library as a local dependency, and using the pre-compiled headers seemed like a good solution. I'd like to set up my own repository such that, when I want to, I can check for / pull updates on just the files pertinent to my target and toolchain, since the entire mbed library is quite massive.

Is there a way to do this with the mbed libraries & tools package (github.com/mbedmicro/mbed)? If there is, I couldn't quite figure it out. On a related note, is a there a smarter way to accomplish what I'm aiming for?

Barring other options, I'll just set up my own separate mbed library repo (just the pre-compiled headers for my target and toolchain) and periodically update manually, diffing the relevant portion of the full updated repo with my own repo. That is, until there are separate repos for each target, as you mention.

posted by Nathaniel Honka 08 Jul 2015