Skip to content

Commit 8ca6ac5

Browse files
aescolarrlubos
authored andcommitted
[nrf fromtree] samples ipc_service/multi_endpoint: Enable for nrf5340bsim
Enable this sample for the nrf5340bsim Signed-off-by: Alberto Escolar Piedras <[email protected]> (cherry picked from commit be35bbd)
1 parent e29d517 commit 8ca6ac5

File tree

6 files changed

+28
-3
lines changed

6 files changed

+28
-3
lines changed

samples/subsys/ipc/ipc_service/multi_endpoint/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ cmake_minimum_required(VERSION 3.20.0)
88

99
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
1010

11-
if(NOT CONFIG_BOARD_NRF5340DK_NRF5340_CPUAPP)
11+
if(NOT CONFIG_BOARD_NRF5340DK_NRF5340_CPUAPP AND
12+
NOT CONFIG_BOARD_NRF5340BSIM_NRF5340_CPUAPP )
1213
message(FATAL_ERROR "${BOARD} is not supported for this sample")
1314
endif()
1415

samples/subsys/ipc/ipc_service/multi_endpoint/Kconfig.sysbuild

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ source "share/sysbuild/Kconfig"
77
config NET_CORE_BOARD
88
string
99
default "nrf5340dk/nrf5340/cpunet" if $(BOARD) = "nrf5340dk"
10+
default "nrf5340bsim/nrf5340/cpunet" if $(BOARD) = "nrf5340bsim"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
* Copyright (c) 2024 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include "nrf5340dk_nrf5340_cpuapp.overlay"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
* Copyright (c) 2022 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include "nrf5340dk_nrf5340_cpunet.overlay"

samples/subsys/ipc/ipc_service/multi_endpoint/sample.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,21 @@ common:
1414
- "IPC-service HOST \\[INST 1\\] demo ended\\."
1515
tests:
1616
sample.ipc.multi_endpoint:
17-
platform_allow: nrf5340dk/nrf5340/cpuapp
17+
platform_allow:
18+
- nrf5340dk/nrf5340/cpuapp
19+
- nrf5340bsim/nrf5340/cpuapp
1820
integration_platforms:
1921
- nrf5340dk/nrf5340/cpuapp
22+
- nrf5340bsim/nrf5340/cpuapp
2023
tags: ipc
2124
sysbuild: true
2225
sample.ipc.multi_endpoint.icbmsg:
23-
platform_allow: nrf5340dk/nrf5340/cpuapp
26+
platform_allow:
27+
- nrf5340dk/nrf5340/cpuapp
28+
- nrf5340bsim/nrf5340/cpuapp
2429
integration_platforms:
2530
- nrf5340dk/nrf5340/cpuapp
31+
- nrf5340bsim/nrf5340/cpuapp
2632
tags: ipc
2733
sysbuild: true
2834
extra_args:

samples/subsys/ipc/ipc_service/multi_endpoint/sysbuild.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ ExternalZephyrProject_Add(
1212
SOURCE_DIR ${APP_DIR}/remote
1313
BOARD ${SB_CONFIG_NET_CORE_BOARD}
1414
)
15+
16+
native_simulator_set_child_images(${DEFAULT_IMAGE} remote)
17+
native_simulator_set_final_executable(${DEFAULT_IMAGE})

0 commit comments

Comments
 (0)