build(nuttx): build openamp and link it with the drivers

RPMsg based ttys and filesystems live in NuttX's openamp directory,
which the PX4 build did not compile. Build it and link it with the
driver and memory manager libraries it depends on, guarded by
CONFIG_OPENAMP so boards without RPMsg keep their build and link line.

Co-authored-by: Andre Heinemans <andre.heinemans@nxp.com>
This commit is contained in:
Peter van der PerkandAndre Heinemans authored and Ramon Roche committed 2026-11-06 07:32:53 -08:00
1 parent 8013aef4bb
commit 071f45d28a
2 files changed
+10 -1

No files matched your search

+5 -1
View File
@@ -358,7 +358,11 @@ else()
)
target_link_libraries(nuttx_c INTERFACE nuttx_drivers)
target_link_libraries(nuttx_drivers INTERFACE nuttx_c nuttx_fs)
target_link_libraries(nuttx_drivers INTERFACE nuttx_c nuttx_fs nuttx_mm)
if(CONFIG_OPENAMP)
target_link_libraries(nuttx_drivers INTERFACE nuttx_openamp)
target_link_libraries(nuttx_openamp INTERFACE nuttx_drivers)
endif()
target_link_libraries(nuttx_xx INTERFACE nuttx_c)
target_link_libraries(nuttx_fs INTERFACE nuttx_c nuttx_mm)
+5
View File
@@ -242,6 +242,11 @@ if(CONFIG_NET)
add_nuttx_dir(net net y -D__KERNEL__ all)
endif()
if(CONFIG_OPENAMP)
add_nuttx_dir(openamp openamp y -D__KERNEL__ all)
add_dependencies(nuttx_openamp nuttx_drivers)
endif()
###############################################################################
# NuttX oldconfig: Update a configuration using a provided .config as base
add_custom_target(oldconfig_nuttx