Skip to content

Commit 552149a

Browse files
committed
[nrf noup] tests: bluetooth: tester: build with sysbuild
make hci_ipc config file generic. Sysbuild configuration to be adaptable (nRF53/54H) Signed-off-by: Aytürk Düzen <[email protected]>
1 parent 404f3ae commit 552149a

File tree

7 files changed

+91
-8
lines changed

7 files changed

+91
-8
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
CONFIG_IPC_SERVICE=y
2+
CONFIG_MBOX=y
3+
4+
CONFIG_ISR_STACK_SIZE=1024
5+
CONFIG_IDLE_STACK_SIZE=256
6+
CONFIG_MAIN_STACK_SIZE=512
7+
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
8+
CONFIG_IPC_SERVICE_BACKEND_RPMSG_WQ_STACK_SIZE=512
9+
CONFIG_HEAP_MEM_POOL_SIZE=8192
10+
11+
CONFIG_BT=y
12+
CONFIG_BT_HCI_RAW=y
13+
14+
CONFIG_BT_BUF_EVT_RX_COUNT=16
15+
CONFIG_BT_BUF_EVT_RX_SIZE=255
16+
CONFIG_BT_BUF_ACL_RX_SIZE=255
17+
CONFIG_BT_BUF_ACL_TX_SIZE=251
18+
CONFIG_BT_BUF_CMD_TX_SIZE=255
19+
20+
# Host
21+
CONFIG_BT_BROADCASTER=y
22+
CONFIG_BT_PERIPHERAL=y
23+
CONFIG_BT_OBSERVER=y
24+
CONFIG_BT_CENTRAL=y
25+
CONFIG_BT_EXT_ADV=y
26+
CONFIG_BT_PER_ADV=y
27+
CONFIG_BT_PER_ADV_SYNC=y
28+
29+
# Controller
30+
CONFIG_BT_LL_SW_SPLIT=n
31+
CONFIG_BT_LL_SOFTDEVICE=y
32+
CONFIG_BT_CTLR_DATA_LENGTH_MAX=251
33+
CONFIG_BT_CTLR_SCAN_DATA_LEN_MAX=191
34+
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
CONFIG_IPC_SERVICE=y
2+
CONFIG_MBOX=y
3+
4+
CONFIG_ISR_STACK_SIZE=1024
5+
CONFIG_IDLE_STACK_SIZE=256
6+
CONFIG_MAIN_STACK_SIZE=512
7+
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
8+
CONFIG_IPC_SERVICE_BACKEND_RPMSG_WQ_STACK_SIZE=512
9+
CONFIG_HEAP_MEM_POOL_SIZE=8192
10+
11+
CONFIG_BT=y
12+
CONFIG_BT_HCI_RAW=y
13+
14+
CONFIG_BT_BUF_EVT_RX_COUNT=16
15+
CONFIG_BT_BUF_EVT_RX_SIZE=255
16+
CONFIG_BT_BUF_ACL_RX_SIZE=255
17+
CONFIG_BT_BUF_ACL_TX_SIZE=251
18+
CONFIG_BT_BUF_CMD_TX_SIZE=255
19+
20+
# Host
21+
CONFIG_BT_BROADCASTER=y
22+
CONFIG_BT_PERIPHERAL=y
23+
CONFIG_BT_OBSERVER=y
24+
CONFIG_BT_CENTRAL=y
25+
CONFIG_BT_EXT_ADV=y
26+
CONFIG_BT_PER_ADV=y
27+
CONFIG_BT_PER_ADV_SYNC=y
28+
29+
# Controller
30+
CONFIG_BT_LL_SW_SPLIT=n
31+
CONFIG_BT_LL_SOFTDEVICE=y
32+
CONFIG_BT_CTLR_DATA_LENGTH_MAX=251
33+
CONFIG_BT_CTLR_SCAN_DATA_LEN_MAX=191
34+

samples/bluetooth/hci_ipc/prj.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ CONFIG_BT=y
1010
CONFIG_BT_HCI_RAW=y
1111
CONFIG_BT_MAX_CONN=16
1212

13-
1413
# Workaround: Unable to allocate command buffer when using K_NO_WAIT since
1514
# Host number of completed commands does not follow normal flow control.
1615
CONFIG_BT_BUF_CMD_TX_COUNT=10

tests/bluetooth/tester/Kconfig.sysbuild

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ source "share/sysbuild/Kconfig"
55

66
config NET_CORE_BOARD
77
string
8+
default "nrf54h20dk/nrf54h20/cpurad" if "$(BOARD)" = "nrf54h20dk"
89
default "nrf5340dk/nrf5340/cpunet" if "$(BOARD)" = "nrf5340dk"
910
default "nrf5340_audio_dk/nrf5340/cpunet" if "$(BOARD)" = "nrf5340_audio_dk"
1011

File renamed without changes.

tests/bluetooth/tester/sysbuild.cmake

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
if(SB_CONFIG_NET_CORE_IMAGE_HCI_IPC)
5-
# For builds in the nrf5340, we build the netcore image with the controller
6-
75
set(NET_APP hci_ipc)
86
set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/samples/bluetooth/${NET_APP})
97

@@ -13,13 +11,30 @@ if(SB_CONFIG_NET_CORE_IMAGE_HCI_IPC)
1311
BOARD ${SB_CONFIG_NET_CORE_BOARD}
1412
)
1513

16-
set(${NET_APP}_CONF_FILE
17-
${NET_APP_SRC_DIR}/nrf5340_cpunet_iso-bt_ll_sw_split.conf
18-
CACHE INTERNAL ""
19-
)
14+
if(NOT "${SNIPPET}" STREQUAL "bt-ll-sw-split")
15+
if(SB_CONFIG_SOC_NRF5340_CPUAPP)
16+
set(${NET_APP}_CONF_FILE
17+
${NET_APP_SRC_DIR}/nrf5340_cpunet-bt_ll_softdevice.conf
18+
CACHE INTERNAL ""
19+
)
20+
endif()
21+
22+
if(SB_CONFIG_SOC_NRF54H20_CPUAPP)
23+
set(${NET_APP}_CONF_FILE
24+
${NET_APP_SRC_DIR}/nrf54h20_cpurad-bt_ll_softdevice.conf
25+
CACHE INTERNAL ""
26+
)
27+
endif()
28+
else()
29+
message(FATAL_ERROR "HEYYOO2")
30+
set(${NET_APP}_CONF_FILE
31+
${NET_APP_SRC_DIR}/nrf5340_cpunet_iso-bt_ll_sw_split.conf
32+
CACHE INTERNAL ""
33+
)
34+
endif()
2035

2136
set(${NET_APP}_EXTRA_CONF_FILE
22-
${APP_DIR}/nrf5340_hci_ipc_cpunet.conf
37+
${APP_DIR}/hci_ipc_cpunet.conf
2338
CACHE INTERNAL ""
2439
)
2540

0 commit comments

Comments
 (0)