Sysbuild domain mcuboot kconfig/overlay path bug

Hi Nordic Team,


I think I found an issue with the "Sysbuild domain settings" windows (in VSCode) use to set path for Kconfig fragment and overlay to parametrize mcuboot. 
The process take file path as relative to project instead of absolute and then the compilation command failed with a "No such file or directory". 

I want to customize mcuboot overlay and I think it's the only way to do this in SDK 2.8.0 or more. Is there another way without directly modifying file from SDK ?!


Here the sequence for the "relative path bug" :

-> Go for mcuboot and look at the default path, they are absolute ! 


-> Go to edit sysbuild domain


-> Add an overlay 


-> Look the command with relative path instead of absolute



-> And the "no such file or directory error"


-> full log for info

 *  Executing task: nRF Connect: Generate config nrf52840dk/nrf52840 for /home/vincent/Projects/power-consumption 

Building power-consumption
west build --build-dir /home/vincent/Projects/power-consumption/build_280 /home/vincent/Projects/power-consumption --pristine --board nrf52840dk/nrf52840 --sysbuild -- -DNCS_TOOLCHAIN_VERSION=NONE -DCONF_FILE=/home/vincent/Projects/power-consumption/prj.conf -Dmcuboot_DTC_OVERLAY_FILE=boards/nrf52840dk_nrf52840.overlay -DBOARD_ROOT=/home/vincent/Projects/power-consumption

-- west build: generating a build system
Loading Zephyr module(s) (Zephyr base): sysbuild_default
-- Found Python3: /home/vincent/ncs/toolchains/b81a7cd864/usr/local/bin/python3.12 (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter 
-- Cache files will be written to: /home/vincent/.cache/zephyr
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf52840dk, qualifiers: nrf52840
Parsing /home/vincent/ncs/v2.8.0/zephyr/share/sysbuild/Kconfig
Loaded configuration '/home/vincent/Projects/power-consumption/build_280/_sysbuild/empty.conf'
Merged configuration '/home/vincent/Projects/power-consumption/sysbuild.conf'
Configuration saved to '/home/vincent/Projects/power-consumption/build_280/zephyr/.config'
Kconfig header saved to '/home/vincent/Projects/power-consumption/build_280/_sysbuild/autoconf.h'
-- 
   *****************************
   * Running CMake for mcuboot *
   *****************************

Loading Zephyr default modules (Zephyr base).
-- Application: /home/vincent/ncs/v2.8.0/bootloader/mcuboot/boot/zephyr
-- CMake version: 3.21.0
-- Found Python3: /home/vincent/ncs/toolchains/b81a7cd864/usr/local/bin/python (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter 
-- Cache files will be written to: /home/vincent/.cache/zephyr
-- Zephyr version: 3.7.99 (/home/vincent/ncs/v2.8.0/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf52840dk, qualifiers: nrf52840
-- Found host-tools: zephyr 0.16.8 (/home/vincent/ncs/toolchains/b81a7cd864/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.8 (/home/vincent/ncs/toolchains/b81a7cd864/opt/zephyr-sdk)
-- Found Dtc: /home/vincent/ncs/toolchains/b81a7cd864/usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6") 
-- Found BOARD.dts: /home/vincent/ncs/v2.8.0/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840.dts
-- Found devicetree overlay: boards/nrf52840dk_nrf52840.overlay
<command-line>: fatal error: boards/nrf52840dk_nrf52840.overlay: No such file or directory
compilation terminated.
CMake Error at /home/vincent/ncs/v2.8.0/zephyr/cmake/modules/extensions.cmake:4547 (message):
  failed to preprocess devicetree files (error code 1):
  /home/vincent/ncs/v2.8.0/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840.dts;boards/nrf52840dk_nrf52840.overlay
Call Stack (most recent call first):
  /home/vincent/ncs/v2.8.0/zephyr/cmake/modules/dts.cmake:249 (zephyr_dt_preprocess)
  /home/vincent/ncs/v2.8.0/zephyr/cmake/modules/zephyr_default.cmake:133 (include)
  /home/vincent/ncs/v2.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /home/vincent/ncs/v2.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:12 (find_package)


-- Configuring incomplete, errors occurred!
CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message):
  CMake configure failed for Zephyr project: mcuboot

  Location: /home/vincent/ncs/v2.8.0/bootloader/mcuboot/boot/zephyr/
Call Stack (most recent call first):
  cmake/modules/sysbuild_images.cmake:20 (ExternalZephyrProject_Cmake)
  cmake/modules/sysbuild_default.cmake:20 (include)
  /home/vincent/ncs/v2.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
  /home/vincent/ncs/v2.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  /home/vincent/ncs/v2.8.0/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
  template/CMakeLists.txt:10 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/vincent/Projects/power-consumption/build_280/CMakeFiles/CMakeOutput.log".
FATAL ERROR: command exited with status 1: /home/vincent/ncs/toolchains/b81a7cd864/usr/local/bin/cmake -DWEST_PYTHON=/home/vincent/ncs/toolchains/b81a7cd864/usr/local/bin/python3.12 -B/home/vincent/Projects/power-consumption/build_280 -GNinja -DBOARD=nrf52840dk/nrf52840 -DNCS_TOOLCHAIN_VERSION=NONE -DCONF_FILE=/home/vincent/Projects/power-consumption/prj.conf -Dmcuboot_DTC_OVERLAY_FILE=boards/nrf52840dk_nrf52840.overlay -DBOARD_ROOT=/home/vincent/Projects/power-consumption -S/home/vincent/ncs/v2.8.0/zephyr/share/sysbuild -DAPP_DIR:PATH=/home/vincent/Projects/power-consumption

 *  The terminal process terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 







Regards,

Vincent

Related