<?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>Include an mcuboot-specific overlay in my custom board folder</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/128525/include-an-mcuboot-specific-overlay-in-my-custom-board-folder</link><description>Hi! 
 Im creating my own custom board based on the nrf54l15dk board included in zephyr. My board uses both cpuapp and cpuflpr, and has a custom partitioning scheme defined in cpuapp&amp;#39;s DTS. It also uses mcuboot. 
 When writing the board files, the DTS</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Jun 2026 07:59:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/128525/include-an-mcuboot-specific-overlay-in-my-custom-board-folder" /><item><title>RE: Include an mcuboot-specific overlay in my custom board folder</title><link>https://devzone.nordicsemi.com/thread/568293?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2026 07:59:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a461348b-7e46-474b-9642-a9e79b4d35c7</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Fridtjof,&lt;/p&gt;
&lt;p&gt;Sorry, your question was clear, and I should have read it more carefully. Unlike the FLPR image, the MCUboot image lives in the same domain as the main application, so I do not think it makes sense to create a separate board target for it. I also did not find any examples of this in the SDK tree. Instead, we have MCUboot specific overlays are placed in bootloader/mcuboot/boot/zephyr/boards.&lt;/p&gt;
&lt;p&gt;However, I did some experiments, and it looks like using the pre_dt_board.cmake hook to apply the DT overlay may be an option. You can add this file to your board directory if it is not already present, then add the&lt;span&gt;&amp;nbsp;following lines:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Check if the current application is mcuboot by checking its source directory,
# if so, add the mcuboot overlay file. This is too early in the build process 
# to check CONFIG_MCUBOOT.
if(APPLICATION_SOURCE_DIR MATCHES &amp;quot;/mcuboot/boot/zephyr$&amp;quot;)
  list(APPEND EXTRA_DTC_OVERLAY_FILE &amp;quot;${CMAKE_CURRENT_LIST_DIR}/mcuboot.overlay&amp;quot;)
endif()&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;please keep in mind that this check&amp;nbsp;breaks &amp;nbsp;if the location of the mcuboot project changes within the SDK tree. It looks like it is too early in the build to gate it on any Kconfig symbols.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Include an mcuboot-specific overlay in my custom board folder</title><link>https://devzone.nordicsemi.com/thread/568288?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2026 06:47:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76ff8fca-4a32-46a1-8a30-73aa4b78f56d</guid><dc:creator>Fridtjof</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;This doesn&amp;#39;t&amp;nbsp;really answer my question. I don&amp;#39;t want to have my mcuboot DTS in the sysbuild folder, but inside boards/&amp;lt;vendor&amp;gt;/&amp;lt;boardname&amp;gt;. Then I will be able to more simply share the board between projects, and I can keep project-specific and board-specific configs/dts separate.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br /&gt;Fridtjof&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Include an mcuboot-specific overlay in my custom board folder</title><link>https://devzone.nordicsemi.com/thread/568287?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2026 06:31:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb41f665-2b04-4392-a639-847319e63f1d</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hei!&lt;/p&gt;
&lt;p&gt;Sysbuild also supports replacing the default MCUBoot configuration file instead/in addition to supplying Kconfig fragments such as sysbuild/mcuboot.conf. This is done by&amp;nbsp;using the folder structure outlined here:&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/build/sysbuild/index.html#zephyr-application-configuration-directory"&gt;https://docs.zephyrproject.org/latest/build/sysbuild/index.html#zephyr-application-configuration-directory&lt;/a&gt;. I used this approach in my demo sample here:&amp;nbsp;&lt;a href="https://github.com/vidarbe/ncs_hello_world_with_flpr"&gt;https://github.com/vidarbe/ncs_hello_world_with_flpr&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;
&lt;p&gt;EDIT: I saw after posting that you were asking about DT overlays, not Kconfig. However, the same rules apply to DT overlays.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>