forked from Archive/PX4-Autopilot
Added install target for nuttx.
This commit is contained in:
parent
1668e69011
commit
ad321927e9
|
@ -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()
|
||||||
|
|
||||||
#=============================================================================
|
#=============================================================================
|
||||||
|
|
|
@ -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 :
|
||||||
|
|
Loading…
Reference in New Issue