Migrating to sysbuild (NCS 2.8.0) results in CMake error

I'm in the process of migrating my project from NCS 2.6.1 to 2.8.0.

My project consists of a BLE application with MCUBoot as the only boot loader.

I've already updated my code so it compiles with HWMv1 and parent/child images under NCS 2.8.0.

I'm now trying to migrate the build system to sysbuild. Therefore I've made the following changes:

1. Moved child_image/mcuboot.conf to sysbuild/mcuboot.conf

2. Removed CONFIG_BOOTLOADER_MCUBOOT=y from the main prj.conf

3. Added a sysbuild.conf with the following contents:

SB_CONFIG_BOOTLOADER_MCUBOOT=y
SB_CONFG_BOOT_SIGNATURE_TYPE_ECDSA_P256=y
SB_CONFIG_PARTITION_MANAGER=y
SB_CONFIG_DFU_ZIP=y
SB_CONFG_DFU_ZIP_APP=y

When I now try to build the project I get the following error:

FATAL ERROR: command exited with status 1: <long command>

The only error that I can find is all the way at the top:

CMake Error at C:/Users/rpoel/Documents/SRC/T502534-FIRMWARE-Nordic-nRF528xx/external/nrf/sysbuild/CMakeLists.txt:117 (list):
  list GET given empty list
Call Stack (most recent call first):
  cmake/modules/sysbuild_extensions.cmake:583 (nrf_PRE_CMAKE)
  cmake/modules/sysbuild_extensions.cmake:583 (cmake_language)
  cmake/modules/sysbuild_images.cmake:16 (sysbuild_module_call)
  cmake/modules/sysbuild_default.cmake:20 (include)
  C:/Users/rpoel/Documents/SRC/T502534-FIRMWARE-Nordic-nRF528xx/external/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
  C:/Users/rpoel/Documents/SRC/T502534-FIRMWARE-Nordic-nRF528xx/external/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  C:/Users/rpoel/Documents/SRC/T502534-FIRMWARE-Nordic-nRF528xx/external/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
  template/CMakeLists.txt:10 (find_package)

How can I resolve this error?

Thanks in advance.

Kind regards,

Remco Poelstra

Parents Reply
  • I did find that post during my search, but it refers to NCS 2.7.0, while I'm on 2.8.0. It also mentions that HWMv2 isn't supported, but I'm still on HWMv1.

    Are you sure that post is relevant to my case? If so, is there no point in trying to upgrade at this moment? The documentation states that 2.9.0 will drop support for HWMv1 and the parent/child build system. If that's true, when am I supposed to upgrade?

Children
Related