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:
Gustavo Sousa 2017-06-05 11:00:27 -03:00 committed by Lucas De Marchi
parent 374556df22
commit 930f3b4aca
1 changed files with 6 additions and 0 deletions

View File

@ -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):