In my nrf connect sdk projects i have external custom driver modules that i use across various projects to simplify code reuse. The issue i am having is that when I add MCUBOOT for dfu my modules get added to MCUBOOT and it increase the size of MCUBOOT and increases the number of config includes I need to add. Is there a way to stop this. Below is the include and all my bindings, kconfig, cmake, and code is included in this directory so that zephyr can pick it up.
list(APPEND ZEPHYR_EXTRA_MODULES ${CMAKE_CURRENT_SOURCE_DIR}/../ZephyrDrivers )