Error While adding the mcuboot folder in repo.

Hi,

We are using the nordic sdk 1.9.1.

I have created my own project and i want whole sdk commit to my repo. I am able to build the project. I am not able to commit the mcuboot, It showing the error you are not able to commit the git repository under another git repository.

1. If i remove the. git folder in the sdk then we are able to commit but nothing got committed in the mcuboot folder. I am Not able to build the project.

2. I have tried to create the mcuboot as repository which conitain same file which mcboot repo having and add as the sunmodule to my repo, still i am facing the build issue.

Can you please explain the by removing the .git folder we are facing the build issue. What is role of .git folder of mcuboot for successfully building of the project.

How i can commit the whole Nordic SDK  and mcuboot  folders in my repository 

  • No, that will not work, as you have already seen.

    Instead, you must have each of the repositories in the SDK (that you are interested in) as their separate repositories. However, you can maintain your own copies of those repositories, and use West to manage them, giving you pretty much the same benefits as you would have by having them all in one repository.

    Please let me know if you need help setting up a West manifest file that let you do this.

  • Hi Didrik I have fork the zephyr SDK i have some changes in it so i have created a branch in the forked and i have change the manifest file, providing the commit id in the version field as shown in 2 nd snap. after the west update, which ever in import filed it not able to clone it is giving the error.

    Could you please suggest the right way to do it. 

     

  • hello Didrik, 

    As per my understanding this module are fetch from the revision no (tag) i have change it to my commit ID because of it is failing 

    Could please suggest me proper way?

  • Have you made any other changes than those showed in your screenshots?

    These changes worked for me:

    diff --git a/west.yml b/west.yml
    index f6e89e95f..d716b88f5 100644
    --- a/west.yml
    +++ b/west.yml
    @@ -22,7 +22,8 @@ manifest:
           url-base: https://github.com/nrfconnect
         # Third-party repository sources:
         - name: zephyrproject
    -      url-base: https://github.com/zephyrproject-rtos
    +      #url-base: https://github.com/zephyrproject-rtos
    +      url-base: https://github.com/didrikr
         - name: throwtheswitch
           url-base: https://github.com/ThrowTheSwitch
         - name: armmbed
    @@ -51,8 +52,10 @@ manifest:
         # https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/introduction/index.html
         # https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/guides/modules.html
         - name: zephyr
    -      repo-path: sdk-zephyr
    -      revision: v3.2.99-ncs1
    +      repo-path: zephyr
    +      remote: zephyrproject
    +      #revision: v3.2.99-ncs1
    +      revision: 4872d41ba5b7405e99c59f1e7cae8542bc6eca16
           import:
             # In addition to the zephyr repository itself, NCS also
             # imports the contents of zephyr/west.yml at the above
    

    (My Zephyr fork is of the upstream Zephyr, not the NCS fork. Hence the repo-path is "zephyr" in my case, and not "sdk-zephyr").

    Note that I have not made any changes to zephyr/west.yml at all.

Related