<?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>Custom implementation for a source file in the NRF connect SDK/ Zephyr</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94890/custom-implementation-for-a-source-file-in-the-nrf-connect-sdk-zephyr</link><description>Hi, 
 I need to make a few changes in the nRF Connect SDK&amp;#39;s (particularly Zephyr&amp;#39;s) source files to achieve certain functionality. I have made these changes in the SDK folder itself and tested the implementation and it works fine for us. 
 I now want</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 May 2023 20:54:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94890/custom-implementation-for-a-source-file-in-the-nrf-connect-sdk-zephyr" /><item><title>RE: Custom implementation for a source file in the NRF connect SDK/ Zephyr</title><link>https://devzone.nordicsemi.com/thread/425428?ContentTypeID=1</link><pubDate>Fri, 12 May 2023 20:54:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9edaa8b8-36c2-475d-b85c-442f8dc8565b</guid><dc:creator>Doug Shuffield</dc:creator><description>&lt;p&gt;For any who need to do this in the future, I found a way to overwrite an NCS file with the CMake command &amp;quot;file&amp;quot;.&amp;nbsp; I added this to my CMakeLists.txt:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;file(COPY ${CMAKE_SOURCE_DIR}/src/gzll_glue.c
     DESTINATION $ENV{ZEPHYR_BASE}/../nrf/subsys/gazell)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This will copy the modified gzll_glue.c file from my src directory to the appropriate place in the NCS directory. Note, this will overwrite the file in the NCS directory so you should make a backup of the original.&lt;/p&gt;
&lt;p&gt;Doug&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom implementation for a source file in the NRF connect SDK/ Zephyr</title><link>https://devzone.nordicsemi.com/thread/424927?ContentTypeID=1</link><pubDate>Wed, 10 May 2023 14:47:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5313c32a-3264-4a53-aa40-07ac65fc5ef5</guid><dc:creator>Doug Shuffield</dc:creator><description>&lt;p&gt;Hello Devanshu,&lt;/p&gt;
&lt;p&gt;We are wanting to do something similar.&amp;nbsp; Did you ever find a satisfactory means to do this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom implementation for a source file in the NRF connect SDK/ Zephyr</title><link>https://devzone.nordicsemi.com/thread/402585?ContentTypeID=1</link><pubDate>Thu, 29 Dec 2022 19:50:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2db8dd5-f173-4fd0-ac8e-6f562dc3def9</guid><dc:creator>Devanshu5</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/kaushik-parsana"&gt;Kaushik Parsana&lt;/a&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/prashant.humbre.softdel"&gt;Prashant Humbre&lt;/a&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/creightoncca"&gt;creightoncca&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/yuelin.li"&gt;Yuelin.Li&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;FYI / FYR&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom implementation for a source file in the NRF connect SDK/ Zephyr</title><link>https://devzone.nordicsemi.com/thread/401375?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2022 21:07:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62dbbac1-87ed-494f-a08f-31caeed5235e</guid><dc:creator>Devanshu5</dc:creator><description>&lt;p style="margin-top:0in;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,sans-serif;font-size:9.0pt;"&gt;Hi,&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align:start;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,sans-serif;font-size:9.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align:start;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,sans-serif;font-size:9.0pt;"&gt;Thank you for taking the time and replying to my question. Creating a Fork is always an option that we can go ahead with if we don&amp;#39;t find a solution. I have created this ticket to understand/explore ways in which I can avoid creating a fork and somehow make changes in CMakeLists.txt to include my source file in my project instead of SDK&amp;#39;s source file. I have made the change in only one source file and hence I want to avoid creating a fork and maintaining it.&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align:start;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,sans-serif;font-size:9.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align:start;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,sans-serif;font-size:9.0pt;"&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-align:start;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,sans-serif;font-size:9.0pt;"&gt;Devanshu Agarwal&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom implementation for a source file in the NRF connect SDK/ Zephyr</title><link>https://devzone.nordicsemi.com/thread/400917?ContentTypeID=1</link><pubDate>Thu, 15 Dec 2022 16:00:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da16f5ef-7d13-4ba4-bdab-5b5368d7f8d5</guid><dc:creator>Saleh</dc:creator><description>&lt;p&gt;As you are modifying the Zephyr stack, it means you&amp;#39;ll have a custom implementation of Zephyr at the end. Each time you run &amp;quot;west update&amp;quot; command, it will try to override those changes.&lt;/p&gt;
&lt;p&gt;If you wanna keep your changes, you should make a fork out of the origin project and maintain your custom one. It will be your responsibility to keep it updated with the origin project (github tools will helps you). Your team should use this forked version instead of the original one.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1671120004193v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>