2015-10-09 11:03:59 -03:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# encoding: utf-8
|
|
|
|
|
2016-03-07 18:10:45 -04:00
|
|
|
import boards
|
|
|
|
|
2015-10-09 11:03:59 -03:00
|
|
|
def build(bld):
|
2020-11-09 00:46:35 -04:00
|
|
|
if isinstance(bld.get_board(), boards.chibios) and bld.env['WITH_FATFS'] != '1':
|
|
|
|
# we need a filesystem for replay
|
|
|
|
return
|
|
|
|
|
2016-06-30 10:45:23 -03:00
|
|
|
vehicle = bld.path.name
|
|
|
|
|
|
|
|
bld.ap_stlib(
|
|
|
|
name=vehicle + '_libs',
|
2016-07-25 17:31:08 -03:00
|
|
|
ap_vehicle=vehicle,
|
|
|
|
ap_libraries=bld.ap_common_vehicle_libraries() + [
|
2016-11-23 03:35:07 -04:00
|
|
|
'AP_Beacon',
|
2019-05-08 07:10:14 -03:00
|
|
|
'AP_Arming',
|
2019-11-16 18:47:16 -04:00
|
|
|
'AP_RCMapper',
|
2020-11-09 00:41:28 -04:00
|
|
|
'AP_OSD',
|
2016-06-30 10:45:23 -03:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2016-01-21 18:34:14 -04:00
|
|
|
bld.ap_program(
|
2020-11-15 17:42:27 -04:00
|
|
|
program_groups=['tools','replay'],
|
2016-06-30 10:45:23 -03:00
|
|
|
use=vehicle + '_libs',
|
2015-10-09 11:03:59 -03:00
|
|
|
)
|