Browse Source

waf: ardupilotwaf: add option --upload

That option can (and will by PX4) be used by platforms that support uploading
programs to a connected device.
mission-4.1.18
Gustavo Jose de Sousa 9 years ago committed by Lucas De Marchi
parent
commit
33fce2bfe5
  1. 8
      Tools/ardupilotwaf/ardupilotwaf.py

8
Tools/ardupilotwaf/ardupilotwaf.py

@ -321,11 +321,19 @@ def options(opt): @@ -321,11 +321,19 @@ def options(opt):
'examples. The special group "all" selects all programs.',
)
g.add_option('--upload',
action='store_true',
help='Upload applicable targets to a connected device. Not all ' +
'platforms may support this. Example: `waf copter --upload` ' +
'means "build arducopter and upload it to my board".',
)
g = opt.ap_groups['check']
g.add_option('--check-verbose',
action='store_true',
help='Output all test programs')
def build(bld):
global LAST_IDX
# FIXME: This is done to prevent same task generators being created with

Loading…
Cancel
Save