ext: hal: libmetal: Allow for libmetal source to be external

Introduce a Kconfig option (CONFIG_LIBMETAL_SRC_PATH) that allows us to
point to an external copy of libmetal.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2018-05-24 10:30:38 -05:00 committed by Kumar Gala
parent c8296594df
commit 7aa3da608e
2 changed files with 8 additions and 1 deletions

View File

@ -9,4 +9,4 @@ set(WITH_ZEPHYR_LIB 1)
set(WITH_DOC OFF CACHE BOOL "" FORCE)
set(WITH_DEFAULT_LOGGER OFF CACHE BOOL "" FORCE)
add_subdirectory(libmetal)
add_subdirectory(${CONFIG_LIBMETAL_SRC_PATH} libmetal)

View File

@ -10,3 +10,10 @@ config LIBMETAL
default n
help
This option enables the libmetal HAL abstraction layer
config LIBMETAL_SRC_PATH
string
prompt "libmetal library source path"
default "libmetal"
help
This option specifies the path to the source for the libmetal library