Add configuable shared memory address for openAMP samples. There is a plan to add more platforms supported for openAMP in zephyr. Each platform can specify the shared memory address and device by device tree and add it's support in openAMP samples. Signed-off-by: Karl Zhang <karl.zhang@linaro.org> Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
17 lines
558 B
CMake
17 lines
558 B
CMake
cmake_minimum_required(VERSION 3.13.1)
|
|
# Copyright (c) 2018 Nordic Semiconductor ASA
|
|
# Copyright (c) 2019 Linaro Limited
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
if(("${BOARD}" STREQUAL "lpcxpresso54114_m0"))
|
|
message(INFO " ${BOARD} compile as slave in this sample")
|
|
else()
|
|
message(FATAL_ERROR "${BOARD} was not supported for this sample")
|
|
endif()
|
|
|
|
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
|
|
project(openamp_remote)
|
|
|
|
target_sources(app PRIVATE src/main.c)
|
|
target_include_directories(app PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/..)
|