<?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 capture changes to zephyr/mcuboot in source control?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87641/how-to-capture-changes-to-zephyr-mcuboot-in-source-control</link><description>I have a VS Code project that is a Workspace Application where I&amp;#39;ve had to make some modifications to code in both zephyr and mcuboot directly. My codebase is in a git repository, but the zephyr and mcuboot directories are themselves git repositories</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 May 2022 12:57:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87641/how-to-capture-changes-to-zephyr-mcuboot-in-source-control" /><item><title>RE: How to capture changes to zephyr/mcuboot in source control?</title><link>https://devzone.nordicsemi.com/thread/366732?ContentTypeID=1</link><pubDate>Fri, 06 May 2022 12:57:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80ed196d-1d5f-418b-a05b-605c09a1263b</guid><dc:creator>BDA</dc:creator><description>&lt;p&gt;Ah okay, thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to capture changes to zephyr/mcuboot in source control?</title><link>https://devzone.nordicsemi.com/thread/366700?ContentTypeID=1</link><pubDate>Fri, 06 May 2022 11:34:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:529f9e70-d169-48f5-af84-e1669cd66d63</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In this situation I would recommend that you fork the repositories you would like to modify, &lt;a href="https://github.com/nrfconnect/sdk-zephyr"&gt;sdk-zephyr&lt;/a&gt; and &lt;a href="https://github.com/nrfconnect/sdk-mcuboot"&gt;sdk-mcuboot&lt;/a&gt; in your case.&lt;br /&gt;Then you can add a west.yml to ncs which&amp;nbsp;blocks these repositories from being included by nrf/west.yml and gets your fork instead. For example:&lt;/p&gt;
&lt;p&gt;ncs/.west/config:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[manifest]
path = foo
file = west.yml

[zephyr]
base = zephyr&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;ncs/foo/west.yml:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;manifest:
  projects:

    - name: nrf
      url: https://github.com/nrfconnect/sdk-nrf
      revision: v1.9.1
      path: nrf
      import:
        name-blocklist:
          - zephyr
          - mcuboot

    - name: zephyr
      url: https://github.com/USER_NAME/sdk-zephyr
      revision: v2.7.99-ncs1-1-modified
      import:
        # In addition to the zephyr repository itself, NCS also
        # imports the contents of zephyr/west.yml at the above
        # revision. Only the projects explicitly named in the
        # following allowlist are imported.
        #
        # Note that the zephyr west extensions (like &amp;#39;build&amp;#39;, &amp;#39;flash&amp;#39;,
        # &amp;#39;debug&amp;#39;, etc.) are automatically provided by this import, so
        # there&amp;#39;s no need to add a redundant west-commands: key for
        # the zephyr project.
        #
        # Please keep this list sorted alphabetically.
        name-allowlist:
          - TraceRecorderSource
          - canopennode
          - civetweb
          - cmsis
          - edtt
          - fatfs
          - fff
          - hal_nordic
          - hal_st
          - libmetal
          - littlefs
          - loramac-node
          - lvgl
          - lz4
          - mbedtls
          - mipi-sys-t
          - nanopb
          - net-tools
          - nrf_hw_models
          - open-amp
          - psa-arch-tests
          - segger
          - tinycbor
          - tinycrypt
          - tf-m-tests
          - zscilib
          
    - name: mcuboot
      url: https://github.com/USER_NAME/sdk-mcuboot
      revision: v1.8.99-ncs1-modified
      path: bootloader/mcuboot&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You will have to modify the above ncs/foo/west.yml file to have the correct urls and revisions for your forks.&lt;/p&gt;
&lt;p&gt;Then you should get your forks when you run &amp;#39;west update&amp;#39; in ncs/nrf.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>