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
|
|
|
|
|
2021-08-19 03:18:03 -03:00
|
|
|
def configure(cfg):
|
|
|
|
cfg.env.HAL_GCS_ENABLED = 0
|
|
|
|
|
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',
|
Replay: link AP_Avoidance
[864/864] Linking build/bbbmini/tools/Replay
11:47:27 runner ['/usr/lib/ccache/arm-linux-gnueabihf-g++', '-Wl,--gc-sections', '-pthread', 'Tools/Replay/DataFlashFileReader.cpp.34.o', 'Tools/Replay/LR_MsgHandler.cpp.34.o', 'Tools/Replay/LogReader.cpp.34.o', 'Tools/Replay/MsgHandler.cpp.34.o', 'Tools/Replay/Replay.cpp.34.o', '-otools/Replay', '-Wl,-Bstatic', '-Llib', '-lReplay_libs', '-Wl,-Bdynamic', '-lm', '-ldl']
lib/libReplay_libs.a(RC_Channel.cpp.0.o): In function `RC_Channel::do_aux_function_avoid_adsb(RC_Channel::AuxSwitchPos)':
RC_Channel.cpp:(.text._ZN10RC_Channel26do_aux_function_avoid_adsbENS_12AuxSwitchPosE+0x4): undefined reference to `AP::ap_avoidance()'
2021-04-28 22:49:59 -03:00
|
|
|
'AP_Avoidance',
|
2016-06-30 10:45:23 -03:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2016-01-21 18:34:14 -04:00
|
|
|
bld.ap_program(
|
2021-07-05 06:39:16 -03:00
|
|
|
program_groups=['tool','replay'],
|
2016-06-30 10:45:23 -03:00
|
|
|
use=vehicle + '_libs',
|
2015-10-09 11:03:59 -03:00
|
|
|
)
|