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:
Bowen Wang
2026-01-13 15:47:20 +08:00
committed by GUIDINGLI
parent 4c06a2768d
commit 1d66a0bc4a
+10
View File
@@ -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>)