mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-25 16:51:16 +08:00
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:
1 parent
8013aef4bb
commit
071f45d28a
2 files changed
+10
-1
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user