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