What is the appropriate git management strategy for RTOS?

153 Views Asked by At

I have a RTOS code, and soon we are going to start a new RTOS project (I say "RTOS" to maintain the question in general, but the one we are employing is ThreadX)

The code is git managed but not very well managed. For starters it does not ignore built files , it does not have an .gitignore file or gitmodules.

My question is how should a RTOS project be git managed? examples of gitignore or gitmodule will be helpful

One issue that is calling my attention is for example: Should I put all the RTOS code in a submodule? In order to keep it independent of the main code?

1

There are 1 best solutions below

2
On

azure-rtos/threadx/.gitignore or azure-rtos/filex/.gitignore are good examples of the kind of .gitignore file you would need for this type of project.

Your project can then reference the different component as submodules, as done in renesas/azure-rtos/.gitmodules, if you need their sources directly in your codebase.