From d8b2dba2239259e18e51c838ed4dbac2d5e0a407 Mon Sep 17 00:00:00 2001 From: bugobliterator Date: Thu, 11 Nov 2021 16:44:48 +0530 Subject: [PATCH] waf: change to using dronecan instead of uavcan --- wscript | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wscript b/wscript index 7c33fe6406..3f864b96c8 100644 --- a/wscript +++ b/wscript @@ -509,10 +509,10 @@ def configure(cfg): _collect_autoconfig_files(cfg) -def generate_canard_dsdlc(cfg): +def generate_dronecan_dsdlc(cfg): dsdlc_gen_path = cfg.bldnode.make_node('modules/libcanard/dsdlc_generated').abspath() src = cfg.srcnode.ant_glob('modules/DroneCAN/DSDL/* libraries/AP_UAVCAN/dsdl/*', dir=True, src=False) - dsdlc_path = cfg.srcnode.make_node('modules/canard_dsdlc/canard_dsdlc.py').abspath() + dsdlc_path = cfg.srcnode.make_node('modules/DroneCAN/dronecan_dsdlc/dronecan_dsdlc.py').abspath() if not os.path.exists(dsdlc_path): print("Please update submodules with: git submodule update --recursive --init") sys.exit(1) @@ -738,7 +738,7 @@ def _load_pre_build(bld): #check if canard dsdlc directory empty # check if directory exists if not os.path.exists(dsdlc_gen_path) or not os.listdir(dsdlc_gen_path): - generate_canard_dsdlc(bld) + generate_dronecan_dsdlc(bld) if getattr(brd, 'pre_build', None): brd.pre_build(bld)