Add upload command support for Raspberry Pi build.

This commit is contained in:
SalimTerryLi 2019-12-02 16:52:08 +08:00 committed by Beat Küng
parent 9b66cbd2d9
commit 2ec1c53679

View 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
)