From 4def01178d1113793f84f7088d962bb70616692e 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platforms/nuttx/cmake/px4_impl_os.cmake b/platforms/nuttx/cmake/px4_impl_os.cmake index 67ce2e7700..ba9005c940 100644 --- a/platforms/nuttx/cmake/px4_impl_os.cmake +++ b/platforms/nuttx/cmake/px4_impl_os.cmake @@ -167,7 +167,9 @@ 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_build uorb_headers) endfunction()