When building a product which has multiple models but the firmware is essentially the same, perhaps with a few different parameters, I want to use the same code base and have multiple build targets. Previously I’ve used CMake with nRF5 SDK and created multiple targets with the same source files except a few files which are model specific.
In NCS, it seems Zephyr creates the ‘app’ target which is a library, and that gets linked into the 'zephyr_final' target. I’m not sure the user is able to create multiple targets.
How would you suggest I should structure the project to accommodate for multiple ‘models’?