Add support for running the audio BSIM tests on the nrf5340bsim board. This expands the tests we run in CI. To support all tests with the hci_ipc sample for the netcore, it is updated to support a bit more while still fitting on the netcore on the nRF5340 series. The behavior of advertisement seems to differ a little bit, which required the bap_unicast_server_test.c to update how it restarts advertisements. Two broadcast tests that are passing on the nRF52 BSIM is also failing due an assert. This should be investigated at a later time. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
27 lines
735 B
CMake
27 lines
735 B
CMake
# Copyright (c) 2023-2024 Nordic Semiconductor ASA
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
if(SB_CONFIG_NET_CORE_IMAGE_HCI_IPC)
|
|
# For builds in the nrf5340, we build the netcore image with the controller
|
|
|
|
set(NET_APP hci_ipc)
|
|
set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/samples/bluetooth/${NET_APP})
|
|
|
|
ExternalZephyrProject_Add(
|
|
APPLICATION ${NET_APP}
|
|
SOURCE_DIR ${NET_APP_SRC_DIR}
|
|
BOARD ${SB_CONFIG_NET_CORE_BOARD}
|
|
)
|
|
|
|
set(${NET_APP}_CONF_FILE
|
|
${NET_APP_SRC_DIR}/nrf5340_cpunet_iso-bt_ll_sw_split.conf
|
|
CACHE INTERNAL ""
|
|
)
|
|
|
|
native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP})
|
|
endif()
|
|
|
|
native_simulator_set_final_executable(${DEFAULT_IMAGE})
|
|
|
|
|
|
native_simulator_set_primary_mcu_index(${DEFAULT_IMAGE} ${NET_APP})
|