Include an mcuboot-specific overlay in my custom board folder

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's DTS. It also uses mcuboot.

When writing the board files, the DTS of cpuflpr and cpuapp are kept separate, but mcuboot inherits its DTS from cpuapp. This is practical in many ways, e.g. the partitioning is the same. However, some things must be different. I currently have a file called sysbuild/mcuboot.overlay with the following contents:

/ {
    chosen {
        zephyr,code-partition = &boot_partition;
    };
};

// Avoid errors; Mcuboot is quite particular about memory sections
/delete-node/ &sram_rx;
/delete-node/ &sram_tx;
/delete-node/ &ipc0;

// Mcuboot should not start VPR
&cpuflpr_vpr {
    status = "disabled";
};
 

What I would like to do is to move this file somewhere inside boards/<vendor>/<boardname>/, but all the information I can find about mcuboot-specific overlays says to place it in sysbuild/mcuboot.overlay. Is there a way have mcuboot settings inside my custom board folder?

-Fridtjof

Related