Build for custom board converted to 2.8 format getting error "list GET given empty list" in CMakeLists.txt splitting BOARD_QUALIFIERS

We have a custom board that I ran through the board_v1_to_v2.py program and then attempted to build under SDK and Toolchain 2.8. When I run it it failed in the CMakeLists.txt:

I tried to find the location where this string is set, and it is not clear to me. My board.yml contains:

board:
  name: bikelinktorq
  vendor: nordic
  socs:
    - name: nrf52840

My boards folder has the following files in it:

I looked in all of the config files and didn't find any that contained the expected bikelinktorq/nrf52840// format for the board qualifier, so I wasn't sure how to proceed.

Here is the build output:

-- west build: generating a build system
Loading Zephyr module(s) (Zephyr base): sysbuild_default
-- Found Python3: C:/ncs/toolchains/2d382dcd92/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: C:/ncs/v2.8.0/zephyr/.cache
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: bikelinktorq_nrf52840
Parsing C:/ncs/v2.8.0/zephyr/share/sysbuild/Kconfig
Loaded configuration 'E:/git/BL/BikeLinkFirmware/Torq/build_1/_sysbuild/empty.conf'
Merged configuration 'E:/git/BL/BikeLinkFirmware/Torq/build_1/_sysbuild/empty.conf'
Configuration saved to 'E:/git/BL/BikeLinkFirmware/Torq/build_1/zephyr/.config'
Kconfig header saved to 'E:/git/BL/BikeLinkFirmware/Torq/build_1/_sysbuild/autoconf.h'
CMake Error at C:/ncs/v2.8.0/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:/ncs/v2.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
C:/ncs/v2.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
C:/ncs/v2.8.0/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
template/CMakeLists.txt:10 (find_package)


Loading Zephyr default modules (Zephyr base).
--
**************************
* Running CMake for Torq *
**************************

-- Application: E:/git/BL/BikeLinkFirmware/Torq
-- CMake version: 3.21.0
-- Found Python3: C:/ncs/toolchains/2d382dcd92/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: C:/ncs/v2.8.0/zephyr/.cache
-- Zephyr version: 3.7.99 (C:/ncs/v2.8.0/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: bikelinktorq_nrf52840
-- Found host-tools: zephyr 0.16.8 (C:/ncs/toolchains/2d382dcd92/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.8 (C:/ncs/toolchains/2d382dcd92/opt/zephyr-sdk)
-- Found Dtc: C:/ncs/toolchains/2d382dcd92/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found BOARD.dts: E:/git/BL/BikeLinkFirmware/Torq/boards/arm/bikelinktorq_nrf52840/bikelinktorq_nrf52840.dts
-- Found devicetree overlay: boards/bikelinktorq_nrf52840.overlay
-- Generated zephyr.dts: E:/git/BL/BikeLinkFirmware/Torq/build_1/Torq/zephyr/zephyr.dts
-- Generated devicetree_generated.h: E:/git/BL/BikeLinkFirmware/Torq/build_1/Torq/zephyr/include/generated/zephyr/devicetree_generated.h
-- Including generated dts.cmake file: E:/git/BL/BikeLinkFirmware/Torq/build_1/Torq/zephyr/dts.cmake

warning: Deprecated symbol PLATFORM_SPECIFIC_INIT is enabled.

Parsing E:/git/BL/BikeLinkFirmware/Torq/Kconfig
Loaded configuration 'E:/git/BL/BikeLinkFirmware/Torq/boards/arm/bikelinktorq_nrf52840/bikelinktorq_nrf52840_defconfig'
Merged configuration 'E:/git/BL/BikeLinkFirmware/Torq/prj.conf'
Merged configuration 'E:/git/BL/BikeLinkFirmware/Torq/build_1/Torq/zephyr/.config.sysbuild'
Configuration saved to 'E:/git/BL/BikeLinkFirmware/Torq/build_1/Torq/zephyr/.config'
Kconfig header saved to 'E:/git/BL/BikeLinkFirmware/Torq/build_1/Torq/zephyr/include/generated/zephyr/autoconf.h'
-- Found GnuLd: c:/ncs/toolchains/2d382dcd92/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38")
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/ncs/toolchains/2d382dcd92/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
CMake Deprecation Warning at C:/ncs/v2.8.0/zephyr/soc/CMakeLists.txt:15 (message):

---------------------------------------------------------------------
--- WARNING: Functionality to describe SoCs in HWMv1 is ---
--- deprecated and should be replaced with HWMv2, including ---
--- boards. HWMv1 SoCs support remains only to ease the migration ---
--- of out-of-tree SoCs and associated boards. It will not be ---
--- possible to build using HWMv1 SoCs at all in future releases. ---
---------------------------------------------------------------------


-- Setting build type to 'MinSizeRel' as none was specified.
CMake Warning at C:/ncs/v2.8.0/zephyr/CMakeLists.txt:2165 (message):

The CMake build type was set to 'MinSizeRel', but the optimization flag was set to '-Og'.
This may be intentional and the warning can be turned off by setting the CMake variable 'NO_BUILD_TYPE_WARNING'


CMAKE_CURRENT_SOURCE_DIR: E:/git/BL/BikeLinkFirmware/Torq
PROJECT_NAME: Torq
bin file source: E:/git/BL/BikeLinkFirmware/Torq/build/zephyr/app_update.bin
bin file destination: E:/git/BL/BikeLinkFirmware/Torq/bin/app_update.bin
-- Configuring done
-- Generating done
-- Build files have been written to: E:/git/BL/BikeLinkFirmware/Torq/build_1/Torq
-- Configuring incomplete, errors occurred!
See also "E:/git/BL/BikeLinkFirmware/Torq/build_1/CMakeFiles/CMakeOutput.log".
FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\2d382dcd92\opt\bin\cmake.EXE' -DWEST_PYTHON=C:/ncs/toolchains/2d382dcd92/opt/bin/python.exe '-Be:\git\BL\BikeLinkFirmware\Torq\build_1' -GNinja -DBOARD=bikelinktorq_nrf52840 -DNCS_TOOLCHAIN_VERSION=NONE -DDTC_OVERLAY_FILE=boards/bikelinktorq_nrf52840.overlay '-DBOARD_ROOT=e:\git\BL\BikeLinkFirmware\Torq' '-SC:\ncs\v2.8.0\zephyr\share\sysbuild' '-DAPP_DIR:PATH=e:\git\BL\BikeLinkFirmware\Torq'

The site has been quirky for me and is not letting me reply to questions after I submit a ticket, so hopefully I've given you what you need.

Thanks for your help!

Related