2013-12-22 13:52:53 +00:00
|
|
|
SUMMARY = "PCI utilities"
|
2010-07-30 08:22:49 +00:00
|
|
|
DESCRIPTION = 'The PCI Utilities package contains a library for portable access \
|
|
|
|
to PCI bus configuration space and several utilities based on this library.'
|
|
|
|
HOMEPAGE = "http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml"
|
|
|
|
SECTION = "console/utils"
|
|
|
|
|
|
|
|
LICENSE = "GPLv2+"
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
2013-07-09 19:39:43 +00:00
|
|
|
DEPENDS = "zlib kmod"
|
2010-07-30 08:22:49 +00:00
|
|
|
|
2014-12-26 09:35:30 +00:00
|
|
|
SRC_URI = "${KERNELORG_MIRROR}/software/utils/pciutils/pciutils-${PV}.tar.xz \
|
2010-07-30 08:22:49 +00:00
|
|
|
file://configure.patch \
|
2011-07-13 08:44:52 +00:00
|
|
|
file://guess-fix.patch \
|
|
|
|
file://makefile.patch"
|
2010-07-30 08:22:49 +00:00
|
|
|
|
2016-01-11 05:58:38 +00:00
|
|
|
SRC_URI[md5sum] = "35763bb1eab7bc9bf6eb6efb72cbc8a1"
|
|
|
|
SRC_URI[sha256sum] = "865554cc5604d1644bd8da38d94845405e2a319a6d5acabc6a0296417684a82a"
|
2010-12-08 04:06:29 +00:00
|
|
|
|
2014-10-30 02:59:18 +00:00
|
|
|
inherit multilib_header
|
|
|
|
|
2014-12-29 12:04:38 +00:00
|
|
|
PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'hwdb', '', d)}"
|
2014-12-26 09:35:31 +00:00
|
|
|
PACKAGECONFIG[hwdb] = "HWDB=yes,HWDB=no,udev"
|
|
|
|
|
2010-07-30 08:22:49 +00:00
|
|
|
PCI_CONF_FLAG = "ZLIB=yes DNS=yes SHARED=yes"
|
|
|
|
|
|
|
|
# see configure.patch
|
|
|
|
do_configure () {
|
|
|
|
(
|
|
|
|
cd lib && \
|
2014-12-26 09:35:31 +00:00
|
|
|
# EXTRA_OECONF for this recipe could only possibly contain 'HWDB=yes/no', so we put it
|
|
|
|
# before ./configure
|
|
|
|
${PCI_CONF_FLAG} ${EXTRA_OECONF} ./configure ${PV} ${datadir} ${TARGET_OS} ${TARGET_ARCH}
|
2010-07-30 08:22:49 +00:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export PREFIX = "${prefix}"
|
|
|
|
export SBINDIR = "${sbindir}"
|
|
|
|
export SHAREDIR = "${datadir}"
|
|
|
|
export MANDIR = "${mandir}"
|
|
|
|
|
|
|
|
EXTRA_OEMAKE += "${PCI_CONF_FLAG}"
|
|
|
|
|
|
|
|
# The configure script breaks if the HOST variable is set
|
|
|
|
HOST[unexport] = "1"
|
|
|
|
|
|
|
|
do_install () {
|
|
|
|
oe_runmake DESTDIR=${D} install install-lib
|
|
|
|
|
|
|
|
install -d ${D}${bindir}
|
|
|
|
ln -s ../sbin/lspci ${D}${bindir}/lspci
|
2014-10-30 02:59:18 +00:00
|
|
|
|
|
|
|
oe_multilib_header pci/config.h
|
2010-07-30 08:22:49 +00:00
|
|
|
}
|
|
|
|
|
2015-04-10 09:30:05 +00:00
|
|
|
PACKAGES =+ "${PN}-ids libpci"
|
2013-12-22 13:52:53 +00:00
|
|
|
FILES_${PN}-ids = "${datadir}/pci.ids*"
|
2010-07-30 08:22:49 +00:00
|
|
|
FILES_libpci = "${libdir}/libpci.so.*"
|
2013-12-22 13:52:53 +00:00
|
|
|
SUMMARY_${PN}-ids = "PCI utilities - device ID database"
|
|
|
|
DESCRIPTION_${PN}-ids = "Package providing the PCI device ID database for pciutils."
|
|
|
|
RDEPENDS_${PN} += "${PN}-ids"
|