summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/pciutils
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-bsp/pciutils')
-rw-r--r--meta/recipes-bsp/pciutils/pciutils/configure.patch56
-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 @@
1From 6af07e1f812b2444d33ce199308c87e04b2f5dc7 Mon Sep 17 00:00:00 2001
2From: Richard Purdie <rpurdie@linux.intel.com>
3Date: Wed, 31 Dec 2008 17:20:38 +0000
4Subject: [PATCH] pciutils: Upgarde 2.2.4 -> 3.0.3
5
1This patch: 6This 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
6This is a merge of various tweaks to allow us to build pciutils including 11This is a merge of various tweaks to allow us to build pciutils including
7work from: 12work from:
8 13
97/30/2010 - Qing He <qing.he@intel.com> 147/30/2010 - Qing He <qing.he@intel.com>
@@ -12,24 +17,28 @@ Ionut Radu <ionutx.radu@intel.com>
122017/6/15 - RP - Cleanups and merging patches 172017/6/15 - RP - Cleanups and merging patches
13 18
14Upstream-Status: Inappropriate [embedded specific] 19Upstream-Status: Inappropriate [embedded specific]
20---
21 Makefile | 2 +-
22 lib/configure | 14 ++++++++++----
23 2 files changed, 11 insertions(+), 5 deletions(-)
15 24
16Index: pciutils-3.5.6/Makefile 25diff --git a/Makefile b/Makefile
17=================================================================== 26index 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 := ,
29Index: pciutils-3.5.6/lib/configure 38diff --git a/lib/configure b/lib/configure
30=================================================================== 39index 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--
922.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.'
4HOMEPAGE = "http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml" 4HOMEPAGE = "http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml"
5SECTION = "console/utils" 5SECTION = "console/utils"
6 6
7LICENSE = "GPLv2+" 7LICENSE = "GPL-2.0-or-later"
8LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" 8LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
9DEPENDS = "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
12DEPENDS = "zlib kmod make-native"
10 13
11SRC_URI = "${KERNELORG_MIRROR}/software/utils/pciutils/pciutils-${PV}.tar.xz \ 14SRC_URI = "${KERNELORG_MIRROR}/software/utils/pciutils/pciutils-${PV}.tar.xz \
12 file://configure.patch" 15 file://configure.patch"
13 16
14SRC_URI[sha256sum] = "9d40b97be8b6a2cdf96aead5a61881d1f7e4e0da9544a9bac4fba1ae9dcd40eb" 17SRC_URI[sha256sum] = "f185d116d5ff99b797497efce8f19f1ee8ccc5a668b97a159e3d13472f674154"
15 18
16inherit multilib_header pkgconfig 19inherit multilib_header pkgconfig update-alternatives
17 20
18PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'hwdb', '', d)}" 21PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'hwdb', '', d)}"
19PACKAGECONFIG[hwdb] = "HWDB=yes,HWDB=no,udev" 22PACKAGECONFIG[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
54PACKAGES =+ "${PN}-ids libpci" 56PACKAGES =+ "${PN}-ids libpci"
55FILES_${PN}-ids = "${datadir}/pci.ids*" 57FILES:${PN}-ids = "${datadir}/pci.ids*"
56FILES_libpci = "${libdir}/libpci.so.*" 58FILES:libpci = "${libdir}/libpci.so.*"
57SUMMARY_${PN}-ids = "PCI utilities - device ID database" 59SUMMARY:${PN}-ids = "PCI utilities - device ID database"
58DESCRIPTION_${PN}-ids = "Package providing the PCI device ID database for pciutils." 60DESCRIPTION:${PN}-ids = "Package providing the PCI device ID database for pciutils."
59RDEPENDS_${PN} += "${PN}-ids" 61RDEPENDS:${PN} += "${PN}-ids"
62
63ALTERNATIVE:${PN} = "lspci"
64ALTERNATIVE_PRIORITY = "100"