|
|
|
@ -510,7 +510,7 @@ def configure(cfg):
@@ -510,7 +510,7 @@ def configure(cfg):
|
|
|
|
|
_collect_autoconfig_files(cfg) |
|
|
|
|
|
|
|
|
|
def generate_dronecan_dsdlc(cfg): |
|
|
|
|
dsdlc_gen_path = cfg.bldnode.make_node('modules/libcanard/dsdlc_generated').abspath() |
|
|
|
|
dsdlc_gen_path = cfg.bldnode.make_node('modules/DroneCAN/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/DroneCAN/dronecan_dsdlc/dronecan_dsdlc.py').abspath() |
|
|
|
|
if not os.path.exists(dsdlc_path): |
|
|
|
@ -734,7 +734,7 @@ def _load_pre_build(bld):
@@ -734,7 +734,7 @@ def _load_pre_build(bld):
|
|
|
|
|
return |
|
|
|
|
brd = bld.get_board() |
|
|
|
|
if bld.env.AP_PERIPH: |
|
|
|
|
dsdlc_gen_path = bld.bldnode.make_node('modules/libcanard/dsdlc_generated/include').abspath() |
|
|
|
|
dsdlc_gen_path = bld.bldnode.make_node('modules/DroneCAN/libcanard/dsdlc_generated/include').abspath() |
|
|
|
|
#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): |
|
|
|
|