Hi Fotis, There are other options:
Create a branch on nuttx and apps repositoris and add your project there. This way you can keep it working and from time to time rebase it with the master. Other option is creating an apps/external directory and inside it create a link for your application, but unfortunately there is not an equivalent for boards/external, so it is not an orthogonal solution. Maybe other people have other solution. BR, Alan On 7/13/20, Fotis Panagiotopoulos <f.j.pa...@gmail.com> wrote: > Hi everyone! > > I am new to Nuttx but I would like to use it for my next projects. > For the moment I am porting one of my big projects to Nuttx (that was > previously working with another RTOS). However, I am a bit confused on how > I should set up our development workflow. > > I will have to create my own apps dir, containing the actual firmware. I > will have to create a new board config for our custom hardware. Of course > Nuttx shall be configured specifically for the needs of the project. Our > projects use git for version control. > > But what is the recommended way of integrating Nuttx code to my project? > I can think of the following cases: > > 1. Copy the whole Nuttx source code in the project. > This workflow seems to be encouraged, but IMO it's not correct. This way my > copy of Nuttx becomes "detached" to the original repo. It would be very > difficult to change versions, update the kernel, or contribute back. > Everything would have to be merged manually. > > 2. Use the export target, and use Nuttx as a library. > This seems better, but it is still problematic. Nuttx becomes a "black > box". It is not easy to debug it, change configuration, or generally tell > what the library contains. Knowledge on what is built and how is lost in > our version control and the rest of the developers will not be able to > follow any changes. > > 3. Add Nuttx as a submodule to our git repository. > This ticks most of the boxes, but this also means that I will have to also > fork Nuttx to our git server. I am afraid that this will lead up to having > lots of forks, each for every one of our projects, and that it will become > very difficult to manage. > > So what do others do? How do you integrate Nuttx to your projects? > Or is there anything that I am missing or any other solution? > > -- > Fotis Panagiotopoulos >