diff options
Diffstat (limited to 'meta/recipes-bsp/pciutils')
-rw-r--r-- | meta/recipes-bsp/pciutils/pciutils/configure.patch | 56 | ||||
-rw-r--r-- | meta/recipes-bsp/pciutils/pciutils_3.12.0.bb (renamed from meta/recipes-bsp/pciutils/pciutils_3.7.0.bb) | 25 |
2 files changed, 49 insertions, 32 deletions
diff --git a/meta/recipes-bsp/pciutils/pciutils/configure.patch b/meta/recipes-bsp/pciutils/pciutils/configure.patch index e444c13975..0ff151b8cf 100644 --- a/meta/recipes-bsp/pciutils/pciutils/configure.patch +++ b/meta/recipes-bsp/pciutils/pciutils/configure.patch | |||
@@ -1,9 +1,14 @@ | |||
1 | From 6af07e1f812b2444d33ce199308c87e04b2f5dc7 Mon Sep 17 00:00:00 2001 | ||
2 | From: Richard Purdie <rpurdie@linux.intel.com> | ||
3 | Date: Wed, 31 Dec 2008 17:20:38 +0000 | ||
4 | Subject: [PATCH] pciutils: Upgarde 2.2.4 -> 3.0.3 | ||
5 | |||
1 | This patch: | 6 | This patch: |
2 | * ensures we link correctly | 7 | * ensures we link correctly |
3 | * allows us to optionally pass target information to configure rather than using uname | 8 | * allows us to optionally pass target information to configure rather than using uname |
4 | * select linux as the platform in most cases we care about | 9 | * select linux as the platform in most cases we care about |
5 | 10 | ||
6 | This is a merge of various tweaks to allow us to build pciutils including | 11 | This is a merge of various tweaks to allow us to build pciutils including |
7 | work from: | 12 | work from: |
8 | 13 | ||
9 | 7/30/2010 - Qing He <qing.he@intel.com> | 14 | 7/30/2010 - Qing He <qing.he@intel.com> |
@@ -12,24 +17,28 @@ Ionut Radu <ionutx.radu@intel.com> | |||
12 | 2017/6/15 - RP - Cleanups and merging patches | 17 | 2017/6/15 - RP - Cleanups and merging patches |
13 | 18 | ||
14 | Upstream-Status: Inappropriate [embedded specific] | 19 | Upstream-Status: Inappropriate [embedded specific] |
20 | --- | ||
21 | Makefile | 2 +- | ||
22 | lib/configure | 14 ++++++++++---- | ||
23 | 2 files changed, 11 insertions(+), 5 deletions(-) | ||
15 | 24 | ||
16 | Index: pciutils-3.5.6/Makefile | 25 | diff --git a/Makefile b/Makefile |
17 | =================================================================== | 26 | index be23593..aa13be5 100644 |
18 | --- pciutils-3.5.6.orig/Makefile | 27 | --- a/Makefile |
19 | +++ pciutils-3.5.6/Makefile | 28 | +++ b/Makefile |
20 | @@ -96,7 +96,7 @@ example: example.o lib/$(PCILIB) | 29 | @@ -123,7 +123,7 @@ pcilmr$(EXEEXT): pcilmr.o $(LMROBJS) $(COMMON) lib/$(PCIIMPLIB) |
21 | example.o: example.c $(PCIINC) | 30 | pcilmr.o: pcilmr.c $(LMRINC) |
22 | 31 | ||
23 | %: %.o | 32 | %$(EXEEXT): %.o |
24 | - $(CC) $(LDFLAGS) $(TARGET_ARCH) $^ $(LDLIBS) -o $@ | 33 | - $(CC) $(CFLAGS) $(LDFLAGS) $(TARGET_ARCH) $^ $(LDLIBS) -o $@ |
25 | + $(CC) $(LDFLAGS) $(TARGET_ARCH) $^ $(LIB_LDLIBS) $(LDLIBS) -o $@ | 34 | + $(CC) $(CFLAGS) $(LDFLAGS) $(TARGET_ARCH) $^ $(LIB_LDLIBS) $(LDLIBS) -o $@ |
26 | 35 | ||
27 | %.8 %.7 %.5: %.man | 36 | ifdef PCI_OS_WINDOWS |
28 | M=`echo $(DATE) | sed 's/-01-/-January-/;s/-02-/-February-/;s/-03-/-March-/;s/-04-/-April-/;s/-05-/-May-/;s/-06-/-June-/;s/-07-/-July-/;s/-08-/-August-/;s/-09-/-September-/;s/-10-/-October-/;s/-11-/-November-/;s/-12-/-December-/;s/\(.*\)-\(.*\)-\(.*\)/\3 \2 \1/'` ; sed <$< >$@ "s/@TODAY@/$$M/;s/@VERSION@/pciutils-$(VERSION)/;s#@IDSDIR@#$(IDSDIR)#" | 37 | comma := , |
29 | Index: pciutils-3.5.6/lib/configure | 38 | diff --git a/lib/configure b/lib/configure |
30 | =================================================================== | 39 | index d02160b..52c1eee 100755 |
31 | --- pciutils-3.5.6.orig/lib/configure | 40 | --- a/lib/configure |
32 | +++ pciutils-3.5.6/lib/configure | 41 | +++ b/lib/configure |
33 | @@ -9,6 +9,10 @@ echo_n() { | 42 | @@ -9,6 +9,10 @@ echo_n() { |
34 | printf '%s' "$*" | 43 | printf '%s' "$*" |
35 | } | 44 | } |
@@ -38,7 +47,7 @@ Index: pciutils-3.5.6/lib/configure | |||
38 | +IDSDIR=$2 | 47 | +IDSDIR=$2 |
39 | +DNS=yes | 48 | +DNS=yes |
40 | + | 49 | + |
41 | if [ -z "$VERSION" -o -z "$IDSDIR" ] ; then | 50 | if [ -z "$VERSION" ] ; then |
42 | echo >&2 "Please run the configure script from the top-level Makefile" | 51 | echo >&2 "Please run the configure script from the top-level Makefile" |
43 | exit 1 | 52 | exit 1 |
44 | @@ -16,8 +20,8 @@ fi | 53 | @@ -16,8 +20,8 @@ fi |
@@ -56,12 +65,12 @@ Index: pciutils-3.5.6/lib/configure | |||
56 | proc=`/usr/sbin/lsdev -C -c processor -S available -F name | head -1` | 65 | proc=`/usr/sbin/lsdev -C -c processor -S available -F name | head -1` |
57 | cpu=`/usr/sbin/lsattr -F value -l $proc -a type | sed 's/_.*//'` | 66 | cpu=`/usr/sbin/lsattr -F value -l $proc -a type | sed 's/_.*//'` |
58 | else | 67 | else |
59 | - cpu=`uname -m | sed 's/^i.86$/i386/;s/^sun4u$/sparc64/;s/^i86pc$/i386/;s/^BePC$/i386/;s/^BeMac$/powerpc/;s/^BeBox$/powerpc/'` | 68 | - cpu=`uname -m | sed 's/^i.86-AT386/i386/;s/^i.86$/i386/;s/^sun4u$/sparc64/;s/^i86pc$/i386/;s/^BePC$/i386/;s/^BeMac$/powerpc/;s/^BeBox$/powerpc/'` |
60 | + cpu=${4:-`uname -m | sed 's/^i.86$/i386/;s/^sun4u$/sparc64/;s/^i86pc$/i386/;s/^BePC$/i386/;s/^BeMac$/powerpc/;s/^BeBox$/powerpc/'`} | 69 | + cpu=${4:-`uname -m | sed 's/^i.86-AT386/i386/;s/^i.86$/i386/;s/^sun4u$/sparc64/;s/^i86pc$/i386/;s/^BePC$/i386/;s/^BeMac$/powerpc/;s/^BeBox$/powerpc/'`} |
61 | fi | 70 | fi |
62 | if [ "$sys" = "GNU/kFreeBSD" -o "$sys" = "DragonFly" ] | 71 | if [ "$sys" = "DragonFly" ] |
63 | then | 72 | then |
64 | @@ -35,7 +39,7 @@ if [ -z "$HOST" ] ; then | 73 | @@ -43,7 +47,7 @@ if [ -z "$HOST" ] ; then |
65 | then | 74 | then |
66 | sys=cygwin | 75 | sys=cygwin |
67 | fi | 76 | fi |
@@ -70,7 +79,7 @@ Index: pciutils-3.5.6/lib/configure | |||
70 | fi | 79 | fi |
71 | [ -n "$RELEASE" ] && rel="${RELEASE}" | 80 | [ -n "$RELEASE" ] && rel="${RELEASE}" |
72 | # CAVEAT: tr on Solaris is a bit weird and the extra [] is otherwise harmless. | 81 | # CAVEAT: tr on Solaris is a bit weird and the extra [] is otherwise harmless. |
73 | @@ -44,6 +48,8 @@ cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 82 | @@ -52,6 +56,8 @@ cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
74 | sys=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 83 | sys=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
75 | echo " $host $rel $cpu $sys" | 84 | echo " $host $rel $cpu $sys" |
76 | 85 | ||
@@ -79,3 +88,6 @@ Index: pciutils-3.5.6/lib/configure | |||
79 | c=config.h | 88 | c=config.h |
80 | m=config.mk | 89 | m=config.mk |
81 | echo >$c '#define PCI_CONFIG_H' | 90 | echo >$c '#define PCI_CONFIG_H' |
91 | -- | ||
92 | 2.42.0 | ||
93 | |||
diff --git a/meta/recipes-bsp/pciutils/pciutils_3.7.0.bb b/meta/recipes-bsp/pciutils/pciutils_3.12.0.bb index 4f0edc01ed..480a338696 100644 --- a/meta/recipes-bsp/pciutils/pciutils_3.7.0.bb +++ b/meta/recipes-bsp/pciutils/pciutils_3.12.0.bb | |||
@@ -4,16 +4,19 @@ to PCI bus configuration space and several utilities based on this library.' | |||
4 | HOMEPAGE = "http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml" | 4 | HOMEPAGE = "http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml" |
5 | SECTION = "console/utils" | 5 | SECTION = "console/utils" |
6 | 6 | ||
7 | LICENSE = "GPLv2+" | 7 | LICENSE = "GPL-2.0-or-later" |
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" |
9 | DEPENDS = "zlib kmod" | 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 = "zlib kmod make-native" | ||
10 | 13 | ||
11 | SRC_URI = "${KERNELORG_MIRROR}/software/utils/pciutils/pciutils-${PV}.tar.xz \ | 14 | SRC_URI = "${KERNELORG_MIRROR}/software/utils/pciutils/pciutils-${PV}.tar.xz \ |
12 | file://configure.patch" | 15 | file://configure.patch" |
13 | 16 | ||
14 | SRC_URI[sha256sum] = "9d40b97be8b6a2cdf96aead5a61881d1f7e4e0da9544a9bac4fba1ae9dcd40eb" | 17 | SRC_URI[sha256sum] = "f185d116d5ff99b797497efce8f19f1ee8ccc5a668b97a159e3d13472f674154" |
15 | 18 | ||
16 | inherit multilib_header pkgconfig | 19 | inherit multilib_header pkgconfig update-alternatives |
17 | 20 | ||
18 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'hwdb', '', d)}" | 21 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'hwdb', '', d)}" |
19 | PACKAGECONFIG[hwdb] = "HWDB=yes,HWDB=no,udev" | 22 | PACKAGECONFIG[hwdb] = "HWDB=yes,HWDB=no,udev" |
@@ -46,14 +49,16 @@ do_install () { | |||
46 | oe_runmake DESTDIR=${D} install install-lib | 49 | oe_runmake DESTDIR=${D} install install-lib |
47 | 50 | ||
48 | install -d ${D}${bindir} | 51 | install -d ${D}${bindir} |
49 | ln -s ../sbin/lspci ${D}${bindir}/lspci | ||
50 | 52 | ||
51 | oe_multilib_header pci/config.h | 53 | oe_multilib_header pci/config.h |
52 | } | 54 | } |
53 | 55 | ||
54 | PACKAGES =+ "${PN}-ids libpci" | 56 | PACKAGES =+ "${PN}-ids libpci" |
55 | FILES_${PN}-ids = "${datadir}/pci.ids*" | 57 | FILES:${PN}-ids = "${datadir}/pci.ids*" |
56 | FILES_libpci = "${libdir}/libpci.so.*" | 58 | FILES:libpci = "${libdir}/libpci.so.*" |
57 | SUMMARY_${PN}-ids = "PCI utilities - device ID database" | 59 | SUMMARY:${PN}-ids = "PCI utilities - device ID database" |
58 | DESCRIPTION_${PN}-ids = "Package providing the PCI device ID database for pciutils." | 60 | DESCRIPTION:${PN}-ids = "Package providing the PCI device ID database for pciutils." |
59 | RDEPENDS_${PN} += "${PN}-ids" | 61 | RDEPENDS:${PN} += "${PN}-ids" |
62 | |||
63 | ALTERNATIVE:${PN} = "lspci" | ||
64 | ALTERNATIVE_PRIORITY = "100" | ||