This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SPM custom board overlay

For the SPM example is there a way to create a DTS or overlay file for the SPM in a way that it does not require files to be added to or modified in the nrf or zephyr repositories? It would be great if modifications to these repos can be avoided so a product repository can be the only place the board definition is stored.

The current approach I've found is to follow the example set by the out_of_tree_board sample from zephyr by:

This works, but it requires adding an overlay file into the nrf repo and modifying a file in the zephyr repo. This procedure requires very precise instructions in order to replicate on another build system and it seems like there should be a better way.

For example, is there something I can add to my project's CMakeLists.txt to point the SPM to a particular overlay file? Or is there a convenient way to copy the SPM sample into my repository and use that as opposed to using the sample from the nrf repo?

Parents Reply Children
No Data
Related