summaryrefslogtreecommitdiff
path: root/meta/recipes-bsp/pciutils/pciutils_3.2.0.bb
diff options
context:
space:
mode:
authorIonut Radu <ionutx.radu@intel.com>2013-05-09 14:17:40 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-12 09:37:11 +0100
commit5d8dd6ec550764b89754812f0d06cc2baa707a1e (patch)
tree0107a8f4d7f59fcb101cda8fc6e004fdc9413fc8 /meta/recipes-bsp/pciutils/pciutils_3.2.0.bb
parent71e83ce29f09678ed5aa67c5edf88e0f24f754f8 (diff)
downloadopenembedded-core-5d8dd6ec550764b89754812f0d06cc2baa707a1e.tar.gz
openembedded-core-5d8dd6ec550764b89754812f0d06cc2baa707a1e.tar.bz2
openembedded-core-5d8dd6ec550764b89754812f0d06cc2baa707a1e.zip
pciutils: updated from 3.1.10 to 3.2.
Signed-off-by: Ionut Radu <ionutx.radu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-bsp/pciutils/pciutils_3.2.0.bb')
-rw-r--r--meta/recipes-bsp/pciutils/pciutils_3.2.0.bb63
1 files changed, 63 insertions, 0 deletions
diff --git a/meta/recipes-bsp/pciutils/pciutils_3.2.0.bb b/meta/recipes-bsp/pciutils/pciutils_3.2.0.bb
new file mode 100644
index 0000000000..602269596b
--- /dev/null
+++ b/meta/recipes-bsp/pciutils/pciutils_3.2.0.bb
@@ -0,0 +1,63 @@
+SUMMARY = "PCI Utilities"
+DESCRIPTION = 'The PCI Utilities package contains a library for portable access \
+to PCI bus configuration space and several utilities based on this library.'
+DESCRIPTION_pciutils-ids = 'The list of PCI IDs for pciutils'
+HOMEPAGE = "http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml"
+SECTION = "console/utils"
+
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
+DEPENDS = "zlib"
+RDEPENDS_${PN} = "${PN}-ids"
+PR = "r0"
+
+SRC_URI = "${KERNELORG_MIRROR}/software/utils/pciutils/pciutils-${PV}.tar.bz2 \
+ file://configure.patch \
+ file://pcimodules-pciutils.diff \
+ file://lib-build-fix.patch \
+ file://guess-fix.patch \
+ file://makefile.patch"
+
+SRC_URI[md5sum] = "d73a1b35e5d5efa70e8476d5917de11f"
+SRC_URI[sha256sum] = "b816943bb06c3338d98e2c705e3b76c9e513830f1f15c76d60e549f965d22a35"
+
+PARALLEL_MAKE = ""
+
+PCI_CONF_FLAG = "ZLIB=yes DNS=yes SHARED=yes"
+
+# see configure.patch
+do_configure () {
+ (
+ cd lib && \
+ ${PCI_CONF_FLAG} ./configure ${PV} ${datadir} ${TARGET_OS} ${TARGET_ARCH}
+ )
+}
+
+do_compile_prepend () {
+ # Avoid this error: ln: failed to create symbolic link `libpci.so': File exists
+ rm -f ${S}/lib/libpci.so
+}
+
+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
+}
+
+PACKAGES =+ "pciutils-ids libpci libpci-dev libpci-dbg"
+FILES_pciutils-ids = "${datadir}/pci.ids*"
+FILES_libpci = "${libdir}/libpci.so.*"
+FILES_libpci-dbg = "${libdir}/.debug"
+FILES_libpci-dev = "${libdir}/libpci.a ${libdir}/libpci.la ${libdir}/libpci.so \
+ ${includedir}/pci ${libdir}/pkgconfig"