MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / generate

Function generate

Buildscripts/DevicetreeCompiler/source/generator.py:355–361  ·  view source on GitHub ↗
(output_path: str, items: list[object], bindings: list[Binding], config, verbose: bool)

Source from the content-addressed store, hash-verified

353 '''))
354
355def generate(output_path: str, items: list[object], bindings: list[Binding], config, verbose: bool):
356 if not os.path.exists(output_path):
357 os.makedirs(output_path)
358 devicetree_c_filename = os.path.join(output_path, "devicetree.c")
359 generate_devicetree_c(devicetree_c_filename, items, bindings, config, verbose)
360 devicetree_h_filename = os.path.join(output_path, "devicetree.h")
361 generate_devicetree_h(devicetree_h_filename)

Callers 1

mainFunction · 0.70

Calls 4

generate_devicetree_cFunction · 0.85
generate_devicetree_hFunction · 0.85
existsMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected