3.1.25.2.2. waf_tools.hcg.process_hcg
- waf_tools.hcg.process_hcg(self: task_gen, node: Node) int
Create a HALCoGen code generation task from a
.hcgsource node.Parses the
.hcgXML file to discover all generated outputs, loads the remove-list from the YAML file specified byself.remove, resolves the corresponding.dildevice file and creates anhcg_compilertask that performs the actual code generation.A copy of the FreeRTOS sources is provided in the repository. Therefore the generated FreeRTOS sources are not needed and these files must be removed as otherwise the wrong files may be included.
The only information needed from the generated sources is the
configCPU_CLOCK_HZ. This information is extracted from the sources (seehcg_compiler.run()for details) and written into the configuration headerconfig_cpu_clock_hz.hIf the
corasmfeatures are active on the task generator, the generated source files are appended toself.sourceso that they are compiled in subsequent build steps. A.clang-formatfile disabling formatting is placed in the output directory to prevent accidental reformatting of generated code.- Parameters:
self – The task generator instance.
node – The
.hcgsource node that triggered this extension handler.
- Returns:
0 on success, 1 on failure.