Skip to content

Commit

Permalink
cmake(bugfix):disable proxy and service source in open-amp
Browse files Browse the repository at this point in the history
since we disable find_package(libmetal) so we need to set
open_amp target include dirs link to metal target

Signed-off-by: xuxin19 <[email protected]>
  • Loading branch information
xuxin930 committed Oct 14, 2024
1 parent b964eee commit ce0873f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openamp/open-amp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand All @@ -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)

0 comments on commit ce0873f

Please sign in to comment.