ardupilot/mk/upload_firmware.mk
Eugene Agafonov dd22b19ddd mk: add 'upload' target to copy fresh ELF to Linux board using SCP
`make pxf upload` builds ELF and copy it to target
device using scp.

Target hostname should be specified in BOARD_LINUX_HOST variable
2015-09-09 10:05:45 +10:00

12 lines
271 B
Makefile

ifneq ($(BOARD_LINUX_HOST),)
upload: $(SKETCHELF).timestamp-upload
$(SKETCHELF).timestamp-upload: $(SKETCHELF)
scp $(SKETCHELF) $(BOARD_LINUX_HOST):
touch $@
else
upload:
@echo Check your config.mk: BOARD_LINUX_HOST should be defined to upload firmware
exit 1
endif