summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/pciutils/pciutils-3.1.5/guess-fix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-bsp/pciutils/pciutils-3.1.5/guess-fix.patch')
-rw-r--r--meta/recipes-bsp/pciutils/pciutils-3.1.5/guess-fix.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-bsp/pciutils/pciutils-3.1.5/guess-fix.patch b/meta/recipes-bsp/pciutils/pciutils-3.1.5/guess-fix.patch
new file mode 100644
index 0000000000..9072d2a68f
--- /dev/null
+++ b/meta/recipes-bsp/pciutils/pciutils-3.1.5/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