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