summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/pciutils/pciutils_3.2.1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-bsp/pciutils/pciutils_3.2.1.bb')
-rw-r--r--meta/recipes-bsp/pciutils/pciutils_3.2.1.bb61
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 @@
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 kmod"
11RDEPENDS_${PN} = "${PN}-ids"
12
13SRC_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
19SRC_URI[md5sum] = "425b1acad6854cc2bbb06ac8e48e76fc"
20SRC_URI[sha256sum] = "12d52b19042e2fd058af12e7d877bbbce72213cb3a0b5ec7ff0703ac09e3dcde"
21
22PARALLEL_MAKE = ""
23
24PCI_CONF_FLAG = "ZLIB=yes DNS=yes SHARED=yes"
25
26# see configure.patch
27do_configure () {
28 (
29 cd lib && \
30 ${PCI_CONF_FLAG} ./configure ${PV} ${datadir} ${TARGET_OS} ${TARGET_ARCH}
31 )
32}
33
34do_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
39export PREFIX = "${prefix}"
40export SBINDIR = "${sbindir}"
41export SHAREDIR = "${datadir}"
42export MANDIR = "${mandir}"
43
44EXTRA_OEMAKE += "${PCI_CONF_FLAG}"
45
46# The configure script breaks if the HOST variable is set
47HOST[unexport] = "1"
48
49do_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
56PACKAGES =+ "pciutils-ids libpci libpci-dev libpci-dbg"
57FILES_pciutils-ids = "${datadir}/pci.ids*"
58FILES_libpci = "${libdir}/libpci.so.*"
59FILES_libpci-dbg = "${libdir}/.debug"
60FILES_libpci-dev = "${libdir}/libpci.a ${libdir}/libpci.la ${libdir}/libpci.so \
61 ${includedir}/pci ${libdir}/pkgconfig"