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
50 stars 19 forks source link

Allow components that only contain a generator #297

Closed ReinhardKeil closed 3 months ago

ReinhardKeil commented 3 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 3 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 3 months ago

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