mcuboot build not including the spi-nor flash details and driver

Hi, I have a problem where the mcuboot do not seem to include the 'jedec,spi-nor' driver.
Looking at the build directory, /build/zephyr/zephyr.dts file has the device spi nor flash node (compatible = "jedec,spi-nor") present under spi, but the /build/mcuboot/zephyr/zephyr.dts do not.

I do not have a separate overlay file for the mcuboot now, but I have tried that option too by copying the same one used by main app to child_image/mcuboot/boards/. but that do not seem to make any difference.

I also see this in the build log.
--
..
.
Including generated dts.cmake file: xxx/build/mcuboot/zephyr/dts.cmake

warning: SPI_NOR (defined at drivers/flash/Kconfig.nor:4) was assigned the value 'y' but got the
value 'n'. Check these unsatisfied dependencies: DT_HAS_JEDEC_SPI_NOR_ENABLED (=n). See
docs.zephyrproject.org/.../kconfig.html and/or look up SPI_NOR in the
menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration Values,
and Kconfig - Tips and Best Practices sections of the manual might be helpful too.


warning: SPI_NOR_FLASH_LAYOUT_PAGE_SIZE (defined at drivers/flash/Kconfig.nor:68) was assigned the
value '4096' but got the value ''. Check these unsatisfied dependencies: SPI_NOR (=n). See
docs.zephyrproject.org/.../kconfig.html and/or look
up SPI_NOR_FLASH_LAYOUT_PAGE_SIZE in the menuconfig/guiconfig interface. The Application Development
Primer, Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual
might be helpful too.

Parsing /opt/nordic/ncs/SDK-v2.6.99-cs1/bootloader/mcuboot/boot/zephyr/Kconfig
..
..

----

In the application , The SPI nor access works and seem to have no issues around the driver. the child_image/mcuboot/prj.conf file also has the same SPI_NOR CONFIG items enabled.
Any guess why mcuboot has problem including the driver in the build. Using SDK-v2.6.99-cs1

Related