mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
cmake remove need for platform px4_add_board_os
- explicitly set TOOLCHAIN on all NuttX targets
This commit is contained in:
committed by
David Sidrane
parent
f22f331e4a
commit
fa0fe4cac6
@@ -168,6 +168,12 @@ function(px4_os_prebuild_targets)
|
||||
REQUIRED OUT
|
||||
ARGN ${ARGN})
|
||||
|
||||
if(PX4_BOARD_LABEL MATCHES "stackcheck")
|
||||
set(NUTTX_CONFIG "stackcheck" CACHE INTERNAL "NuttX config" FORCE)
|
||||
else()
|
||||
set(NUTTX_CONFIG "nsh" CACHE INTERNAL "NuttX config" FORCE)
|
||||
endif()
|
||||
|
||||
add_library(prebuild_targets INTERFACE)
|
||||
target_link_libraries(prebuild_targets INTERFACE nuttx_cxx nuttx_c nuttx_fs nuttx_mm nuttx_sched m gcc)
|
||||
add_dependencies(prebuild_targets DEPENDS nuttx_context uorb_headers)
|
||||
|
||||
Reference in New Issue
Block a user