mirror of https://github.com/ArduPilot/ardupilot
build: boards: enable --upload option for linux boards
Make it use rsync command. That's a workaround to allow user using --upload option, which in fact appends the 'rsync' to the command chain. A bad side-effect of this is that the build summary is output twice for a command like 'waf copter --upload'.
This commit is contained in:
parent
374556df22
commit
930f3b4aca
|
@ -269,6 +269,12 @@ class linux(Board):
|
|||
'AP_HAL_Linux',
|
||||
]
|
||||
|
||||
def build(self, bld):
|
||||
super(linux, self).build(bld)
|
||||
if bld.options.upload:
|
||||
waflib.Options.commands.append('rsync')
|
||||
# Avoid infinite recursion
|
||||
bld.options.upload = False
|
||||
|
||||
class minlure(linux):
|
||||
def configure_env(self, cfg, env):
|
||||
|
|
Loading…
Reference in New Issue