Copter: make binary names arducopter and arducopter-heli

This commit is contained in:
Andrew Tridgell 2017-01-09 20:54:39 +11:00
parent e85df47b06
commit 8dcde8ee92

View File

@ -35,14 +35,16 @@ def build(bld):
],
)
frames = (
'quad', 'heli',
)
for frame in frames:
frame_config = frame.upper().replace('-', '_') + '_FRAME'
bld.ap_program(
program_name='arducopter-%s' % frame,
program_groups=['bin', 'copter'],
use=vehicle + '_libs',
defines=['FRAME_CONFIG=%s' % frame_config],
bld.ap_program(
program_name='arducopter',
program_groups=['bin', 'copter'],
use=vehicle + '_libs',
defines=['FRAME_CONFIG=MULTICOPTER_FRAME'],
)
bld.ap_program(
program_name='arducopter-heli',
program_groups=['bin', 'copter'],
use=vehicle + '_libs',
defines=['FRAME_CONFIG=HELI_FRAME'],
)