summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/pciutils/pciutils-3.1.7/guess-fix.patch
diff options
context:
space:
mode:
authorQing He <qing.he@intel.com>2010-11-10 09:03:31 +0800
committerSaul Wold <sgw@linux.intel.com>2010-11-14 16:50:19 -0800
commitb24ca397c40d3b5fe788b85936adb7dd56b6a7da (patch)
tree6df1f0055de14c4b0a943f553abb805f8fd9af3a /meta/recipes-bsp/pciutils/pciutils-3.1.7/guess-fix.patch
parentefa037b655d9d6f7ae45e019b2eb26763aa0f202 (diff)
downloadpoky-b24ca397c40d3b5fe788b85936adb7dd56b6a7da.tar.gz
pciutils: upgrade to version 3.1.7
from 3.1.5 Signed-off-by: Qing He <qing.he@intel.com>
Diffstat (limited to 'meta/recipes-bsp/pciutils/pciutils-3.1.7/guess-fix.patch')
-rw-r--r--meta/recipes-bsp/pciutils/pciutils-3.1.7/guess-fix.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-bsp/pciutils/pciutils-3.1.7/guess-fix.patch b/meta/recipes-bsp/pciutils/pciutils-3.1.7/guess-fix.patch
new file mode 100644
index 0000000000..9072d2a68f
--- /dev/null
+++ b/meta/recipes-bsp/pciutils/pciutils-3.1.7/guess-fix.patch
@@ -0,0 +1,35 @@
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
87/30/2010 - created by Qing He <qing.he@intel.com>
9
10diff --git a/lib/configure b/lib/configure
11index 4318b05..84f6acb 100755
12--- a/lib/configure
13+++ b/lib/configure
14@@ -53,20 +53,7 @@ cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
15 sys=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
16 echo " $host $rel $cpu $sys"
17
18-if [ "$host" = "linux--gnueabi" ]
19-then
20- sys=linux
21-fi
22-
23-if [ "$host" = "linux--uclibc" ]
24-then
25- sys=linux
26-fi
27-
28-if [ "$host" = "linux--uclibcgnueabi" ]
29-then
30- sys=linux
31-fi
32+{ echo "$host" | grep linux; } && sys=linux
33
34 c=config.h
35 m=config.mk