1# Copyright (c) 2023 Nordic Semiconductor ASA
2# SPDX-License-Identifier: Apache-2.0
3
4if(SB_CONFIG_NET_CORE_IMAGE_HCI_IPC)
5	# For builds in the nrf5340, we build the netcore image with the controller
6
7	set(NET_APP hci_ipc)
8	set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/samples/bluetooth/${NET_APP})
9
10	ExternalZephyrProject_Add(
11		APPLICATION ${NET_APP}
12		SOURCE_DIR  ${NET_APP_SRC_DIR}
13		BOARD       ${SB_CONFIG_NET_CORE_BOARD}
14	)
15
16	set(${NET_APP}_CONF_FILE
17	 ${NET_APP_SRC_DIR}/nrf5340_cpunet_iso-bt_ll_sw_split.conf
18	 CACHE INTERNAL ""
19	)
20
21	native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP})
22endif()
23
24native_simulator_set_final_executable(${DEFAULT_IMAGE})
25