Command:
west build -p always -b nrf7002dk/nrf5340/cpuapp/ns LAB_CI --pristine
Error:
CMake Error at /workdir/zephyr/cmake/modules/boards.cmake:285 (message):
Board qualifiers `/nrf5340/cpuapp/ns` for board `nrf7002dk` not found.
Valid targets:
nrf7002dk/nrf5340/cpuapp
nrf7002dk/nrf5340/cpuapp/nrf7001
nrf7002dk/nrf5340/cpunet
Environment:
-
Zephyr v4.3.0-rc1 (also reproducible on main)
-
West v1.5.0
-
Toolchain: Zephyr SDK 0.17.4
-
Docker: ghcr.io/zephyrproject-rtos/zephyr-build:main
-
Host: Ubuntu (CI & local both)
Expected:
nrf7002dk/nrf5340/cpuapp/ns should work like nrf5340dk/nrf5340/cpuapp/ns for building non-secure apps with TF-M enabled.
Observed:
The /ns variant is missing for nRF7002 DK, so west build fails immediately.
Questions:
-
Is the non-secure variant (cpuapp/ns) intentionally not defined for nRF7002 DK?
-
If not, what’s the correct way to build a non-secure application (TF-M based) on this board?
-
Should we manually create an nrf7002dk_nrf5340_cpuapp_ns_defconfig, similar to other nRF5340 boards?
Reproduce:
docker run --rm -it -v $(pwd):/workdir -w /workdir \
ghcr.io/zephyrproject-rtos/zephyr-build:main bash -lc \
'west init && west update && \
west build -b nrf7002dk/nrf5340/cpuapp/ns LAB_CI --pristine'
user@55d430815d64:/workdir$ west build -p always -b nrf7002dk/nrf5340/cpuapp/ns LAB_CI --pristine -- west build: making build dir /workdir/build pristine -- west build: generating a build system Loading Zephyr default modules (Zephyr base). -- Application: /workdir/LAB_CI -- CMake version: 3.28.3 -- Found Python3: /opt/python/venv/bin/python3 (found suitable version "3.12.3", minimum required is "3.10") found components: Interpreter -- Cache files will be written to: /home/user/.cache/zephyr -- Zephyr version: 4.3.0-rc1 (/workdir/zephyr) -- Found west (found suitable version "1.5.0", minimum required is "0.14.0") CMake Error at /workdir/zephyr/cmake/modules/boards.cmake:285 (message): Board qualifiers `/nrf5340/cpuapp/ns` for board `nrf7002dk` not found. Please specify a valid board target. Valid board targets for nrf7002dk are: nrf7002dk/nrf5340/cpuapp nrf7002dk/nrf5340/cpuapp/nrf7001 nrf7002dk/nrf5340/cpunet Call Stack (most recent call first): /workdir/zephyr/cmake/modules/zephyr_default.cmake:131 (include) /workdir/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include) /workdir/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate) CMakeLists.txt:2 (find_package) -- Configuring incomplete, errors occurred! FATAL ERROR: command exited with status 1: /usr/bin/cmake -DWEST_PYTHON=/opt/python/venv/bin/python3 -B/workdir/build -GNinja -DBOARD=nrf7002dk/nrf5340/cpuapp/ns -S/workdir/LAB_CI