When compiling with sysbuild and IPC the samples would use the nrf5340_cpunet_iso-bt_ll_sw_split.conf config file, which was incompatible with the sample's host configuration. Instead of using the ISO configuration file, define a hci_ipc overlay in each sample with the necessary configurations that support all host configurations. This commit also updates the sample.yaml files to split configurations for single- and multicore builds, as what needs to be configured for each type is different. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
25 lines
683 B
CMake
25 lines
683 B
CMake
# Copyright (c) 2023 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}_EXTRA_CONF_FILE
|
|
${ZEPHYR_BASE}/samples/bluetooth/peripheral_hr/overlay-bt_ll_sw_split.conf
|
|
CACHE INTERNAL ""
|
|
)
|
|
|
|
native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP})
|
|
endif()
|
|
|
|
native_simulator_set_final_executable(${DEFAULT_IMAGE})
|