1# Copyright (c) 2024 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  native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP})
17endif()
18
19native_simulator_set_final_executable(${DEFAULT_IMAGE})
20