summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/pciutils/pciutils-3.2.0/guess-fix.patch
diff options
context:
space:
mode:
authorIonut Radu <ionutx.radu@intel.com>2013-05-09 14:17:40 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-12 09:37:30 +0100
commit092cc9483a43ac31fb387faa8424deb5e8eed87b (patch)
tree352fcfe2731dc98ed7286930895451bfab210c4d /meta/recipes-bsp/pciutils/pciutils-3.2.0/guess-fix.patch
parent15e7b77f656e76e5c1394a71fdaa654af19b7781 (diff)
downloadpoky-092cc9483a43ac31fb387faa8424deb5e8eed87b.tar.gz
pciutils: updated from 3.1.10 to 3.2.
(From OE-Core rev: 5d8dd6ec550764b89754812f0d06cc2baa707a1e) Signed-off-by: Ionut Radu <ionutx.radu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/pciutils/pciutils-3.2.0/guess-fix.patch')
-rw-r--r--meta/recipes-bsp/pciutils/pciutils-3.2.0/guess-fix.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-bsp/pciutils/pciutils-3.2.0/guess-fix.patch b/meta/recipes-bsp/pciutils/pciutils-3.2.0/guess-fix.patch
new file mode 100644
index 0000000000..540b4a0d13
--- /dev/null
+++ b/meta/recipes-bsp/pciutils/pciutils-3.2.0/guess-fix.patch
@@ -0,0 +1,37 @@
1the original guess algorithm is broken for many archs
2for example, the following two would break:
3 arm-linux-gnueabi --> sys=gnueabi
4 x86_64-unknown-pc-linux-gnu --> sys = pc-linux-gnu
5
6use a simpler scheme here and hope it works for all the cases
7
8Upstream-Status: Pending
9
107/30/2010 - created by Qing He <qing.he@intel.com>
11
12diff --git a/lib/configure b/lib/configure
13index 4318b05..84f6acb 100755
14--- a/lib/configure
15+++ b/lib/configure
16@@ -53,20 +53,7 @@ cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
17 sys=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
18 echo " $host $rel $cpu $sys"
19
20-if [ "$host" = "linux--gnueabi" ]
21-then
22- sys=linux
23-fi
24-
25-if [ "$host" = "linux--uclibc" ]
26-then
27- sys=linux
28-fi
29-
30-if [ "$host" = "linux--uclibceabi" ]
31-then
32- sys=linux
33-fi
34+{ echo "$host" | grep linux; } && sys=linux
35
36 c=config.h
37 m=config.mk