<?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>specify MCUBOOT project or build out of ncs repo</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68409/specify-mcuboot-project-or-build-out-of-ncs-repo</link><description>Hello, 
 At this point I have been able to successfully customize and run the mcuboot procect.. Mcuboot is successfully built and linked with my app. 
 However I am would want to move the bootloader project out of the ncs repo and into my custom git repo</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Nov 2020 09:08:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68409/specify-mcuboot-project-or-build-out-of-ncs-repo" /><item><title>RE: specify MCUBOOT project or build out of ncs repo</title><link>https://devzone.nordicsemi.com/thread/280538?ContentTypeID=1</link><pubDate>Wed, 18 Nov 2020 09:08:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2e4c5b2-2375-47a4-aeb1-9cce428538f3</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would recommend that you fork the repo in this case.&lt;/p&gt;
&lt;p&gt;If you create your project as per section 2.1.2 in this guide:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/nrf-connect-sdk-guides/b/getting-started/posts/nrf-connect-sdk-tutorial---part-2-ncs-v1-3-0"&gt;https://devzone.nordicsemi.com/nordic/nrf-connect-sdk-guides/b/getting-started/posts/nrf-connect-sdk-tutorial---part-2-ncs-v1-3-0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is essentially copying the ncs/nrf/west.yml to your own project, and initializing it via west.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using mcuboot upstream as an example, but you can change this to your own fork of mcuboot if desired.&lt;/p&gt;
&lt;p&gt;You can point to a remote by first defining it in west.yml:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;  remotes:
    ...
    - name: mcuboot-upstream
      url-base: https://github.com/mcu-tools
    ...
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then add/adjust the mcuboot under the project section:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    - name: mcuboot
      remote: mcuboot-upstream
      repo-path: mcuboot
      revision: v1.6.0
      path: bootloader/mcuboot
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: specify MCUBOOT project or build out of ncs repo</title><link>https://devzone.nordicsemi.com/thread/280447?ContentTypeID=1</link><pubDate>Tue, 17 Nov 2020 17:48:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60e25b8d-0e4e-48b4-b33e-4efa9ae26375</guid><dc:creator>Varouzan</dc:creator><description>&lt;p&gt;I have made some source code edits in main.c and also config edits in proj.conf.&lt;/p&gt;
&lt;p&gt;So how would I go about setting up the partition manager to use a compiled .hex file then?&lt;/p&gt;
&lt;p&gt;Something along these lines:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;set_property(
  GLOBAL PROPERTY
  app_PM_HEX_FILE # Must match &amp;quot;*_PM_HEX_FILE&amp;quot;
  ${PROJECT_BINARY_DIR}/signed.hex
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Do I need to add some sort of pm.yml file in my root app directory for this?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Which example in&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/guides/west/manifest.html#manifest-files"&gt;https://docs.zephyrproject.org/latest/guides/west/manifest.html#manifest-files &lt;/a&gt;showcases the creation of a fork? How would I go about doing that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: specify MCUBOOT project or build out of ncs repo</title><link>https://devzone.nordicsemi.com/thread/280315?ContentTypeID=1</link><pubDate>Tue, 17 Nov 2020 10:50:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6011321-2938-423c-be0a-68daf84f5463</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;the partition manager requires to know a bit more than just the .hex location (&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#build-system"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#build-system&lt;/a&gt;), so there might be easier to either fork mcuboot (and point to your remote + repo in west.yml, &lt;a href="https://docs.zephyrproject.org/latest/guides/west/manifest.html#manifest-files"&gt;see examples in west documentation&lt;/a&gt;), or if you only require configuration or overlay changes; this can be done in the application space.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What are your changes? Do you require source file changes, or is this purely on a .conf / .overlay level?&lt;/p&gt;
&lt;p&gt;If yes, then you can add the following to your applications CMakeLists.txt, and add a mcuboot.conf file:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/66210/change-mcuboot_menuconfig-configuration/270799#270799"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/66210/change-mcuboot_menuconfig-configuration/270799#270799&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>