waf: ardupilotwaf: add option --upload

That option can (and will by PX4) be used by platforms that support uploading
programs to a connected device.
This commit is contained in:
Gustavo Jose de Sousa 2016-03-02 19:09:58 -03:00 committed by Lucas De Marchi
parent 0329cb14ed
commit 33fce2bfe5

View File

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