2 years, 7 months ago.

Creating a project with multiple executables.

I'm working on a system using multiple distinct devices using mbed-cli. There is a good amount of shared code and data, and they'll generally use a lot of the same libraries. I would like to have a single repository with the code for each of these devices. Ideally, I would have a single directory with shared libraries/includes, to include mbed-os, and a directory with several mbed programs (each in their own sub-directory) using these libraries. I have not been able to create such a project.

I could create a repository and use a submodule mbed project for each device, but this would mean importing a copy of mbed-os and any libraries for every device. Additionally, if I were to update a library in one device I might forget to update one of the others and end up with a system using several versions of the same library.

Can anyone point me in the right direction?

Be the first to answer this question.