waf: create build shortcuts for the vehicles

This commit is contained in:
Gustavo Jose de Sousa 2016-01-15 14:14:00 -02:00 committed by Lucas De Marchi
parent 2448ea1611
commit 5f6debd186
2 changed files with 8 additions and 0 deletions

View File

@ -31,6 +31,10 @@ target:
# List all the targets available
waf list
There are also shortcuts for vehicle builds, for example:
# Shortcut for waf --targets ArduCopter
waf copter
By default all the files produced by the build will be inside the build/
subdirectory. The binaries will also be there, with the name identifying
the target board.

View File

@ -185,3 +185,7 @@ def build(bld):
class CheckContext(BuildContext):
'''executes tests after build'''
cmd = 'check'
copter = ardupilotwaf.build_shortcut(targets='ArduCopter')
plane = ardupilotwaf.build_shortcut(targets='ArduPlane')
rover = ardupilotwaf.build_shortcut(targets='APMrover2')