Added install target for nuttx.

This commit is contained in:
James Goppert 2015-09-11 06:38:39 -04:00
parent 1668e69011
commit ad321927e9
2 changed files with 7 additions and 2 deletions

View File

@ -111,6 +111,7 @@ function(px4_nuttx_add_firmware)
DEPENDS ${EXE} DEPENDS ${EXE}
) )
endif() endif()
add_custom_target(build_firmware ALL DEPENDS ${OUT})
endfunction() endfunction()
#============================================================================= #=============================================================================

View File

@ -27,12 +27,16 @@ target_link_libraries(firmware_nuttx
apps nuttx nosys m gcc apps nuttx nosys m gcc
-Wl,--end-group) -Wl,--end-group)
px4_nuttx_add_firmware(OUT ${CMAKE_CURRENT_BINARY_DIR}/fw_main.px4 set(fw_file ${CMAKE_CURRENT_BINARY_DIR}/${OS}-${BOARD}-${LABEL}.px4)
px4_nuttx_add_firmware(OUT ${fw_file}
EXE ${CMAKE_CURRENT_BINARY_DIR}/firmware_nuttx EXE ${CMAKE_CURRENT_BINARY_DIR}/firmware_nuttx
${config_firmware_options} ${config_firmware_options}
) )
px4_add_upload(OUT upload OS ${OS} BOARD ${BOARD} px4_add_upload(OUT upload OS ${OS} BOARD ${BOARD}
BUNDLE ${CMAKE_CURRENT_BINARY_DIR}/fw_main.px4) BUNDLE ${fw_file})
install(FILES ${fw_file} DESTINATION .)
# vim: set noet ft=cmake fenc=utf-8 ff=unix : # vim: set noet ft=cmake fenc=utf-8 ff=unix :