summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/pciutils/pciutils/guess-fix.patch
diff options
context:
space:
mode:
authorValentin Popa <valentin.popa@intel.com>2013-11-22 12:24:34 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-24 12:25:34 +0000
commit27fb21db02e364bea1cafbc4700bbb59e09bf2b2 (patch)
tree923566bea206dfcc05af4ee51194c550337ee7fc /meta/recipes-bsp/pciutils/pciutils/guess-fix.patch
parentd796b6432c94555dbe98b9030591c5c6f15a3ab1 (diff)
downloadast2050-yocto-poky-27fb21db02e364bea1cafbc4700bbb59e09bf2b2.zip
ast2050-yocto-poky-27fb21db02e364bea1cafbc4700bbb59e09bf2b2.tar.gz
pciutils: upgrade to 3.2.1
(From OE-Core rev: f0edfb3a78657c43fb74ebb1c481af3e9d11fc3f) Signed-off-by: Valentin Popa <valentin.popa@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/pciutils/pciutils/guess-fix.patch')
-rw-r--r--meta/recipes-bsp/pciutils/pciutils/guess-fix.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-bsp/pciutils/pciutils/guess-fix.patch b/meta/recipes-bsp/pciutils/pciutils/guess-fix.patch
new file mode 100644
index 0000000..540b4a0
--- /dev/null
+++ b/meta/recipes-bsp/pciutils/pciutils/guess-fix.patch
@@ -0,0 +1,37 @@
+the original guess algorithm is broken for many archs
+for example, the following two would break:
+ arm-linux-gnueabi --> sys=gnueabi
+ x86_64-unknown-pc-linux-gnu --> sys = pc-linux-gnu
+
+use a simpler scheme here and hope it works for all the cases
+
+Upstream-Status: Pending
+
+7/30/2010 - created by Qing He <qing.he@intel.com>
+
+diff --git a/lib/configure b/lib/configure
+index 4318b05..84f6acb 100755
+--- a/lib/configure
++++ b/lib/configure
+@@ -53,20 +53,7 @@ cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
+ sys=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
+ echo " $host $rel $cpu $sys"
+
+-if [ "$host" = "linux--gnueabi" ]
+-then
+- sys=linux
+-fi
+-
+-if [ "$host" = "linux--uclibc" ]
+-then
+- sys=linux
+-fi
+-
+-if [ "$host" = "linux--uclibceabi" ]
+-then
+- sys=linux
+-fi
++{ echo "$host" | grep linux; } && sys=linux
+
+ c=config.h
+ m=config.mk
OpenPOWER on IntegriCloud