mirror of
https://github.com/vcrhonek/hwdata
synced 2025-10-14 02:43:35 +08:00
Get pnp.ids from uefi.org
The database at uefi.org seems to be more accurate and up to date. See https://github.com/vcrhonek/hwdata/issues/4 Thanks to this change 'unoconf' is no longer needed.
This commit is contained in:
14
Makefile
14
Makefile
@@ -115,7 +115,7 @@ iab.txt.downloaded:
|
|||||||
|
|
||||||
pnp.ids.xlsx:
|
pnp.ids.xlsx:
|
||||||
@curl -o $@ \
|
@curl -o $@ \
|
||||||
http://download.microsoft.com/download/7/E/7/7E7662CF-CBEA-470B-A97E-CE7CE0D98DC2/ISA_PNPID_List.xlsx
|
https://www.uefi.org/uefi-pnp-export
|
||||||
|
|
||||||
usb.ids: usb.ids.utf8
|
usb.ids: usb.ids.utf8
|
||||||
dos2unix -n $? $@
|
dos2unix -n $? $@
|
||||||
@@ -130,17 +130,17 @@ iab.txt: iab.txt.utf8
|
|||||||
dos2unix -n $? $@
|
dos2unix -n $? $@
|
||||||
|
|
||||||
pnp.ids.orig: pnp.ids.xlsx
|
pnp.ids.orig: pnp.ids.xlsx
|
||||||
@unoconv --stdout -f csv $? | \
|
grep "class" $? | \
|
||||||
tr ' ' ' ' | \
|
tr ' ' ' ' | \
|
||||||
sed -n \
|
sed -n \
|
||||||
-e 's/^\s*"\s*\(.*\)\s*"/\1/' \
|
-e 's/\s\{2,\}/ /g' \
|
||||||
-e 's/\s\{2,\}/ /g' \
|
-e 's/\&/\&/g' \
|
||||||
-e 's/\s*(used as 2nd pnpid)\s*//' \
|
-e "s/\'/'/g" \
|
||||||
-e 's:^\(.*\)\s*,\s*\([a-zA-Z@]\{3\}\)\s*,\s*\([0-9]\+/[0-9]\+/[0-9]\+\):\2\t\1:p' | \
|
-e 's:^.*<tr class=".*"><td>\(.*\)</td><td>\([a-zA-Z@]\{3\}\).*</td><td>.*$$:\2\t\1:p' | \
|
||||||
sed 's/\s*$$//' | sort -u >$@
|
sed 's/\s*$$//' | sort -u >$@
|
||||||
|
|
||||||
pnp.ids: pnp.ids.orig pnp.ids.patch
|
pnp.ids: pnp.ids.orig pnp.ids.patch
|
||||||
patch -o $@ <pnp.ids.patch
|
patch -p1 -o $@ pnp.ids.orig pnp.ids.patch
|
||||||
|
|
||||||
%.utf8: %.downloaded
|
%.utf8: %.downloaded
|
||||||
@text=`LANG=C file $?`
|
@text=`LANG=C file $?`
|
||||||
|
7
README
7
README
@@ -1,9 +1,4 @@
|
|||||||
To update the various IDs files, run 'make download'.
|
To update the various IDs files, run 'make download'.
|
||||||
Requisities:
|
|
||||||
unoconf - python script using libreoffice to convert all office
|
|
||||||
documents to anything else
|
|
||||||
* used to update pnp.ids from MS database.
|
|
||||||
|
|
||||||
|
|
||||||
Related:
|
Related:
|
||||||
* python binding https://github.com/xsuchy/python-hwdata
|
* python binding https://github.com/xsuchy/python-hwdata
|
||||||
|
Reference in New Issue
Block a user