1cmake_minimum_required(VERSION 3.20.0)
2# Copyright (c) 2025 Renesas Electronics Corporation
3#
4# SPDX-License-Identifier: Apache-2.0
5#
6
7find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
8
9project(openamp_linux_zephyr)
10
11# METAL_MAX_DEVICE_REGIONS is used to give the number of memory regions shared
12# between processors. By default only one region is defined for the vrings
13# and rpmsg buffers. The METAL_MAX_DEVICE_REGIONS has to be redefined to add a
14# second region for the resource table.
15zephyr_compile_definitions(METAL_MAX_DEVICE_REGIONS=2)
16
17target_include_directories(app PRIVATE ${LIBMETAL_INCLUDE_DIR} ${OPENAMP_INCLUDE_DIR} ${PLATFORM_DIR})
18target_include_directories(app PRIVATE src)
19
20target_sources(app PRIVATE src/resource_table.c src/main_remote.c)
21