diff options
Diffstat (limited to 'meta/recipes-bsp/pciutils/pciutils_3.2.1.bb')
-rw-r--r-- | meta/recipes-bsp/pciutils/pciutils_3.2.1.bb | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/meta/recipes-bsp/pciutils/pciutils_3.2.1.bb b/meta/recipes-bsp/pciutils/pciutils_3.2.1.bb new file mode 100644 index 0000000000..6d45d72b17 --- /dev/null +++ b/meta/recipes-bsp/pciutils/pciutils_3.2.1.bb | |||
@@ -0,0 +1,61 @@ | |||
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 kmod" | ||
11 | RDEPENDS_${PN} = "${PN}-ids" | ||
12 | |||
13 | SRC_URI = "${KERNELORG_MIRROR}/software/utils/pciutils/pciutils-${PV}.tar.bz2 \ | ||
14 | file://configure.patch \ | ||
15 | file://lib-build-fix.patch \ | ||
16 | file://guess-fix.patch \ | ||
17 | file://makefile.patch" | ||
18 | |||
19 | SRC_URI[md5sum] = "425b1acad6854cc2bbb06ac8e48e76fc" | ||
20 | SRC_URI[sha256sum] = "12d52b19042e2fd058af12e7d877bbbce72213cb3a0b5ec7ff0703ac09e3dcde" | ||
21 | |||
22 | PARALLEL_MAKE = "" | ||
23 | |||
24 | PCI_CONF_FLAG = "ZLIB=yes DNS=yes SHARED=yes" | ||
25 | |||
26 | # see configure.patch | ||
27 | do_configure () { | ||
28 | ( | ||
29 | cd lib && \ | ||
30 | ${PCI_CONF_FLAG} ./configure ${PV} ${datadir} ${TARGET_OS} ${TARGET_ARCH} | ||
31 | ) | ||
32 | } | ||
33 | |||
34 | do_compile_prepend () { | ||
35 | # Avoid this error: ln: failed to create symbolic link `libpci.so': File exists | ||
36 | rm -f ${S}/lib/libpci.so | ||
37 | } | ||
38 | |||
39 | export PREFIX = "${prefix}" | ||
40 | export SBINDIR = "${sbindir}" | ||
41 | export SHAREDIR = "${datadir}" | ||
42 | export MANDIR = "${mandir}" | ||
43 | |||
44 | EXTRA_OEMAKE += "${PCI_CONF_FLAG}" | ||
45 | |||
46 | # The configure script breaks if the HOST variable is set | ||
47 | HOST[unexport] = "1" | ||
48 | |||
49 | do_install () { | ||
50 | oe_runmake DESTDIR=${D} install install-lib | ||
51 | |||
52 | install -d ${D}${bindir} | ||
53 | ln -s ../sbin/lspci ${D}${bindir}/lspci | ||
54 | } | ||
55 | |||
56 | PACKAGES =+ "pciutils-ids libpci libpci-dev libpci-dbg" | ||
57 | FILES_pciutils-ids = "${datadir}/pci.ids*" | ||
58 | FILES_libpci = "${libdir}/libpci.so.*" | ||
59 | FILES_libpci-dbg = "${libdir}/.debug" | ||
60 | FILES_libpci-dev = "${libdir}/libpci.a ${libdir}/libpci.la ${libdir}/libpci.so \ | ||
61 | ${includedir}/pci ${libdir}/pkgconfig" | ||