mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-02 02:30:35 +08:00
Merge branch 'cmake-2' of github.com:jgoppert/Firmware into cmake-2
This commit is contained in:
@@ -97,4 +97,4 @@ upload: ;
|
||||
package: ;
|
||||
package_source: ;
|
||||
|
||||
.PHONY: clean test upload
|
||||
.PHONY: clean test upload package package_source
|
||||
|
||||
@@ -111,6 +111,7 @@ function(px4_nuttx_add_firmware)
|
||||
DEPENDS ${EXE}
|
||||
)
|
||||
endif()
|
||||
add_custom_target(build_firmware ALL DEPENDS ${OUT})
|
||||
endfunction()
|
||||
|
||||
#=============================================================================
|
||||
|
||||
@@ -27,12 +27,16 @@ target_link_libraries(firmware_nuttx
|
||||
apps nuttx nosys m gcc
|
||||
-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
|
||||
${config_firmware_options}
|
||||
)
|
||||
|
||||
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 :
|
||||
|
||||
Reference in New Issue
Block a user