mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Add upload command support for Raspberry Pi build.
This commit is contained in:
parent
9b66cbd2d9
commit
2ec1c53679
6
boards/px4/raspberrypi/cmake/upload.cmake
Normal file
6
boards/px4/raspberrypi/cmake/upload.cmake
Normal file
@ -0,0 +1,6 @@
|
||||
add_custom_target(upload
|
||||
COMMAND rsync -arh --progress ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} ${PX4_SOURCE_DIR}/posix-configs/rpi/*.config ${PX4_SOURCE_DIR}/ROMFS pi@"$ENV{AUTOPILOT_HOST}":/home/pi/px4
|
||||
DEPENDS px4
|
||||
COMMENT "uploading px4"
|
||||
USES_TERMINAL
|
||||
)
|
||||
Loading…
x
Reference in New Issue
Block a user