nrf Connect SDK in private repo

Hi Team,

We are currently using nrf Connect SDK 1.8.0 and developing our application using nrf52833.

Currently we use our own git to maintain our application and nRF SDK is not part of our private git. Now we are planning to integrate nRF SDK in our repo. Mainly to keep track of changes we have done in nRF Connect SDK and also for long term maintenance perspective.

Ideally, we would like new developer to:

- Clone our private repo (Our application + nRF Connect SDK)

- Install toolchain in their machine and start build application using VS Code

To accomplish this we were referring https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/nrf/dm_adding_code.html#id3

As per above link, this is what we did:

1. Cloned the v1.8.0 using : west init -m https://github.com/nrfconnect/sdk-nrf --mr {revision} ncs; cd ncs; west update

2. Added this folder in our repo

3. On other machine, cloned our private repo and opened our application in VS Code, selected nRF Connect SDK in Welcome Page. Toolchain is already selected (installed at different location)

4. Now when we try to go to build configuration there is no Board available to select.

Could you please guide on what's wrong here or what's the right way to achieve what we want to do?

We are using VS Code (1.68.0) on Windows.

Thanks!

  • Hi,

    sdk-nrf is a repository which contains .git folders as part of repository initialization. If you would like to push repository with multiple .git folders.to a new repository, you would need to copy source files into another repository. 
    You should be aware that sdk-nrf is public repository and that you might have regrets in the future while trying to synchronize your private repository with sdk-nrf.

    Best regards,
    Dejan

  • Hi Dejan,

    sdk-nrf is a repository which contains .git folders as part of repository initialization. If you would like to push repository with multiple .git folders.to a new repository, you would need to copy source files into another repository. 

    Yes, I am aware of this. And if you have read my previous posts, I clearly mentioned the steps I did to achieve this. And after doing this, I faced the issues with compilation and that's what I've been asking you to help me out. 

    You should be aware that sdk-nrf is public repository and that you might have regrets in the future while trying to synchronize your private repository with sdk-nrf.

    Yes, we are aware and are ready to take the risk. Once we freeze our development, we won't be rebasing our app with newer versions of sdk-nrf. We may cherry-pick change in case we need it.

    Having said everything, I would once again ask you the same question, could you help me to figure out how to compile sdk-nrf after removing .git folders?

    I would really appreciate the straight NO, if this is impossible to do.

    Thanks!

  • Hi,

    As west is dependent on git, it is not possible.

    Best regards,
    Dejan

Related