Skip to content

Commit 78f8120

Browse files
nordic-seglnordicjm
authored andcommitted
tests: benchmarks: multicore: idle_pwm_*: Rework SB_CONFIG_REMOTE_BOARD
Define default REMOTE_BOARD based on build target. Signed-off-by: Sebastian Głąb <[email protected]>
1 parent 9c7f66b commit 78f8120

File tree

8 files changed

+6
-24
lines changed

8 files changed

+6
-24
lines changed

tests/benchmarks/multicore/idle_pwm_led/Kconfig.sysbuild

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
source "${ZEPHYR_BASE}/share/sysbuild/Kconfig"
88

99
config REMOTE_BOARD
10-
string "The board used for remote target"
10+
string
11+
default "$(BOARD)/nrf54h20/cpurad" if SOC_NRF54H20_CPUAPP

tests/benchmarks/multicore/idle_pwm_led/sysbuild.cmake

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,4 @@ ExternalZephyrProject_Add(
1414
SOURCE_DIR ${APP_DIR}/remote
1515
BOARD ${SB_CONFIG_REMOTE_BOARD}
1616
BOARD_REVISION ${BOARD_REVISION}
17-
)
18-
19-
# Add a dependency so that the remote image will be built and flashed first
20-
add_dependencies(idle_pwm_led remote)
21-
# Add dependency so that the remote image is flashed first.
22-
sysbuild_add_dependencies(FLASH idle_pwm_led remote)
17+
)

tests/benchmarks/multicore/idle_pwm_led/sysbuild/nrf54h20dk_nrf54h20_cpurad.conf

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/benchmarks/multicore/idle_pwm_led/testcase.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ common:
88

99
tests:
1010
benchmarks.multicore.idle_pwm_led.nrf54h20dk_cpuapp_cpurad.no_sleep:
11-
extra_args:
12-
SB_CONF_FILE=sysbuild/nrf54h20dk_nrf54h20_cpurad.conf
1311
harness: console
1412
harness_config:
1513
type: multi_line
@@ -22,7 +20,6 @@ tests:
2220
benchmarks.multicore.idle_pwm_led.nrf54h20dk_cpuapp_cpurad.idle:
2321
tags: ppk_power_measure
2422
extra_args:
25-
SB_CONF_FILE=sysbuild/nrf54h20dk_nrf54h20_cpurad.conf
2623
idle_pwm_led_CONF_FILE=prj_s2ram.conf
2724
remote_CONF_FILE=prj_s2ram.conf
2825
idle_pwm_led_CONFIG_TEST_SLEEP_DURATION_MS=500
@@ -36,7 +33,6 @@ tests:
3633
benchmarks.multicore.idle_pwm_led.nrf54h20dk_cpuapp_cpurad.s2ram:
3734
tags: ppk_power_measure
3835
extra_args:
39-
SB_CONF_FILE=sysbuild/nrf54h20dk_nrf54h20_cpurad.conf
4036
idle_pwm_led_CONF_FILE=prj_s2ram.conf
4137
remote_CONF_FILE=prj_s2ram.conf
4238
harness: pytest
@@ -48,7 +44,6 @@ tests:
4844
benchmarks.multicore.idle_pwm_led.nrf54h20dk_cpuapp_cpurad.idle_fast:
4945
tags: ppk_power_measure
5046
extra_args:
51-
SB_CONF_FILE=sysbuild/nrf54h20dk_nrf54h20_cpurad.conf
5247
idle_pwm_led_CONF_FILE=prj_s2ram.conf
5348
remote_CONF_FILE=prj_s2ram.conf
5449
idle_pwm_led_CONFIG_TEST_SLEEP_DURATION_MS=500
@@ -63,7 +58,6 @@ tests:
6358
benchmarks.multicore.idle_pwm_led.nrf54h20dk_cpuapp_cpurad.s2ram_fast:
6459
tags: ppk_power_measure
6560
extra_args:
66-
SB_CONF_FILE=sysbuild/nrf54h20dk_nrf54h20_cpurad.conf
6761
idle_pwm_led_CONF_FILE=prj_s2ram.conf
6862
remote_CONF_FILE=prj_s2ram.conf
6963
idle_pwm_led_DTC_OVERLAY_FILE="boards/nrf54h20dk_nrf54h20_cpuapp_fast_p7_0.overlay"

