2021-08-10 20:44:56 +08:00
|
|
|
cmake_minimum_required(VERSION 3.20.0)
|
2019-07-30 20:21:09 +08:00
|
|
|
# Copyright (c) 2020 STMicroelectronics
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
2020-05-29 12:02:17 +08:00
|
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
2019-07-30 20:21:09 +08:00
|
|
|
|
|
|
|
project(openamp_rsc_table_remote)
|
|
|
|
|
|
|
|
# METAL_MAX_DEVICE_REGIONS is used to give the number of memory regions shared
|
|
|
|
# between processors. By default only one region is defined for the vrings
|
|
|
|
# and rpmsg buffers. The METAL_MAX_DEVICE_REGIONS has to be redifined to add a
|
|
|
|
# second region for the resource table.
|
|
|
|
zephyr_compile_definitions(METAL_MAX_DEVICE_REGIONS=2)
|
|
|
|
|
|
|
|
target_include_directories(app PRIVATE ${LIBMETAL_INCLUDE_DIR} ${OPENAMP_INCLUDE_DIR} ${PLATFORM_DIR})
|
|
|
|
|
|
|
|
target_sources(app PRIVATE src/main_remote.c)
|