Skip to content

Add condition attribute to board, device and part elements #236

@silviooliva

Description

@silviooliva

The condition element can be used to create dependency rules using several attributes defined in the standard for other elements.
E.g.:

  • Dvendor, Dname, … attributes can be used for creating a dependency rule on a <device> element
  • Cvendor, Cbundle, .. attributes can be used for creating a dependency rule on a <component> element
  • Bvendor, Bname, .. attributes can be used for creating a dependency rule on a <board> element
  • Hvendor, Hname attributes can be used for creating a dependency rule on a <part> element

At present, in the standard, among the <device>, the <component>, the <board> and the <part> elements, only the <component> has the attribute condition.
Hence, a condition can be used only to create a dependency rule between a <component> element and the other elements (another <component>, a <device>, a <board> and a <part>).
No other kind of dependencies can be created.
E.g.: there is no way to describe in the PDSC file the dependency between boards (e.g. a daughter board working only when mounted on a specific mother board) or between a board and a part or a device (and vice-versa).

Adding the condition attribute also to board, device and part elements, could allow a pack developer to have all the tools in the standard for describing all the possible dependencies among the defined elements.

Metadata

Metadata

Labels

In DiscussionDiscussion for this issue is open and ongoingenhancementNew feature or request

Projects

Status

For Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions