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 <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2018-05-24 10:40:40 -05:00 committed by Kumar Gala
parent e91b580208
commit 9a89f39b49
2 changed files with 8 additions and 1 deletions

View File

@ -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)

View File

@ -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