<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>nrf Connect SDK in private repo</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92410/nrf-connect-sdk-in-private-repo</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Oct 2022 09:51:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92410/nrf-connect-sdk-in-private-repo" /><item><title>RE: nrf Connect SDK in private repo</title><link>https://devzone.nordicsemi.com/thread/390218?ContentTypeID=1</link><pubDate>Tue, 11 Oct 2022 09:51:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74598da3-3194-468b-be5d-4af71e66c9fc</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;As west is dependent on git, it is not possible.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf Connect SDK in private repo</title><link>https://devzone.nordicsemi.com/thread/390108?ContentTypeID=1</link><pubDate>Mon, 10 Oct 2022 21:06:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fd203f6-9696-4029-8080-b6b6db8d80cd</guid><dc:creator>embeddedER</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="111786" url="~/f/nordic-q-a/92410/nrf-connect-sdk-in-private-repo/389699"]&lt;a href="https://github.com/nrfconnect/sdk-nrf"&gt;sdk-nrf&lt;/a&gt;&amp;nbsp;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.&amp;nbsp;[/quote]
&lt;p&gt;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&amp;#39;s what I&amp;#39;ve been asking you to help me out.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="111786" url="~/f/nordic-q-a/92410/nrf-connect-sdk-in-private-repo/389699"]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.[/quote]
&lt;p&gt;Yes, we are aware and are ready to take the risk. Once we freeze our development, we&amp;nbsp;won&amp;#39;t be rebasing our app with newer versions of sdk-nrf. We may cherry-pick change in case we need it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Having said&amp;nbsp;everything, I would once again ask you the same question, could you help me to figure out how to&amp;nbsp;compile sdk-nrf after removing .git folders?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I would really appreciate the straight&amp;nbsp;NO, if this is impossible to do.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf Connect SDK in private repo</title><link>https://devzone.nordicsemi.com/thread/389699?ContentTypeID=1</link><pubDate>Thu, 06 Oct 2022 17:51:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0abda9ae-eb25-4679-b84a-f1889b3cccec</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf"&gt;sdk-nrf&lt;/a&gt;&amp;nbsp;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.&amp;nbsp;&lt;br /&gt;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.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf Connect SDK in private repo</title><link>https://devzone.nordicsemi.com/thread/389261?ContentTypeID=1</link><pubDate>Tue, 04 Oct 2022 17:12:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:703a9724-15f5-422c-b16a-f0e42f45a47f</guid><dc:creator>embeddedER</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for reply. However, this is not helping. You are giving me the same link which I already&amp;nbsp;mentioned in my original request. I&amp;#39;ve already seen those links and still not getting what I want to do and that&amp;#39;s the reason for this post.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I do understand the way of managing multiple repos using west. But&amp;nbsp;we don&amp;#39;t want to do that. Why can&amp;#39;t we just push everything as single package in our private repo? We&amp;#39;ve been using multiple MCU and managing all the SDK in such a way in our private single repo.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As I asked multiple time in previous posts, could you please let me know how to get rid off this error (build fail without .git directory)? Why the ncs SDK build is dependent on the .git?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf Connect SDK in private repo</title><link>https://devzone.nordicsemi.com/thread/389211?ContentTypeID=1</link><pubDate>Tue, 04 Oct 2022 12:53:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2995793-3aef-4ed2-873b-9d19d933cf48</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;You shouldn&amp;#39;t be thinking about removing .git folders, but rather of various repositories that exist inside NCS. In order to maintain changes in NCS, you can fork required repositories and change them according to your needs. Instead of having one combined directory, you should maintain separate repositories. After you have done making changes, you can push the changes to a proper remote.&amp;nbsp;When you make changes to one repository, you would then push those changes only to that particular repository. When you make your VS Code Workspace application, you can specify desired nRF Connect SDK repository which will be included.&amp;nbsp; Managing your own repositories is possible through the use of west. File west.yml specifies particular repositories which will be cloned. You can read more about&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/dm_adding_code.html"&gt;adding your own code&lt;/a&gt;&amp;nbsp;in the documentation. In your case, you should not push combined folder which consists of application and nrf, but each part separately.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf Connect SDK in private repo</title><link>https://devzone.nordicsemi.com/thread/389071?ContentTypeID=1</link><pubDate>Mon, 03 Oct 2022 17:41:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ff2b48f-a608-4c65-b7a9-a1d78f7e4d3c</guid><dc:creator>embeddedER</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the response. However, I do understand I can use west to clone individual repo and all.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But&amp;nbsp;as I said&amp;nbsp;we need to maintain our changes over nRF SDK and we want to maintain a copy of SDK in our private repo. We may not take up upstream changes once we go into production.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you explain me, if there is a way to get rid off this error? Why the build process is dependent on the .git folder?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf Connect SDK in private repo</title><link>https://devzone.nordicsemi.com/thread/389063?ContentTypeID=1</link><pubDate>Mon, 03 Oct 2022 16:46:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:558169c3-acf9-4574-95a5-fbe03f91063b</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;You should not treat all different repositories inside NCS as one independent repository, but rather keep all needed repositories separated from each other. Most of the work for you can be done by the west tool. You can have a look at the structure of the west.yml file inside ncs\&amp;lt;your_version&amp;gt;\nrf.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf Connect SDK in private repo</title><link>https://devzone.nordicsemi.com/thread/388831?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 17:40:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a562712c-197c-446f-adf5-ed354ff4559f</guid><dc:creator>embeddedER</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Let me add all the steps I followed in details:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1. I cloned my private repo in the local filesystem. Under &amp;quot;myprivategitrepo/&amp;quot;&lt;/p&gt;
&lt;p&gt;2. Opened VS Code (v1.68.0),&amp;nbsp;from the nRF Connect Extension selected, Create New Application. Under create application selected Option &amp;quot;Workspace&amp;quot;. Selected: nRF Connect SDK Tag: v1.8.0, Toolchain (already installed in standard path C:\ncs\v1.8.0\toolchain), Workspace location: myprivategitrepo/, Workspace Name: ncs_v1.8.0, Application Template: peripheral_lbs, Application name: peripheral_lbs&lt;/p&gt;
&lt;p&gt;3. After step-2, entire ncs v1.8.0 is cloned under &amp;quot;myprivategitrepo/&amp;quot; along with the peripheral_lbs:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/ncs.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;4. At this point I can build the peripheral_lbs in VS Code.&lt;/p&gt;
&lt;p&gt;5. Now I want to push this entire &amp;quot;ncs_v1.8.0/&amp;quot; to our private repo. However, since this flder has multiple git repo (.git directories), I can&amp;#39;t add entire folder to my private repo. So,&amp;nbsp;searched and removed all the &amp;quot;.git&amp;quot; folders under &amp;quot;ncs_v1.8.0/&amp;quot;.&lt;/p&gt;
&lt;p&gt;6. At this point, If I try to build the peripheral_lbs again, it fails. And the error is what I mentioned earlier:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;usage: west [-h] [-z ZEPHYR_BASE] [-v] [-V] &amp;lt;command&amp;gt; ...
west: error: argument &amp;lt;command&amp;gt;: invalid choice: &amp;#39;build&amp;#39; (choose from &amp;#39;init&amp;#39;, &amp;#39;update&amp;#39;, &amp;#39;list&amp;#39;, &amp;#39;manifest&amp;#39;, &amp;#39;diff&amp;#39;, &amp;#39;status&amp;#39;, &amp;#39;forall&amp;#39;, &amp;#39;help&amp;#39;, &amp;#39;config&amp;#39;, &amp;#39;topdir&amp;#39;, &amp;#39;selfupdate&amp;#39;)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So, it seems VS Code build is somehow dependent on the .git directories. I&amp;nbsp;debugged this little bit more and found out that, if I put back two (nrf/ and zephyr/) &amp;quot;.git&amp;quot; directories back,&amp;nbsp;application compiles.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I hope I answered all your questions. This should be easily reproducible at your end too.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;At the end, our goal is to maintain the modified (we have our specific changes on top of the v1.8.0) ncs in our private git repo and use it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf Connect SDK in private repo</title><link>https://devzone.nordicsemi.com/thread/388685?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 08:10:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a797c300-41da-4552-95ad-628e0cb7279d</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="harshal034"]I was able to compile the sample application from the standalone NCS.[/quote]
&lt;p&gt;What do you refer to as standalone NCS? How did you create your standalone NCS? Where is this standalone NCS located? Does it have .git folder?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="harshal034"]However, now to add this to our private repo,&amp;nbsp;I removed the .git folders from this&amp;nbsp;standalone SDK.[/quote]
&lt;p&gt;Which .git folders have you removed? Did you remove .git folders before or after the addition to your private repo? How did you add standalone NCS to your private repo?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="harshal034"]After digging a little, t looks like, it&amp;#39;s renaming the .git in the nrf/ and zephyr/ is causing this issue. [/quote]
&lt;p&gt;Could you explain mentioned renaming? What is the issue that appeared? Can you show the issue?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="harshal034"]we just need to clone our repo, install toolchain and start compiling our app against stand-alone (modified ncs).[/quote]
&lt;p&gt;Which NCS do you want to use with your application? What is modified NCS?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf Connect SDK in private repo</title><link>https://devzone.nordicsemi.com/thread/388637?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 18:55:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcacb7e9-cfdd-4a9d-9678-0d73d7c10b4f</guid><dc:creator>embeddedER</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tried creating new application using Workspace using VS Code. I was able to compile the sample application from the standalone NCS. However, now to add this to our private repo,&amp;nbsp;I removed the .git folders from this&amp;nbsp;standalone SDK.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;After doing this I ended with the same error:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;usage: west [-h] [-z ZEPHYR_BASE] [-v] [-V] &amp;lt;command&amp;gt; ...
west: error: argument &amp;lt;command&amp;gt;: invalid choice: &amp;#39;build&amp;#39; (choose from &amp;#39;init&amp;#39;, &amp;#39;update&amp;#39;, &amp;#39;list&amp;#39;, &amp;#39;manifest&amp;#39;, &amp;#39;diff&amp;#39;, &amp;#39;status&amp;#39;, &amp;#39;forall&amp;#39;, &amp;#39;help&amp;#39;, &amp;#39;config&amp;#39;, &amp;#39;topdir&amp;#39;, &amp;#39;selfupdate&amp;#39;)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;After digging a little, t looks like, it&amp;#39;s renaming the .git in the nrf/ and zephyr/ is causing this issue. I couldn&amp;#39;t understand the dependency of the .git in the building.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you please let me know how to get around this? I want to push this stand-alone ncs to our private repo. So, that anytime we want to work with our app, we just need to clone our repo, install toolchain and start compiling our app against stand-alone (modified ncs).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf Connect SDK in private repo</title><link>https://devzone.nordicsemi.com/thread/388626?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 16:38:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07daaebd-ad17-4bee-9ab7-b63c22091316</guid><dc:creator>embeddedER</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;/p&gt;
&lt;p&gt;Thanks for the reply.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="111786" url="~/f/nordic-q-a/92410/nrf-connect-sdk-in-private-repo/388584"]VS Code also allows you to create new application in the Workspace. Workspace applications use west workspace for NCS versioning and they will have their own NCS instance which does not to be preinstalled. When you create your application in this way, you would also need to specify NCS repository of your choice.[/quote]
&lt;p&gt;Could you point me to any link or document on how to achieve this using VS Code? We are expecting to work with VS Code on Windows and compile/flash the programs from there. Not from the command line tool.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf Connect SDK in private repo</title><link>https://devzone.nordicsemi.com/thread/388584?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 13:24:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3797105e-ffc2-4e4d-862a-4650fe2331ef</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;You can read more about&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/develop/west/basics.html#workspace-concepts"&gt;workspace concepts&lt;/a&gt;,&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/develop/west/config.html#west-configuration-files"&gt;west configuration files&lt;/a&gt;&amp;nbsp;and &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/develop/west/manifest.html#west-manifests"&gt;west manifests&lt;/a&gt;&amp;nbsp;in the documentation.&lt;br /&gt;&lt;br /&gt;Additionally, you can also have a look at the tutorial about&amp;nbsp;&lt;a href="https://blog.golioth.io/improving-zephyr-project-structure-with-manifest-files/"&gt;improving zephyr project structure with west manifest files&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;VS Code also allows you to create new application in the Workspace. Workspace applications use west workspace for NCS versioning and they will have their own NCS instance which does not to be preinstalled. When you create your application in this way, you would also need to specify NCS repository of your choice.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf Connect SDK in private repo</title><link>https://devzone.nordicsemi.com/thread/388425?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2022 18:31:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:079b01cf-6d30-4a11-a9fd-697362e18121</guid><dc:creator>embeddedER</dc:creator><description>&lt;p&gt;Well, we figured out the issue for empty build. It was due to .gitignore settings, not the entire SDK was committed to out private repo.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However, now if we try to build our application using this cloned SDK from our repo, it gives below error:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;usage: west [-h] [-z ZEPHYR_BASE] [-v] [-V] &amp;lt;command&amp;gt; ...
west: error: argument &amp;lt;command&amp;gt;: invalid choice: &amp;#39;build&amp;#39; (choose from &amp;#39;init&amp;#39;, &amp;#39;update&amp;#39;, &amp;#39;list&amp;#39;, &amp;#39;manifest&amp;#39;, &amp;#39;diff&amp;#39;, &amp;#39;status&amp;#39;, &amp;#39;forall&amp;#39;, &amp;#39;help&amp;#39;, &amp;#39;config&amp;#39;, &amp;#39;topdir&amp;#39;, &amp;#39;selfupdate&amp;#39;)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>