1#
2# Copyright (c) 2018 Linaro Limited
3#
4# SPDX-License-Identifier: Apache-2.0
5#
6
7if(CONFIG_OPENAMP)
8set(WITH_ZEPHYR 1)
9set(WITH_ZEPHYR_LIB 1)
10if (CONFIG_OPENAMP_MASTER)
11  set(WITH_VIRTIO_MASTER 1)
12else()
13  set(WITH_VIRTIO_MASTER OFF CACHE BOOL "" FORCE)
14endif()
15if (CONFIG_OPENAMP_SLAVE)
16  set(WITH_VIRTIO_SLAVE 1)
17else()
18  set(WITH_VIRTIO_SLAVE OFF CACHE BOOL "" FORCE)
19endif()
20set(WITH_LIBMETAL_FIND OFF CACHE BOOL "" FORCE)
21set(WITH_PROXY OFF CACHE BOOL "" FORCE)
22set(LIBMETAL_INCLUDE_DIR ${ZEPHYR_BINARY_DIR}/ext/hal/libmetal/lib/include)
23set(LIBMETAL_LIB ${ZEPHYR_BINARY_DIR}/ext/hal/libmetal/lib)
24
25add_subdirectory(${CONFIG_OPENAMP_SRC_PATH} open-amp)
26endif()
27