2018-05-22 17:52:12 +02:00
|
|
|
#
|
|
|
|
# Copyright (c) 2018 Linaro Limited
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
2019-04-19 05:34:03 +02:00
|
|
|
if(CONFIG_LIBMETAL)
|
2018-05-22 17:52:12 +02:00
|
|
|
set(WITH_ZEPHYR 1)
|
|
|
|
set(WITH_ZEPHYR_LIB 1)
|
|
|
|
set(WITH_DOC OFF CACHE BOOL "" FORCE)
|
|
|
|
set(WITH_DEFAULT_LOGGER OFF CACHE BOOL "" FORCE)
|
|
|
|
|
2023-10-11 16:23:38 +02:00
|
|
|
if("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "posix")
|
|
|
|
# When building Zephyr for the POSIX architecture
|
|
|
|
# CMAKE_SYSTEM_PROCESSOR is set to POSIX. We need
|
|
|
|
# to set it instead to "hosted" which is what the
|
|
|
|
# libmetal build specs for such a target.
|
|
|
|
set(CMAKE_SYSTEM_PROCESSOR "hosted")
|
|
|
|
endif()
|
|
|
|
|
2018-05-24 17:30:38 +02:00
|
|
|
add_subdirectory(${CONFIG_LIBMETAL_SRC_PATH} libmetal)
|
2019-04-19 05:34:03 +02:00
|
|
|
endif()
|