From ff4eae2c9b2339c5fbea0d3ab2a3fd4e9e3a6ad5 Mon Sep 17 00:00:00 2001 From: Jukka Laitinen Date: Tue, 6 Oct 2020 15:42:39 +0300 Subject: [PATCH] Fix px4_impl_os for protected build For NuttX protected or kernel build, the prebuilds can't contain libraries which are different for kernel and user-space in protected/kerenl builds Signed-off-by: Jukka Laitinen --- platforms/nuttx/cmake/px4_impl_os.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/nuttx/cmake/px4_impl_os.cmake b/platforms/nuttx/cmake/px4_impl_os.cmake index 9627e2785e..d68b4becb7 100644 --- a/platforms/nuttx/cmake/px4_impl_os.cmake +++ b/platforms/nuttx/cmake/px4_impl_os.cmake @@ -177,7 +177,7 @@ function(px4_os_prebuild_targets) endif() add_library(prebuild_targets INTERFACE) - target_link_libraries(prebuild_targets INTERFACE nuttx_xx nuttx_c nuttx_fs nuttx_mm nuttx_sched m gcc) + target_link_libraries(prebuild_targets INTERFACE nuttx_xx m gcc) add_dependencies(prebuild_targets DEPENDS nuttx_context uorb_headers) endfunction()