Skip to content

Commit 590b59e

Browse files
committed
tests: bootloader: kmu: Enabled automatic KMU provisioning
Enabled nrf54l15dk in bootloader/boot_chains. Automatic KMU provisioning is selected. Updated tests of KMU provisioning with simple tests, where pytest is not required - console harnessis used. Signed-off-by: Grzegorz Chwierut <[email protected]>
1 parent b62a067 commit 590b59e

File tree

3 files changed

+49
-9
lines changed

3 files changed

+49
-9
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#
2+
# Copyright (c) 2025 Nordic Semiconductor
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
if SOC_SERIES_NRF54LX
8+
9+
config MCUBOOT_GENERATE_DEFAULT_KMU_KEYFILE
10+
default y if BOOTLOADER_MCUBOOT && MCUBOOT_SIGNATURE_USING_KMU
11+
12+
config SECURE_BOOT_GENERATE_DEFAULT_KMU_KEYFILE
13+
default y if SECURE_BOOT_APPCORE
14+
15+
endif
16+
17+
source "${ZEPHYR_BASE}/share/sysbuild/Kconfig"

tests/subsys/bootloader/boot_chains/testcase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ common:
44
# MCUBoot enabled as well
55
- nrf52840dk/nrf52840
66
- nrf5340dk/nrf5340/cpuapp
7+
- nrf54l15dk/nrf54l15/cpuapp
78
harness: console
89
harness_config:
910
type: one_line
Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,40 @@
11
common:
22
sysbuild: true
3-
timeout: 180
43
tags:
5-
- pytest
64
- mcuboot
75
- kmu
86
- ci_tests_subsys_kmu
97
platform_allow:
108
- nrf54l15dk/nrf54l15/cpuapp
11-
- nrf54lm20pdk/nrf54lm20a/cpuapp
12-
- nrf54lv10dk/nrf54lv10a/cpuapp
13-
harness: pytest
14-
harness_config:
15-
pytest_root:
16-
- "../pytest/test_kmu_provision.py"
179
tests:
18-
mcuboot.kmu.west.provision.basic: {}
10+
mcuboot.kmu.west.provision.basic:
11+
timeout: 180
12+
platform_allow:
13+
- nrf54lm20pdk/nrf54lm20a/cpuapp
14+
- nrf54lv10dk/nrf54lv10a/cpuapp
15+
tags:
16+
- pytest
17+
harness: pytest
18+
harness_config:
19+
pytest_root:
20+
- "../pytest/test_kmu_provision.py"
21+
mcuboot.kmu.west_flash_default_provision:
22+
harness: console
23+
harness_config:
24+
type: one_line
25+
regex:
26+
- "Hello World! (.*)"
27+
extra_args:
28+
- SB_CONFIG_MCUBOOT_GENERATE_DEFAULT_KMU_KEYFILE=y
29+
mcuboot.kmu.west_flash_default_provision_with_b0:
30+
tags:
31+
- nsib
32+
harness: console
33+
harness_config:
34+
type: one_line
35+
regex:
36+
- "Hello World! (.*)"
37+
extra_args:
38+
- SB_CONFIG_SECURE_BOOT_APPCORE=y
39+
- SB_CONFIG_SECURE_BOOT_GENERATE_DEFAULT_KMU_KEYFILE=y
40+
- SB_CONFIG_MCUBOOT_GENERATE_DEFAULT_KMU_KEYFILE=y

0 commit comments

Comments
 (0)