vcrhonek / hwdata

hwdata contains various hardware identification and configuration data, such as the pci.ids and usb.ids databases.
Other
79 stars 19 forks source link

Add script to process CSV PNP list #32

Closed pinotree closed 10 months ago

pinotree commented 10 months ago

The new CSV format of the PNP UEFI export includes trailing spaces in few ID stringss, which thus end up in the generated pnp.ids file. This may potentially break readers of pnp.ids, which will not get exactly a 3-length string after splitting by Tab.

To solve the problem, introduce a simply helper Python script to process the CSV UEFI file, trimming both the ID and also the company name (few had trailing spaces).


This only adds the script and the makefile changes, the actual pnp.ids file was not updated.

vcrhonek commented 10 months ago

LGTM, thank you!