tests/benchmarks/multicore/idle_pwm_loopback/Kconfig.sysbuild

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
source "${ZEPHYR_BASE}/share/sysbuild/Kconfig"
88

99
config REMOTE_BOARD
10-
string "The board used for remote target"
10+
string
11+
default "$(BOARD)/nrf54h20/cpurad" if SOC_NRF54H20_CPUAPP

tests/benchmarks/multicore/idle_pwm_loopback/sysbuild.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ ExternalZephyrProject_Add(
1414
SOURCE_DIR ${APP_DIR}/remote
1515
BOARD ${SB_CONFIG_REMOTE_BOARD}
1616
BOARD_REVISION ${BOARD_REVISION}
17-
)
17+
)

tests/benchmarks/multicore/idle_pwm_loopback/sysbuild/nrf54h20dk_nrf54h20_cpurad.conf

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/benchmarks/multicore/idle_pwm_loopback/testcase.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ common:
88

99
tests:
1010
benchmarks.multicore.idle_pwm_loopback.nrf54h20dk_cpuapp_cpurad.no_sleep:
11-
extra_args:
12-
SB_CONF_FILE=sysbuild/nrf54h20dk_nrf54h20_cpurad.conf
1311
harness: console
1412
harness_config:
1513
fixture: spi_loopback
@@ -23,7 +21,6 @@ tests:
2321
benchmarks.multicore.idle_pwm_loopback.nrf54h20dk_cpuapp_cpurad.idle:
2422
tags: ppk_power_measure
2523
extra_args:
26-
SB_CONF_FILE=sysbuild/nrf54h20dk_nrf54h20_cpurad.conf
2724
idle_pwm_loopback_CONF_FILE=prj_s2ram.conf
2825
remote_CONF_FILE=prj_s2ram.conf
2926
idle_pwm_loopback_CONFIG_TEST_SLEEP_DURATION_MS=500
@@ -37,7 +34,6 @@ tests:
3734
benchmarks.multicore.idle_pwm_loopback.nrf54h20dk_cpuapp_cpurad.s2ram:
3835
tags: ppk_power_measure
3936
extra_args:
40-
SB_CONF_FILE=sysbuild/nrf54h20dk_nrf54h20_cpurad.conf
4137
idle_pwm_loopback_CONF_FILE=prj_s2ram.conf
4238
remote_CONF_FILE=prj_s2ram.conf
4339
harness: pytest
@@ -48,7 +44,6 @@ tests:
4844

4945
benchmarks.multicore.idle_pwm_loopback.nrf54h20dk_cpuapp_cpurad.no_sleep_fast:
5046
extra_args:
51-
SB_CONF_FILE=sysbuild/nrf54h20dk_nrf54h20_cpurad.conf
5247
idle_pwm_loopback_DTC_OVERLAY_FILE="boards/nrf54h20dk_nrf54h20_cpuapp_fast_p7_1.overlay"
5348
harness: console
5449
harness_config:
@@ -62,7 +57,6 @@ tests:
6257
benchmarks.multicore.idle_pwm_loopback.nrf54h20dk_cpuapp_cpurad.idle_fast:
6358
tags: ppk_power_measure
6459
extra_args:
65-
SB_CONF_FILE=sysbuild/nrf54h20dk_nrf54h20_cpurad.conf
6660
idle_pwm_loopback_CONF_FILE=prj_s2ram.conf
6761
remote_CONF_FILE=prj_s2ram.conf
6862
idle_pwm_loopback_CONFIG_TEST_SLEEP_DURATION_MS=500
@@ -77,7 +71,6 @@ tests:
7771
benchmarks.multicore.idle_pwm_loopback.nrf54h20dk_cpuapp_cpurad.s2ram_fast:
7872
tags: ppk_power_measure
7973
extra_args:
80-
SB_CONF_FILE=sysbuild/nrf54h20dk_nrf54h20_cpurad.conf
8174
idle_pwm_loopback_CONF_FILE=prj_s2ram.conf
8275
remote_CONF_FILE=prj_s2ram.conf
8376
idle_pwm_loopback_DTC_OVERLAY_FILE="boards/nrf54h20dk_nrf54h20_cpuapp_fast_p7_1.overlay"

0 commit comments

Comments
 (0)