Multi image project as Zephyr module

Hello,

I've been working with nRF9160 for a while now and wanted to let you know, I love this little piece of hardware. The possibilities, the small form factor, the power consumption - everything seems to be really great! 

About the issue. I've created a base project (lets call it "core" later on) which includes minimum functionality required for any upcoming projects/devices. Core utilizes MCUboot and TF-M so it is a multi-image build. Now I want to add core as a nested project for a specific sensor device. Meaning I include the core project in my new device project (its like a module or subsys or something else), write some sensor drivers, change some settings and FW is done. 

What are my options here? I thought maybe I could utilize Zephyr modules and use the core project like a module to the necessary projects but that introduced a lot of build errors. Also it did not directly include core prj.conf or core mcuboot.conf which are necessary. 

The easiest way to get this working is just by branching off core project for each device project but that does not seem like a good way to do it. Maybe there are some more modular possibilities to achieve the result? 

Maybe there is some guide to achieve this? 

I believe the Zephyr module would work great if the core wouldn't be a multi-image build project.

Regards, 
Adrian

Related