mirror of
https://github.com/apache/nuttx.git
synced 2026-05-10 07:18:49 +08:00
openamp: support include the openamp headers in nuttx
copy all the openamp headers to nuttx, make nuttx code can include all the openamp headers to fix the compile error Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
@@ -107,6 +107,16 @@ endif()
|
||||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/open-amp
|
||||
${CMAKE_CURRENT_BINARY_DIR}/open-amp EXCLUDE_FROM_ALL)
|
||||
|
||||
# install nuttx openamp binary dir headers
|
||||
set(OPENAMP_HEADER_DIR ${CMAKE_BINARY_DIR}/include/openamp)
|
||||
file(GLOB headers open-amp/lib/include/openamp/*.h open-amp/lib/remoteproc/*.h
|
||||
open-amp/lib/rpmsg/*h)
|
||||
file(MAKE_DIRECTORY ${OPENAMP_HEADER_DIR})
|
||||
|
||||
foreach(header ${headers})
|
||||
file(COPY ${header} DESTINATION ${OPENAMP_HEADER_DIR})
|
||||
endforeach()
|
||||
|
||||
target_include_directories(
|
||||
open_amp-static PRIVATE $<TARGET_PROPERTY:metal-static,INCLUDE_DIRECTORIES>)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user