waf: rename UAVCAN to DroneCAN

This commit is contained in:
Andrew Tridgell 2023-04-07 10:17:10 +10:00
parent 1efd640624
commit 75ed340efa
3 changed files with 5 additions and 5 deletions

View File

@ -435,7 +435,7 @@ class Board:
)
else:
env.AP_LIBRARIES += [
'AP_UAVCAN',
'AP_DroneCAN',
'modules/DroneCAN/libcanard/*.c',
]
if cfg.options.enable_dronecan_tests:

View File

@ -442,7 +442,7 @@ def setup_canmgr_build(cfg):
the build based on the presence of CAN pins in hwdef.dat except for AP_Periph builds'''
env = cfg.env
env.AP_LIBRARIES += [
'AP_UAVCAN',
'AP_DroneCAN',
'modules/DroneCAN/libcanard/*.c',
]
env.INCLUDES += [

View File

@ -678,19 +678,19 @@ def _build_dynamic_sources(bld):
else:
bld(
features='dronecangen',
source=bld.srcnode.ant_glob('modules/DroneCAN/DSDL/* libraries/AP_UAVCAN/dsdl/*', dir=True, src=False),
source=bld.srcnode.ant_glob('modules/DroneCAN/DSDL/* libraries/AP_DroneCAN/dsdl/*', dir=True, src=False),
output_dir='modules/DroneCAN/libcanard/dsdlc_generated/',
name='dronecan',
export_includes=[
bld.bldnode.make_node('modules/DroneCAN/libcanard/dsdlc_generated/include').abspath(),
bld.srcnode.find_dir('modules/DroneCAN/libcanard/').abspath(),
bld.srcnode.find_dir('libraries/AP_UAVCAN/canard/').abspath(),
bld.srcnode.find_dir('libraries/AP_DroneCAN/canard/').abspath(),
]
)
elif bld.env.AP_PERIPH:
bld(
features='dronecangen',
source=bld.srcnode.ant_glob('modules/DroneCAN/DSDL/* libraries/AP_UAVCAN/dsdl/*', dir=True, src=False),
source=bld.srcnode.ant_glob('modules/DroneCAN/DSDL/* libraries/AP_DroneCAN/dsdl/*', dir=True, src=False),
output_dir='modules/DroneCAN/libcanard/dsdlc_generated/',
name='dronecan',
export_includes=[