As I understand it, any applications using the modem libraries on the nRF9160 must be built in the non-secure domain.
The MCUboot and TF-M needs to be in the secure domain.
The nRFConnect plug-in for visual studio has a great "Create a new board" helper, but it will only create board files for nRF9160 Secure or Non-Secure. It won't do a hybrid with _ns extensions.
Is there a way to easily create such a hybrid board files for the nRF916x parts?
Or is there a better practice to build the bootloader and TF-M in one project targeting a secure version of your board files, and then create your application in a separate project using different non-secure versions of your board files? Potentially this offers a benefit as you are not always rebuilding the bootloader.