diff options
Diffstat (limited to 'meta/recipes-bsp/pciutils/pciutils_3.12.0.bb')
-rw-r--r-- | meta/recipes-bsp/pciutils/pciutils_3.12.0.bb | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/meta/recipes-bsp/pciutils/pciutils_3.12.0.bb b/meta/recipes-bsp/pciutils/pciutils_3.12.0.bb new file mode 100644 index 0000000000..2db0895bf4 --- /dev/null +++ b/meta/recipes-bsp/pciutils/pciutils_3.12.0.bb | |||
@@ -0,0 +1,54 @@ | |||
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 | HOMEPAGE = "https://mj.ucw.cz/sw/pciutils/" | ||
5 | SECTION = "console/utils" | ||
6 | |||
7 | LICENSE = "GPL-2.0-or-later" | ||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | ||
9 | # Can drop make-native when all systems have make 4.3 | ||
10 | # https://git.savannah.gnu.org/cgit/make.git/commit/?id=b90fabc8d6f34fb37d428dc0fb1b8b1951a9fbed | ||
11 | # causes space issues in lib/libpci.pc | ||
12 | DEPENDS = "make-native" | ||
13 | |||
14 | SRC_URI = "${KERNELORG_MIRROR}/software/utils/pciutils/pciutils-${PV}.tar.xz" | ||
15 | SRC_URI[sha256sum] = "f185d116d5ff99b797497efce8f19f1ee8ccc5a668b97a159e3d13472f674154" | ||
16 | |||
17 | inherit multilib_header pkgconfig update-alternatives | ||
18 | |||
19 | PACKAGECONFIG ??= "hwdb kmod zlib" | ||
20 | PACKAGECONFIG[hwdb] = "HWDB=yes,HWDB=no,udev" | ||
21 | PACKAGECONFIG[kmod] = "LIBKMOD=yes,LIBKMOD=no,kmod" | ||
22 | PACKAGECONFIG[zlib] = "ZLIB=yes,ZLIB=no,zlib" | ||
23 | |||
24 | # Configuration options | ||
25 | EXTRA_OEMAKE += "${PACKAGECONFIG_CONFARGS} DNS=yes SHARED=yes" | ||
26 | # Construct a HOST that matches what lib/configure expects | ||
27 | EXTRA_OEMAKE += "HOST="${HOST_ARCH}-${HOST_OS}"" | ||
28 | # Toolchain. We need to pass CFLAGS via CC as this is the only variable | ||
29 | # available to the caller without clobbering assignments (notably, -fPIC) | ||
30 | EXTRA_OEMAKE += "CC="${CC} ${CFLAGS}" AR="${AR}" STRIP= LDFLAGS="${LDFLAGS}"" | ||
31 | # Paths | ||
32 | EXTRA_OEMAKE += "PREFIX=${prefix} LIBDIR=${libdir} SBINDIR=${sbindir} SHAREDIR=${datadir} MANDIR=${mandir}" | ||
33 | |||
34 | do_install () { | ||
35 | oe_runmake DESTDIR=${D} install install-lib | ||
36 | |||
37 | install -d ${D}${bindir} | ||
38 | |||
39 | oe_multilib_header pci/config.h | ||
40 | } | ||
41 | |||
42 | PACKAGES =+ "${PN}-ids libpci" | ||
43 | |||
44 | FILES:${PN}-ids = "${datadir}/pci.ids*" | ||
45 | SUMMARY:${PN}-ids = "PCI utilities - device ID database" | ||
46 | DESCRIPTION:${PN}-ids = "Package providing the PCI device ID database for pciutils." | ||
47 | RDEPENDS:${PN} += "${PN}-ids" | ||
48 | |||
49 | FILES:libpci = "${libdir}/libpci.so.*" | ||
50 | # The versioned symbols in libpci appear to be causing relocations | ||
51 | INSANE_SKIP:libpci += "textrel" | ||
52 | |||
53 | ALTERNATIVE:${PN} = "lspci" | ||
54 | ALTERNATIVE_PRIORITY = "100" | ||