Hello,
I am trying to migrate a project nRF Connect SDK v2.6.2 to v2.7.0 for the nrf5340dk target board, particularly to update to the new hw model v2 and sysbuild. I am particularly having issues when building with MCUBoot + sysbuild. I am essentially following the sample with_mcuboot to get a sense of the changes necessary to properly configure my project. When trying to build with sysbuild and mcuboot with 2.7.0, I get the following warning which fails the build:
warning: FLASH_MAP (defined at subsys/storage/flash_map/Kconfig:10) has direct dependencies FLASH_HAS_DRIVER_ENABLED with value n, but is currently being y-selected by the following symbols:
- MCUBOOT_DEVICE_SETTINGS (defined at /opt/nordic/ncs/v2.7.0/bootloader/mcuboot/boot/zephyr/Kconfig:726), with value y, direct dependencies y (value: y)
In order to simplify the issue and reproduce, I decided to just work off of the with_mcuboot sample project to try to learn and understand how sysbuild works. When I use the sample as is, mcuboot builds fine. But since I want to add a device tree overlay, I decided to use the folder structure for mcuboot instead. But even with no overlay file, the warning appears. So pretty much to reproduce, I simply move and rename the sysbuild/mcuboot.conf to sysbuild/mcuboot/prj.conf and that produces the warning as well. Then I can simply move back the prj.conf to under Sysbuild and renamed back to mcuboot.conf and the build works fine.
sysbuild.conf
-----
<home>/application ├── CMakeLists.txt ├── prj.conf └── sysbuild ├── mcuboot.conf
<home>/application ├── CMakeLists.txt ├── prj.conf └── sysbuild └── mcuboot ├── prj.conf
Ultimately, my goal is that I would like to use the mcuboot folder structure so that I can store my mcuboot overlays in the folder structure as this is a cleaner solution than relying on using CMake arguments to specify the locations of the dts overlays (mcuboot_DTS_OVERLAY_FILE) but without the build failing due to the warning. I would also like to understand why the file location and name change produces this warning even in a simple sample like with_mcuboot.
Edit: Same issue with v2.9.0