Closed ReinhardKeil closed 5 months ago
Hi Reinhard,
My first reaction on your proposal:
Dname
and 'Dvendorattributes on the
package` node for that purpose. At least, it is the way we understood it on ST side and CubeMX currently relies on that understanding to make filtering on applicable packs for a device.requirements
to check the condition of usage: but, so far, it remains at a level of "warning" for our tools. What do we expect as a behavior from an end-user point of view?Maybe the problem statement is the result of a pre-analysis and I don't catch exactly the impacted user flow. Should I maybe watch a record of the weekly session for such clarification?
Hi Maxime,
a pack that only contains software components (no <device>
or <board>
element) cannot be made device or board specific.
The suggestion is to use <requirements>
as a filter for choosing software packs. We have discussed if an explicit request to the pack should bypass that filter or not, but on this behavior is not yet decided. The filter would primarily apply to pack installers, web infra structure, etc. to select the right packs for a solution.
To see the problem that we are addressing, open the Pack Installer of MDK v5. It shows many example packs that are device specific as generic packs.
Yes it would be to an extend a "top-level" condition for a pack.
@ReinhardKeil , I think Maxime is referring to: https://open-cmsis-pack.github.io/Open-CMSIS-Pack-Spec/main/html/pdsc_package_pg.html#element_package
which is more restricted. I do not think these <package>
level attributes are currently used/read by any tools like cpackaget
or the RTE Models.
@jkrech indeed, this is what I was referring to.
As mentioned, the Dname
attribute from package
node is taken into account by STM32CubeMX.
It would be interesting to discuss what is the future of this existing mechanism.
Thanks for pointing to that. I have overlooked that. So perhaps all we need is to extend it to boards.
Aside mdortel proposal above, I would like also to point to the issue https://github.com/Open-CMSIS-Pack/devtools/issues/1178 "hproject.yml a proposal for hardware project" that I hope we can resume soon by providing examples of hcondition
Problem Currently it is impossible to mark a pack device or board specific, except when it contains a
<device>
or<board>
element.Suggested Solution Extend element \<requirements> with child element
<targets>
to filter for devices, boards, and processors.Example:
The element
<target>
could allow the following attributes.The element
<target>
acts as:<conditions>
as the complete content of the pack is only relevant when<target>
specification matches.It should be possible to specify more than one element
<target>
to indicate that more then onedevice
/board
is supported by a pack.