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.bb62
1 files changed, 62 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 0000000..852a93e
--- /dev/null
+++ b/meta/recipes-bsp/pciutils/pciutils_3.2.1.bb
@@ -0,0 +1,62 @@
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.'
4HOMEPAGE = "http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml"
5SECTION = "console/utils"
6
7LICENSE = "GPLv2+"
8LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
9DEPENDS = "zlib kmod"
10
11SRC_URI = "${KERNELORG_MIRROR}/software/utils/pciutils/pciutils-${PV}.tar.bz2 \
12 file://configure.patch \
13 file://lib-build-fix.patch \
14 file://guess-fix.patch \
15 file://makefile.patch"
16
17SRC_URI[md5sum] = "425b1acad6854cc2bbb06ac8e48e76fc"
18SRC_URI[sha256sum] = "12d52b19042e2fd058af12e7d877bbbce72213cb3a0b5ec7ff0703ac09e3dcde"
19
20PARALLEL_MAKE = ""
21
22PCI_CONF_FLAG = "ZLIB=yes DNS=yes SHARED=yes"
23
24# see configure.patch
25do_configure () {
26 (
27 cd lib && \
28 ${PCI_CONF_FLAG} ./configure ${PV} ${datadir} ${TARGET_OS} ${TARGET_ARCH}
29 )
30}
31
32do_compile_prepend () {
33 # Avoid this error: ln: failed to create symbolic link `libpci.so': File exists
34 rm -f ${S}/lib/libpci.so
35}
36
37export PREFIX = "${prefix}"
38export SBINDIR = "${sbindir}"
39export SHAREDIR = "${datadir}"
40export MANDIR = "${mandir}"
41
42EXTRA_OEMAKE += "${PCI_CONF_FLAG}"
43
44# The configure script breaks if the HOST variable is set
45HOST[unexport] = "1"
46
47do_install () {
48 oe_runmake DESTDIR=${D} install install-lib
49
50 install -d ${D}${bindir}
51 ln -s ../sbin/lspci ${D}${bindir}/lspci
52}
53
54PACKAGES =+ "${PN}-ids libpci libpci-dev libpci-dbg"
55FILES_${PN}-ids = "${datadir}/pci.ids*"
56FILES_libpci = "${libdir}/libpci.so.*"
57FILES_libpci-dbg = "${libdir}/.debug"
58FILES_libpci-dev = "${libdir}/libpci.a ${libdir}/libpci.la ${libdir}/libpci.so \
59 ${includedir}/pci ${libdir}/pkgconfig"
60SUMMARY_${PN}-ids = "PCI utilities - device ID database"
61DESCRIPTION_${PN}-ids = "Package providing the PCI device ID database for pciutils."
62RDEPENDS_${PN} += "${PN}-ids"