summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/pciutils/pciutils_3.5.1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-bsp/pciutils/pciutils_3.5.1.bb')
-rw-r--r--meta/recipes-bsp/pciutils/pciutils_3.5.1.bb60
1 files changed, 60 insertions, 0 deletions
diff --git a/meta/recipes-bsp/pciutils/pciutils_3.5.1.bb b/meta/recipes-bsp/pciutils/pciutils_3.5.1.bb
new file mode 100644
index 0000000000..a84efd9ced
--- /dev/null
+++ b/meta/recipes-bsp/pciutils/pciutils_3.5.1.bb
@@ -0,0 +1,60 @@
1SUMMARY = "PCI utilities"
2DESCRIPTION = 'The PCI Utilities package contains a library for portable access \
3to PCI bus configuration space and several utilities based on this library.'
4HOMEPAGE = "http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml"
5SECTION = "console/utils"
6
7LICENSE = "GPLv2+"
8LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
9DEPENDS = "zlib kmod"
10
11SRC_URI = "${KERNELORG_MIRROR}/software/utils/pciutils/pciutils-${PV}.tar.xz \
12 file://configure.patch \
13 file://guess-fix.patch \
14 file://makefile.patch"
15
16SRC_URI[md5sum] = "0879a8f7ac51f4e874cfc6b3521a13cc"
17SRC_URI[sha256sum] = "2bf3a4605a562fb6b8b7673bff85a474a5cf383ed7e4bd8886b4f0939013d42f"
18
19inherit multilib_header
20
21PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'hwdb', '', d)}"
22PACKAGECONFIG[hwdb] = "HWDB=yes,HWDB=no,udev"
23
24PCI_CONF_FLAG = "ZLIB=yes DNS=yes SHARED=yes"
25
26# see configure.patch
27do_configure () {
28 (
29 cd lib && \
30 # EXTRA_OECONF for this recipe could only possibly contain 'HWDB=yes/no', so we put it
31 # before ./configure
32 ${PCI_CONF_FLAG} ${EXTRA_OECONF} ./configure ${PV} ${datadir} ${TARGET_OS} ${TARGET_ARCH}
33 )
34}
35
36export PREFIX = "${prefix}"
37export SBINDIR = "${sbindir}"
38export SHAREDIR = "${datadir}"
39export MANDIR = "${mandir}"
40
41EXTRA_OEMAKE = "-e MAKEFLAGS= ${PCI_CONF_FLAG}"
42
43# The configure script breaks if the HOST variable is set
44HOST[unexport] = "1"
45
46do_install () {
47 oe_runmake DESTDIR=${D} install install-lib
48
49 install -d ${D}${bindir}
50 ln -s ../sbin/lspci ${D}${bindir}/lspci
51
52 oe_multilib_header pci/config.h
53}
54
55PACKAGES =+ "${PN}-ids libpci"
56FILES_${PN}-ids = "${datadir}/pci.ids*"
57FILES_libpci = "${libdir}/libpci.so.*"
58SUMMARY_${PN}-ids = "PCI utilities - device ID database"
59DESCRIPTION_${PN}-ids = "Package providing the PCI device ID database for pciutils."
60RDEPENDS_${PN} += "${PN}-ids"