Skip to content

Commit 6eb176a

Browse files
hakehuangkartben
authored andcommitted
samples: ipc_service: remove fatal_error when platform not supported
remove the FATAL_ERROR message, and leave it just as a message. also enhance filter for this case with "1pc0" anmd "1pc1" Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
1 parent c5aacbc commit 6eb176a

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ cmake_minimum_required(VERSION 3.20.0)
99

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

12+
if(CONFIG_INCLUDE_REMOTE_DIR)
1213
set(REMOTE_ZEPHYR_DIR ${CMAKE_CURRENT_BINARY_DIR}/../remote/zephyr)
14+
endif()
1315

1416
if(NOT (CONFIG_BOARD_NRF5340DK_NRF5340_CPUAPP OR
1517
CONFIG_BOARD_NRF5340BSIM_NRF5340_CPUAPP OR
@@ -20,9 +22,10 @@ if(NOT (CONFIG_BOARD_NRF5340DK_NRF5340_CPUAPP OR
2022
CONFIG_BOARD_MIMXRT1180_EVK_MIMXRT1189_CM33
2123
)
2224
)
23-
message(FATAL_ERROR "${BOARD} is not supported for this sample")
25+
message("${BOARD} is not supported for this sample")
2426
endif()
2527

28+
2629
project(ipc_service)
2730

2831
if(CONFIG_INCLUDE_REMOTE_DIR)

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ sample:
22
name: IPC Service example integration (OpenAMP static_vrings backend)
33
tests:
44
sample.ipc.static_vrings:
5-
filter: dt_compat_enabled("zephyr,ipc-openamp-static-vrings")
5+
filter: dt_compat_enabled("zephyr,ipc-openamp-static-vrings") and
6+
dt_nodelabel_enabled("ipc0") and dt_nodelabel_enabled("ipc1")
67
integration_platforms:
78
- nrf5340dk/nrf5340/cpuapp
89
- nrf5340bsim/nrf5340/cpuapp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# SPDX-License-Identifier: Apache-2.0
44

55
if("${SB_CONFIG_NET_CORE_BOARD}" STREQUAL "")
6-
message(FATAL_ERROR
6+
message(
77
"Target ${BOARD} not supported for this sample. "
88
"There is no remote board selected in Kconfig.sysbuild")
99
endif()

0 commit comments

Comments
 (0)