Skip to content

Commit 5d8ce35

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

File tree

6 files changed

+23
-1
lines changed

6 files changed

+23
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ cmake_minimum_required(VERSION 3.20.0)
99
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
1010

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ source "share/sysbuild/Kconfig"
77
config REMOTE_BOARD
88
string
99
default "nrf5340dk/nrf5340/cpunet" if $(BOARD) = "nrf5340dk"
10+
default "nrf5340bsim/nrf5340/cpunet" if $(BOARD) = "nrf5340bsim"
1011
default "nrf54l15pdk/nrf54l15/cpuflpr" if $(BOARD) = "nrf54l15pdk"
1112
default "stm32h747i_disco/stm32h747xx/m4" if $(BOARD) = "stm32h747i_disco"
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/icmsg/sample.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@ sample:
22
name: IPC Service example integration (icmsg backend)
33
tests:
44
sample.ipc.icmsg:
5-
platform_allow: nrf5340dk/nrf5340/cpuapp
5+
platform_allow:
6+
- nrf5340dk/nrf5340/cpuapp
7+
- nrf5340bsim/nrf5340/cpuapp
68
integration_platforms:
79
- nrf5340dk/nrf5340/cpuapp
10+
- nrf5340bsim/nrf5340/cpuapp
811
tags: ipc
912
sysbuild: true
1013
harness: console

samples/subsys/ipc/ipc_service/icmsg/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_REMOTE_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)