Browse Source

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'.
master
Gustavo Sousa 8 years ago committed by Lucas De Marchi
parent
commit
930f3b4aca
  1. 6
      Tools/ardupilotwaf/boards.py

6
Tools/ardupilotwaf/boards.py

@ -269,6 +269,12 @@ class linux(Board): @@ -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…
Cancel
Save