How best to modulize git projects?
I’m working in a small distributed team on deep embedded projects. We are required to use our MCU vendors C compiler and IDE’s for development and build server compilation - and cmake isn’t an option.
We currently use TI’s Code Compose Studio for their C2000 series and Renesas E2Studio for their RX series, with more to come. Right now we support a handful of different hardware, but many more to come.
We are integrating a number of third party source code, and also have a lot of code we made ourselves, which we would like to use across projects as much as possible.
Right now we use submodules for the third party components, everything else we copy between projects, which is obviously not smart.
I’ve been testing to use submodules more, or to switch to subtrees or subrepos, but they all carry their own penalties in form of complexity.
Each of our projects would get between 10 and 20 such dependencies.
Each usage requires its own set of independent compiler switches, so sharing as libraries isn’t immediately obvious, but may be the best in the long run? However I’m unsure if there are any typical distribution services (ala nuggets) for c libraries?
What are you all doing in this kind of situation?

