NuttX 10.3+ upgrade (#20190)

Co-authored-by: Peter van der Perk <peter.vanderperk@nxp.com>
Co-authored-by: David Sidrane <David.Sidrane@NscDg.com>
Co-authored-by: alexklimaj <alex@arkelectron.com>
This commit is contained in:
Daniel Agar
2022-11-20 20:28:07 -05:00
committed by GitHub
co-authored by Peter van der Perk David Sidrane alexklimaj
parent 45b390b0bf
commit 2cb4ef0629
249 changed files with 2850 additions and 632 deletions
+10 -2
View File
@@ -72,7 +72,7 @@ if (NOT DEFINED CONFIG_BUILD_FLAT AND "${PX4_PLATFORM}" MATCHES "nuttx")
${SRCS_COMMON}
${SRCS_KERNEL}
)
target_link_libraries(uORB_kernel PRIVATE cdev uorb_msgs)
target_link_libraries(uORB_kernel PRIVATE cdev uorb_msgs nuttx_mm)
target_compile_options(uORB_kernel PRIVATE ${MAX_CUSTOM_OPT_LEVEL} -D__KERNEL__)
# User side library in nuttx kernel/protected build
@@ -80,9 +80,17 @@ if (NOT DEFINED CONFIG_BUILD_FLAT AND "${PX4_PLATFORM}" MATCHES "nuttx")
${SRCS_COMMON}
${SRCS_USER}
)
elseif("${PX4_PLATFORM}" MATCHES "nuttx")
# Library for NuttX (flat build, posix...)
px4_add_library(uORB
${SRCS_COMMON}
${SRCS_KERNEL}
)
target_link_libraries(uORB PRIVATE cdev nuttx_mm)
else()
# Library for all other targets (flat build, posix...)
# Library for all other targets (posix...)
px4_add_library(uORB
${SRCS_COMMON}
${SRCS_KERNEL}