Add recipe for the pci.ids db.

This database contains a very comprehensive list of PCI
devices and IDs to make more sense of them. The `lspci`
tool in Linux uses this as it's source of data as well.

Signed-off-by: Wren Turkal <wt@penguintechs.org>
This commit is contained in:
Wren Turkal 2020-07-12 02:14:36 -07:00
parent 9a60468f0f
commit a583db85ae
2 changed files with 23 additions and 0 deletions

14
recipes/pciids/recipe.sh Normal file
View File

@ -0,0 +1,14 @@
GIT=https://github.com/pciutils/pciids.git
function recipe_build {
skip=1
}
function recipe_stage {
dest="$(realpath $1)"
install -d "${dest}/share/misc/"
install pci.ids "${dest}/share/misc/"
skip=1
}

View File

@ -0,0 +1,9 @@
[source]
git = "https://github.com/pciutils/pciids.git"
[build]
template = "custom"
script = """
install -d "${COOKBOOK_STAGE}/share/misc/"
install "${COOKBOOK_BUILD}"/pci.ids "${COOKBOOK_STAGE}/share/misc/"
"""