summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/pciutils/pciutils_3.1.10.bb
diff options
context:
space:
mode:
authorConstantin Musca <constantinx.musca@intel.com>2012-08-14 15:50:26 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-17 18:04:22 +0100
commit79512d5ef9e7d586ee996e965a2554813695eaa8 (patch)
tree324ffe5b7cf5d0c15c9338a5b6bbb75f28a4a157 /meta/recipes-bsp/pciutils/pciutils_3.1.10.bb
parent1356f8fefd447064700a41029a9eadbbbd6a1540 (diff)
downloadpoky-79512d5ef9e7d586ee996e965a2554813695eaa8.tar.gz
pciutils: upgrade to 3.1.10
(From OE-Core rev: 8007bbf0bd8ef379340c75370fcdb29e367e5682) Signed-off-by: Constantin Musca <constantinx.musca@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/pciutils/pciutils_3.1.10.bb')
-rw-r--r--meta/recipes-bsp/pciutils/pciutils_3.1.10.bb63
1 files changed, 63 insertions, 0 deletions
diff --git a/meta/recipes-bsp/pciutils/pciutils_3.1.10.bb b/meta/recipes-bsp/pciutils/pciutils_3.1.10.bb
new file mode 100644
index 0000000000..e405101abc
--- /dev/null
+++ b/meta/recipes-bsp/pciutils/pciutils_3.1.10.bb
@@ -0,0 +1,63 @@
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.'
4DESCRIPTION_pciutils-ids = 'The list of PCI IDs for pciutils'
5HOMEPAGE = "http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml"
6SECTION = "console/utils"
7
8LICENSE = "GPLv2+"
9LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
10DEPENDS = "zlib"
11RDEPENDS_${PN} = "${PN}-ids"
12PR = "r0"
13
14SRC_URI = "${KERNELORG_MIRROR}/software/utils/pciutils/pciutils-${PV}.tar.bz2 \
15 file://configure.patch \
16 file://pcimodules-pciutils.diff \
17 file://lib-build-fix.patch \
18 file://guess-fix.patch \
19 file://makefile.patch"
20
21SRC_URI[md5sum] = "3a5d8b2784c8571dc5557efda4a8c157"
22SRC_URI[sha256sum] = "f402c2051d9b027799a36f17c5e1750dcb4f07070ec46e79108901d03a83aa75"
23
24PARALLEL_MAKE = ""
25
26PCI_CONF_FLAG = "ZLIB=yes DNS=yes SHARED=yes"
27
28# see configure.patch
29do_configure () {
30 (
31 cd lib && \
32 ${PCI_CONF_FLAG} ./configure ${PV} ${datadir} ${TARGET_OS} ${TARGET_ARCH}
33 )
34}
35
36do_compile_prepend () {
37 # Avoid this error: ln: failed to create symbolic link `libpci.so': File exists
38 rm -f ${S}/lib/libpci.so
39}
40
41export PREFIX = "${prefix}"
42export SBINDIR = "${sbindir}"
43export SHAREDIR = "${datadir}"
44export MANDIR = "${mandir}"
45
46EXTRA_OEMAKE += "${PCI_CONF_FLAG}"
47
48# The configure script breaks if the HOST variable is set
49HOST[unexport] = "1"
50
51do_install () {
52 oe_runmake DESTDIR=${D} install install-lib
53
54 install -d ${D}${bindir}
55 ln -s ../sbin/lspci ${D}${bindir}/lspci
56}
57
58PACKAGES =+ "pciutils-ids libpci libpci-dev libpci-dbg"
59FILES_pciutils-ids = "${datadir}/pci.ids*"
60FILES_libpci = "${libdir}/libpci.so.*"
61FILES_libpci-dbg = "${libdir}/.debug"
62FILES_libpci-dev = "${libdir}/libpci.a ${libdir}/libpci.la ${libdir}/libpci.so \
63 ${includedir}/pci ${libdir}/pkgconfig"