Skip to content

[packchk] Validation error M371 for custom device feature type "LGA" #2363

@ZigaMahne

Description

@ZigaMahne

Describe the bug
PackChk reports an error when validating a PDSC file that uses a newly introduced device feature type LGA.
A device family pack includes a *.pdsc file that defines a device with the following feature entry:
<feature type="LGA" n="141"/>

When generating the pack locally, PackChk fails with an error indicating that LGA is an unknown DeviceFeatureTypeEnum value.

It appears that the XML schema has been updated to replace DeviceFeatureTypeEnum with xs:string, allowing arbitrary feature type strings. However, PackChk validation does not reflect this schema change and still enforces the previous enumeration.

To Reproduce

  1. Use a device family pack containing a *.pdsc file.
  2. Ensure the PDSC defines a device with a feature entry similar to:
<device Dname="DeviceName">
  ...
  <feature type="LGA" n="141"/>
</device>
  1. Run PackChk on the PDSC file.
  2. Observe the validation error:
*** ERROR M371: <path-to-pdsc> (Line XXX)
  Device Feature for '<DeviceName>': 'LGA' unknown.

Expected behavior
PackChk should accept feature type="LGA" as valid if the XML schema change (replacing DeviceFeatureTypeEnum with xs:string) is intentional and officially supported.

If arbitrary feature types are now allowed by the schema, PackChk should not reject values outside the historical enumeration

Environment (please complete the following information):

  • PackChk 1.4.4
  • OS: windows

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions