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_DRIVER 1) 12else() 13 set(WITH_VIRTIO_DRIVER OFF CACHE BOOL "" FORCE) 14endif() 15if (CONFIG_OPENAMP_SLAVE) 16 set(WITH_VIRTIO_DEVICE 1) 17else() 18 set(WITH_VIRTIO_DEVICE OFF CACHE BOOL "" FORCE) 19endif() 20if (CONFIG_OPENAMP_WITH_DCACHE) 21 set(WITH_DCACHE 1) 22endif() 23set(WITH_LIBMETAL_FIND OFF CACHE BOOL "" FORCE) 24set(WITH_PROXY OFF CACHE BOOL "" FORCE) 25set(LIBMETAL_INCLUDE_DIR ${ZEPHYR_BINARY_DIR}/ext/hal/libmetal/lib/include) 26set(LIBMETAL_LIB ${ZEPHYR_BINARY_DIR}/ext/hal/libmetal/lib) 27 28add_subdirectory(${CONFIG_OPENAMP_SRC_PATH} open-amp) 29endif() 30