Open-CMSIS-Pack / Open-CMSIS-Pack-Spec

Common Microcontroller Software Interface Standard - Pack(age) based distribution system
https://open-cmsis-pack.github.io/Open-CMSIS-Pack-Spec/
Apache License 2.0
54 stars 22 forks source link

Allow components that only contain a generator #297

Closed ReinhardKeil closed 8 months ago

ReinhardKeil commented 8 months ago

To start a generator, a component may look like this:

  <component generator="CubeMX" Cclass="Device" Cgroup="CubeMX" Cversion="0.9.0">
      <description>Configure device or board with STM32CubeMX</description>
  </component>

It should be therefore accepted to have a component that contains no files.

jkrech commented 8 months ago

The downside of lifting this restriction in the schema is that people may add "empty components". My suggestion previously was to add documentation to the generator component.

<files>
  <file category="doc" name="path/to/generator/CubeMX/generator/flow/documentation.html" />
</files>
ReinhardKeil commented 8 months ago

Works for me. I think we can close this issue then.