Skip to content
Snippets Groups Projects
Commit 8541f4b0 authored by Daniel Agar's avatar Daniel Agar
Browse files

cmake nuttx use defconfig matching config label if available

 - otherwise use default nsh
parent 1c212e3f
No related branches found
No related tags found
No related merge requests found
......@@ -115,8 +115,8 @@ function(px4_os_prebuild_targets)
REQUIRED OUT
ARGN ${ARGN})
if(PX4_BOARD_LABEL MATCHES "stackcheck")
set(NUTTX_CONFIG "stackcheck" CACHE INTERNAL "NuttX config" FORCE)
if(EXISTS ${PX4_BOARD_DIR}/nuttx-config/${PX4_BOARD_LABEL})
set(NUTTX_CONFIG "${PX4_BOARD_LABEL}" CACHE INTERNAL "NuttX config" FORCE)
else()
set(NUTTX_CONFIG "nsh" CACHE INTERNAL "NuttX config" FORCE)
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment