cmake(bugfix):disable proxy and service source in open-amp

since we disable find_package(libmetal) so we need to set
open_amp target include dirs link to metal target

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
xuxin19 2024-09-09 20:27:06 +08:00 committed by GUIDINGLI
parent 4253001656
commit 0285c0b901
1 changed files with 4 additions and 0 deletions

View File

@ -100,6 +100,7 @@ else()
endif()
set(WITH_LIBMETAL_FIND OFF)
set(WITH_PROXY OFF)
if(NOT CMAKE_SYSTEM_PROCESSOR)
set(CMAKE_SYSTEM_PROCESSOR ${CONFIG_ARCH})
@ -108,4 +109,7 @@ endif()
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/open-amp
${CMAKE_CURRENT_BINARY_DIR}/open-amp EXCLUDE_FROM_ALL)
target_include_directories(
open_amp-static PRIVATE $<TARGET_PROPERTY:metal-static,INCLUDE_DIRECTORIES>)
nuttx_add_external_library(open_amp-static MODE KERNEL)