Hi all
SBOMs must be created in order to comply with the European Cyber Resilience Act (CRA) directive. Zephyr makes this very easy:
west spdx --init -d BUILD_DIR
west build -d BUILD_DIR -- -DCONFIG_BUILD_OUTPUT_META=y[...]
west spdx -d BUILD_DIR
On a bare Zephyr project this works like a charm. However, when trying the same in a nRF Terminal, I get the following:
$ west spdx --init -d /home/developer/tmp/zbus/work_queue/build/
initializing CMake file-based API prior to build
initialized; run `west build` then run `west spdx`
$west build --build-dir /home/developer/tmp/zbus/work_queue/build /home/developer/tmp/zbus/work_queue --board nrf52840dk/nrf52840 -- -DCONFIG_BUILD_OUTPUT_META=y
...
[6/160] Generating include/generated/zephyr/version.h
-- Zephyr version: 4.0.99 (/home/developer/ncs/v3.0.2/zephyr), build: v4.0.99-ncs1-2
[160/160] Linking C executable zephyr/zephyr.elf
Memory region Used Size Region Size %age Used
FLASH: 42840 B 1 MB 4.09%
RAM: 14512 B 256 KB 5.54%
IDT_LIST: 0 GB 32 KB 0.00%
Generating files from /home/developer/tmp/zbus/work_queue/build/work_queue/zephyr/zephyr.elf for board: nrf52840dk
[10/10] Generating ../merged.hex
$ west spdx -d /home/developer/tmp/zbus/work_queue/build/
parsing CMake Cache file
ERROR: CONFIG_BUILD_OUTPUT_META must be enabled to generate spdx files; bailing
ERROR: SPDX walker failed; bailing
How can I create the SBOMs via Zephyr in nRF?
--
Regards