cmake remove need for platform px4_add_board_os

- explicitly set TOOLCHAIN on all NuttX targets
This commit is contained in:
Daniel Agar
2018-11-23 10:01:03 -05:00
committed by David Sidrane
parent f22f331e4a
commit fa0fe4cac6
40 changed files with 80 additions and 373 deletions

View File

@@ -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)