<?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>How to add a modified SDK file to my project?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90915/how-to-add-a-modified-sdk-file-to-my-project</link><description>I&amp;#39;m using VS Code and the nRF Connect extensions to build a project that is derived from a sample app. It was created as a freestanding project, so the SDK is shared with other projects. 
 I need to modify a couple of files in the SDK and maintain my</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Aug 2022 16:27:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90915/how-to-add-a-modified-sdk-file-to-my-project" /><item><title>RE: How to add a modified SDK file to my project?</title><link>https://devzone.nordicsemi.com/thread/381628?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2022 16:27:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b038ae1b-9dc5-4c91-90aa-52c2cf53e026</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Ron,&lt;br /&gt;&lt;br /&gt;In&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/dm_managing_code.html"&gt;managing the code base&lt;/a&gt;, you can find information&amp;nbsp;how to fork a repository which you could then use&amp;nbsp;for your own needs.&amp;nbsp;&lt;br /&gt;You could also read about&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/zephyr/develop/west/workspaces.html#private-repositories"&gt;private repositories&lt;/a&gt;&amp;nbsp;and topologies, such as&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/zephyr/develop/west/workspaces.html#t2-star-topology-application-is-the-manifest-repository"&gt;T2 Star topology&lt;/a&gt;.&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: How to add a modified SDK file to my project?</title><link>https://devzone.nordicsemi.com/thread/381426?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2022 19:15:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39c73162-4145-4271-9eb1-b42594b93a75</guid><dc:creator>rdauben</dc:creator><description>&lt;p&gt;I&amp;#39;ve been re-reading the nRF Connect documentation section about the Development Model and &amp;quot;Adding your own code&amp;quot;.&amp;nbsp; Maybe the idea shown in Workflow 3 for an application fork of the SDK might solve my question.&amp;nbsp; If I understand correctly, my own fork can be private and located in one of my company&amp;#39;s github repos.&lt;/p&gt;
&lt;p&gt;I would appreciate all comments about this possible solution, or other possible solutions.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Ron&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add a modified SDK file to my project?</title><link>https://devzone.nordicsemi.com/thread/381411?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2022 15:32:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b8ece3d-0aed-4715-a308-19c3970c15c7</guid><dc:creator>rdauben</dc:creator><description>&lt;p&gt;The SDK is installed on my PC at:&amp;nbsp; C:\Nordic\v2.0.0\&lt;/p&gt;
&lt;p&gt;An example of a file I want to modify is:&amp;nbsp; C:\Nordic\v2.0.0\modules\lib\loramac-node\src\radio\sx126x\radio.c&lt;/p&gt;
&lt;p&gt;The changes would be to change some hard-coded configuration parameters.&lt;/p&gt;
&lt;p&gt;The previous Eclipse project were not Nordic projects.&amp;nbsp; I only mentioned that as an example that other IDEs support making shadow copies of SDK files in the project folder.&lt;/p&gt;
&lt;p&gt;My project is in a folder on my C drive and it is tracked in its own git repo.&amp;nbsp; The modified copy of radio.c should be kept in the same project folder, so it can be tracked in git along with the project folder.&amp;nbsp; It is okay if the modified radio.c is kept in a separate submodule, if that helps.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Ron&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add a modified SDK file to my project?</title><link>https://devzone.nordicsemi.com/thread/381408?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2022 15:13:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d894ef84-f289-4e07-8a3a-c52d909b892f</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user=""]I need to modify a couple of files in the SDK and maintain my changed file in our own git repo along with the rest of the project.[/quote]
&lt;p&gt;Are the files that you want to modify your project files or some other SDK files? Which specific files do you want to modify?&lt;/p&gt;
[quote user=""]For comparison, in previous projects we used a variant of Eclipse and it handles a private copy like this and excludes the original copy in the SDK from the build.&amp;nbsp; Is there a similar way in the nRF build?[/quote]
&lt;p&gt;Were these previous projects also NCS projects?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user=""]How can I create a copy of an SDK file in my project that will &amp;quot;shadow&amp;quot; the original file?&amp;nbsp; Is there a way to exclude the original file and have the build use my private copy?[/quote]
&lt;p&gt;Where is your private copy expected to be located? Are there any specific requirements for the files that need to be changed in terms of location?&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></channel></rss>