<?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 apply changes to an nRF Connect SDK driver file from a Workspace App Repo?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117306/how-to-apply-changes-to-an-nrf-connect-sdk-driver-file-from-a-workspace-app-repo</link><description>The text for the recommended nRF Connect SDK workflow (using a Workspace Application Repository - https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/dev_model_and_contributions/adding_code.html#dm-workflow-4 ) states: 
 
 &amp;quot;An additional possibility</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Dec 2024 05:10:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117306/how-to-apply-changes-to-an-nrf-connect-sdk-driver-file-from-a-workspace-app-repo" /><item><title>RE: How to apply changes to an nRF Connect SDK driver file from a Workspace App Repo?</title><link>https://devzone.nordicsemi.com/thread/515218?ContentTypeID=1</link><pubDate>Tue, 17 Dec 2024 05:10:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b52ce753-744e-47f3-880a-d660fe75fa84</guid><dc:creator>Saxman58</dc:creator><description>&lt;p&gt;Thank you so much Hieu for the prompt and detailed reply.&amp;nbsp; I believe I understand, and am in the process of reading more from the links you reference before I start making the changes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to apply changes to an nRF Connect SDK driver file from a Workspace App Repo?</title><link>https://devzone.nordicsemi.com/thread/515021?ContentTypeID=1</link><pubDate>Mon, 16 Dec 2024 06:07:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b44de95-d93b-4810-81f7-1fe8140b09e8</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Saxman58,&lt;/p&gt;
&lt;p&gt;I think first we need to revisit how the SDK and a West Workspace project work. They are built up of different parts, all of which&amp;nbsp;are git&amp;nbsp;repositories themselves.&amp;nbsp;&lt;br /&gt;Which repositories, where they are located, and which branch/fork/tag/commit should be used are all configured in &lt;span&gt;the&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.0-rc1/page/zephyr/develop/west/manifest.html"&gt;west manifest&lt;/a&gt;.&lt;br /&gt;The west tool&amp;nbsp;uses git in the background to clone the repository during west update, and creates the SDK, or the Workspace.&lt;/p&gt;
&lt;p&gt;For more information, I recommend going over the application development guide of both &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.0-rc1/page/nrf/app_dev.html"&gt;NCS&lt;/a&gt; and &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.0-rc1/page/zephyr/develop/index.html"&gt;Zephyr&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The above nature of the SDK and a Workspace is how you can use your own fork of the relevant&amp;nbsp;SDK part and make your own modification.&amp;nbsp;&lt;br /&gt;After creating the fork, you simply modify the west manifest to point to your fork instead of the original. That is why&amp;nbsp;forks work with both Workflow 3 and 4.&lt;br /&gt;This is the intended/by-design way to run a project with modified SDK file.&lt;/p&gt;
&lt;p&gt;For your&amp;nbsp;example, you want to change a file in nrfxlib and you have a workspace project following Workflow 4. The application is based on the NCS Example Application.&lt;br /&gt;Notice &lt;a href="https://github.com/nrfconnect/ncs-example-application/blob/v2.8.0/west.yml#L12-L17"&gt;the NCS Example Application&amp;#39;s west manifest includes a single project: sdk-nrf&lt;/a&gt;.&lt;br /&gt;Then notice &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.8.0/west.yml#L146-L149"&gt;the sdk-nrf repo&amp;#39;s west manifest includes a nrfxlib project&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;In this case, you will need to have a fork of sdk-nrfxlib, and a fork of sdk-nrf.&lt;br /&gt;In your sdk-nrfxlib fork, you will need to&amp;nbsp;make your desired changes.&lt;br /&gt;In your sdk-nrf fork, you will need to update the west manifest to use a branch or tag on your sdk-nrfxlib fork for nrfxlib.&lt;br /&gt;Finally,&amp;nbsp;in your project manifest, you will need to update the west manifest to use a branch or tag on your sdk-nrf fork for NCS.&lt;/p&gt;
&lt;p&gt;That&amp;nbsp;can be a lot of work for sure. If it seems so, then you can use&amp;nbsp;the CMakeLists file change approach you linked. It is reasonable.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>