Skip to content

Commit 5b23fff

Browse files
committed
tests: nrf_auracast: Simplify network core building
Use NRF_DEFAULT_IPC_RADIO to enable building of the hci_ipc radio sample for the network core instead of adding it manually. Signed-off-by: Rubin Gerritsen <[email protected]>
1 parent 274330a commit 5b23fff

File tree

4 files changed

+12
-44
lines changed

4 files changed

+12
-44
lines changed

tests/bluetooth/bsim/nrf_auraconfig/Kconfig.sysbuild

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66

77
source "share/sysbuild/Kconfig"
88

9-
config NET_CORE_BOARD
10-
string
11-
default "nrf5340bsim/nrf5340/cpunet" if $(BOARD_TARGET_STRING) = "NRF5340BSIM_NRF5340_CPUAPP"
12-
9+
config NRF_DEFAULT_IPC_RADIO
10+
bool
11+
default y
1312

1413
config NATIVE_SIMULATOR_PRIMARY_MCU_INDEX
1514
int

tests/bluetooth/bsim/nrf_auraconfig/sysbuild.cmake

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,9 @@
44
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
#
66

7-
if(NOT("${SB_CONFIG_NET_CORE_BOARD}" STREQUAL ""))
8-
set(NET_APP ipc_radio)
9-
set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/../nrf/applications/${NET_APP})
10-
11-
ExternalZephyrProject_Add(
12-
APPLICATION ${NET_APP}
13-
SOURCE_DIR ${NET_APP_SRC_DIR}
14-
BOARD ${SB_CONFIG_NET_CORE_BOARD}
15-
)
16-
17-
set(${NET_APP}_CONF_FILE
18-
${NET_APP_SRC_DIR}/overlay-bt_hci_ipc.conf
19-
prj.conf
20-
CACHE INTERNAL "")
21-
22-
native_simulator_set_primary_mcu_index(${DEFAULT_IMAGE} ${NET_APP})
23-
24-
native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP})
7+
if (SB_CONFIG_NET_CORE_BOARD)
8+
native_simulator_set_primary_mcu_index(${DEFAULT_IMAGE} ${SB_CONFIG_NETCORE_IMAGE_NAME})
9+
native_simulator_set_child_images(${DEFAULT_IMAGE} ${SB_CONFIG_NETCORE_IMAGE_NAME})
2510
endif()
2611

2712
native_simulator_set_final_executable(${DEFAULT_IMAGE})

tests/bluetooth/bsim/nrf_auraconfig/tester/Kconfig.sysbuild

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66

77
source "share/sysbuild/Kconfig"
88

9-
config NET_CORE_BOARD
10-
string
11-
default "nrf5340bsim/nrf5340/cpunet" if $(BOARD_TARGET_STRING) = "NRF5340BSIM_NRF5340_CPUAPP"
12-
9+
config NRF_DEFAULT_IPC_RADIO
10+
bool
11+
default y
1312

1413
config NATIVE_SIMULATOR_PRIMARY_MCU_INDEX
1514
int

tests/bluetooth/bsim/nrf_auraconfig/tester/sysbuild.cmake

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,9 @@
44
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
#
66

7-
if(NOT("${SB_CONFIG_NET_CORE_BOARD}" STREQUAL ""))
8-
set(NET_APP ipc_radio)
9-
set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/../nrf/applications/${NET_APP})
10-
11-
ExternalZephyrProject_Add(
12-
APPLICATION ${NET_APP}
13-
SOURCE_DIR ${NET_APP_SRC_DIR}
14-
BOARD ${SB_CONFIG_NET_CORE_BOARD}
15-
)
16-
17-
set(${NET_APP}_CONF_FILE
18-
${NET_APP_SRC_DIR}/overlay-bt_hci_ipc.conf
19-
prj.conf
20-
CACHE INTERNAL "")
21-
22-
native_simulator_set_primary_mcu_index(${DEFAULT_IMAGE} ${NET_APP})
23-
24-
native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP})
7+
if (SB_CONFIG_NET_CORE_BOARD)
8+
native_simulator_set_primary_mcu_index(${DEFAULT_IMAGE} ${SB_CONFIG_NETCORE_IMAGE_NAME})
9+
native_simulator_set_child_images(${DEFAULT_IMAGE} ${SB_CONFIG_NETCORE_IMAGE_NAME})
2510
endif()
2611

2712
native_simulator_set_final_executable(${DEFAULT_IMAGE})

0 commit comments

Comments
 (0)