From 9a89f39b494c1d09eb052d7e40d18421b1e25de7 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Thu, 24 May 2018 10:40:40 -0500 Subject: [PATCH] ext: hal: open-amp: Allow for open-amp source to be external Introduce a Kconfig option (CONFIG_OPENAMP_SRC_PATH) that allows us to point to an external copy of open-amp. Signed-off-by: Kumar Gala --- ext/lib/ipc/open-amp/CMakeLists.txt | 2 +- ext/lib/ipc/open-amp/Kconfig | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ext/lib/ipc/open-amp/CMakeLists.txt b/ext/lib/ipc/open-amp/CMakeLists.txt index 9e9f5bc5148..9791cab1272 100644 --- a/ext/lib/ipc/open-amp/CMakeLists.txt +++ b/ext/lib/ipc/open-amp/CMakeLists.txt @@ -10,4 +10,4 @@ set(WITH_LIBMETAL_FIND OFF CACHE BOOL "" FORCE) set(LIBMETAL_INCLUDE_DIR ${ZEPHYR_BINARY_DIR}/ext/hal/libmetal/lib/include) set(LIBMETAL_LIB ${ZEPHYR_BINARY_DIR}/ext/hal/libmetal/lib) -add_subdirectory(open-amp) +add_subdirectory(${CONFIG_OPENAMP_SRC_PATH} open-amp) diff --git a/ext/lib/ipc/open-amp/Kconfig b/ext/lib/ipc/open-amp/Kconfig index 64bb4f8320b..e0b543399a5 100644 --- a/ext/lib/ipc/open-amp/Kconfig +++ b/ext/lib/ipc/open-amp/Kconfig @@ -11,3 +11,10 @@ config OPENAMP default n help This option enables the OpenAMP IPC library + +config OPENAMP_SRC_PATH + string + prompt "OpenAMP library source path" + default "open-amp" + help + This option specifies the path to the source for the open-amp library