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 20 forks source link

How to put conditions to select a file according to hardware specificities ? #217

Closed fred-r closed 1 year ago

fred-r commented 1 year ago

In the current spec, the conditions have a limited scope.

My use-case is:

I planned to use the feature: https://open-cmsis-pack.github.io/Open-CMSIS-Pack-Spec/main/html/pdsc_family_pg.html#element_feature

But it is unclear to me how precise I can be here and I cannot use it in conditions.

mdortel-stm commented 1 year ago

Hi Frederic,

You can reuse what is available for components. If you want to match a family, you have to go through Dname condition attribute, as Dfamily is deprecated. For example: <accept Dname="STM32F4*"/>

Indeed, what you highlight in your link is dedicated to device description.

jkrech commented 1 year ago

@mdortel-stm thanks a lot for responding. @fred-r the <feature>/html/pdsc_family_pg.html#element_feature) is used for display/search purposes rather than for component/file condition purposes. see an example here, where this information is displayed: https://www.keil.com/dd2/stmicroelectronics/stm32f407ietx/ or here you can even search devices based on features: https://developer.arm.com/tools-and-software/embedded/cmsis/cmsis-search Does that answer your question?

jkrech commented 1 year ago

@fred-r can we close this issue or do you expect any changes?

fred-r commented 1 year ago

@jkrech : as you confirmed that we will be able to put conditions on the HW description, this is fine for me.