mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
40a84bc566
[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()'
29 lines
626 B
Python
29 lines
626 B
Python
#!/usr/bin/env python
|
|
# encoding: utf-8
|
|
|
|
import boards
|
|
|
|
def build(bld):
|
|
if isinstance(bld.get_board(), boards.chibios) and bld.env['WITH_FATFS'] != '1':
|
|
# we need a filesystem for replay
|
|
return
|
|
|
|
vehicle = bld.path.name
|
|
|
|
bld.ap_stlib(
|
|
name=vehicle + '_libs',
|
|
ap_vehicle=vehicle,
|
|
ap_libraries=bld.ap_common_vehicle_libraries() + [
|
|
'AP_Beacon',
|
|
'AP_Arming',
|
|
'AP_RCMapper',
|
|
'AP_OSD',
|
|
'AP_Avoidance',
|
|
],
|
|
)
|
|
|
|
bld.ap_program(
|
|
program_groups=['tools','replay'],
|
|
use=vehicle + '_libs',
|
|
)
|