Skip to content
Snippets Groups Projects
Commit 930f3b4a authored by Gustavo Sousa's avatar Gustavo Sousa Committed by Lucas De Marchi
Browse files

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'.
parent 374556df
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment