From 1d66a0bc4a8bddeafa59bbc2bb87155f0d72bd5a Mon Sep 17 00:00:00 2001 From: Bowen Wang Date: Tue, 13 Jan 2026 15:47:20 +0800 Subject: [PATCH] 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 --- openamp/open-amp.cmake | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/openamp/open-amp.cmake b/openamp/open-amp.cmake index 97833c858a3..7fabf75cbe6 100644 --- a/openamp/open-amp.cmake +++ b/openamp/open-amp.cmake @@ -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 $)