diff options
author | Constantin Musca <constantinx.musca@intel.com> | 2012-08-14 15:50:26 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-17 18:04:22 +0100 |
commit | 79512d5ef9e7d586ee996e965a2554813695eaa8 (patch) | |
tree | 324ffe5b7cf5d0c15c9338a5b6bbb75f28a4a157 /meta/recipes-bsp/pciutils/pciutils_3.1.10.bb | |
parent | 1356f8fefd447064700a41029a9eadbbbd6a1540 (diff) | |
download | poky-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.bb | 63 |
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 @@ | |||
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 | DESCRIPTION_pciutils-ids = 'The list of PCI IDs for pciutils' | ||
5 | HOMEPAGE = "http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml" | ||
6 | SECTION = "console/utils" | ||
7 | |||
8 | LICENSE = "GPLv2+" | ||
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | ||
10 | DEPENDS = "zlib" | ||
11 | RDEPENDS_${PN} = "${PN}-ids" | ||
12 | PR = "r0" | ||
13 | |||
14 | SRC_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 | |||
21 | SRC_URI[md5sum] = "3a5d8b2784c8571dc5557efda4a8c157" | ||
22 | SRC_URI[sha256sum] = "f402c2051d9b027799a36f17c5e1750dcb4f07070ec46e79108901d03a83aa75" | ||
23 | |||
24 | PARALLEL_MAKE = "" | ||
25 | |||
26 | PCI_CONF_FLAG = "ZLIB=yes DNS=yes SHARED=yes" | ||
27 | |||
28 | # see configure.patch | ||
29 | do_configure () { | ||
30 | ( | ||
31 | cd lib && \ | ||
32 | ${PCI_CONF_FLAG} ./configure ${PV} ${datadir} ${TARGET_OS} ${TARGET_ARCH} | ||
33 | ) | ||
34 | } | ||
35 | |||
36 | do_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 | |||
41 | export PREFIX = "${prefix}" | ||
42 | export SBINDIR = "${sbindir}" | ||
43 | export SHAREDIR = "${datadir}" | ||
44 | export MANDIR = "${mandir}" | ||
45 | |||
46 | EXTRA_OEMAKE += "${PCI_CONF_FLAG}" | ||
47 | |||
48 | # The configure script breaks if the HOST variable is set | ||
49 | HOST[unexport] = "1" | ||
50 | |||
51 | do_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 | |||
58 | PACKAGES =+ "pciutils-ids libpci libpci-dev libpci-dbg" | ||
59 | FILES_pciutils-ids = "${datadir}/pci.ids*" | ||
60 | FILES_libpci = "${libdir}/libpci.so.*" | ||
61 | FILES_libpci-dbg = "${libdir}/.debug" | ||
62 | FILES_libpci-dev = "${libdir}/libpci.a ${libdir}/libpci.la ${libdir}/libpci.so \ | ||
63 | ${includedir}/pci ${libdir}/pkgconfig" | ||