From 33fce2bfe55c6fcdc1a6f9e4d25042d99970b44b Mon Sep 17 00:00:00 2001 From: Gustavo Jose de Sousa Date: Wed, 2 Mar 2016 19:09:58 -0300 Subject: [PATCH] waf: ardupilotwaf: add option --upload That option can (and will by PX4) be used by platforms that support uploading programs to a connected device. --- Tools/ardupilotwaf/ardupilotwaf.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Tools/ardupilotwaf/ardupilotwaf.py b/Tools/ardupilotwaf/ardupilotwaf.py index 66bbf1bc7e..d426731799 100644 --- a/Tools/ardupilotwaf/ardupilotwaf.py +++ b/Tools/ardupilotwaf/ardupilotwaf.py @@ -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