mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-07-26 16:28:06 +08: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