Skip to content

Commit

Permalink
build: boards: enable --upload option for linux boards
Browse files Browse the repository at this point in the history
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'.
  • Loading branch information
guludo authored and lucasdemarchi committed Jul 2, 2017
1 parent 374556d commit 930f3b4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Tools/ardupilotwaf/boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,12 @@ def configure_env(self, cfg, env):
'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):
Expand Down

0 comments on commit 930f3b4

Please sign in to comment.