From a583db85ae45959a549df4ace8736e5b0635b0f0 Mon Sep 17 00:00:00 2001 From: Wren Turkal <wt@penguintechs.org> Date: Sun, 12 Jul 2020 02:14:36 -0700 Subject: [PATCH] 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> --- recipes/pciids/recipe.sh | 14 ++++++++++++++ recipes/pciids/recipe.toml | 9 +++++++++ 2 files changed, 23 insertions(+) create mode 100644 recipes/pciids/recipe.sh create mode 100644 recipes/pciids/recipe.toml diff --git a/recipes/pciids/recipe.sh b/recipes/pciids/recipe.sh new file mode 100644 index 000000000..2e1c48bf3 --- /dev/null +++ b/recipes/pciids/recipe.sh @@ -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 +} diff --git a/recipes/pciids/recipe.toml b/recipes/pciids/recipe.toml new file mode 100644 index 000000000..dfacfc509 --- /dev/null +++ b/recipes/pciids/recipe.toml @@ -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/" +""" -- GitLab