summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu-internal
diff options
context:
space:
mode:
authorZhai Edwin <edwin.zhai@intel.com>2012-01-12 14:23:19 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-17 14:53:21 +0000
commite7a31cf67d13e0cb6948f8f4c4f535aba11fe4fb (patch)
tree81466c710c949284c2f6d993af37188f1b374f7a /scripts/runqemu-internal
parenta521f9d6791d5245433e843897436efac3fe34ff (diff)
downloadpoky-e7a31cf67d13e0cb6948f8f4c4f535aba11fe4fb.tar.gz
runqemu: Fix the wrong path of libGL.so in 64b Ubuntu 11.10
From 11.10, libGL.so is installed @ /usr/lib/x86_64-linux-gnu/ in 64b Ubuntu. [YOCTO #1885] got fixed (From OE-Core rev: d32c15b9b09e49cb79028f59b493d478f00d4019) Signed-off-by: Zhai Edwin <edwin.zhai@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu-internal')
-rwxr-xr-xscripts/runqemu-internal11
1 files changed, 10 insertions, 1 deletions
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index c55619baa5..11dda5582e 100755
--- a/scripts/runqemu-internal
+++ b/scripts/runqemu-internal
@@ -472,8 +472,17 @@ EOM
472# Automatically use Ubuntu system's mesa libGL, other distro can add its own path 472# Automatically use Ubuntu system's mesa libGL, other distro can add its own path
473 if grep -i ubuntu /etc/lsb-release &> /dev/null 473 if grep -i ubuntu /etc/lsb-release &> /dev/null
474 then 474 then
475 GL_PATH=""
476 if test -e /usr/lib/libGL.so
477 then
478 GL_PATH="/usr/lib/libGL.so"
479 elif test -e /usr/lib/x86_64-linux-gnu/libGL.so
480 then
481 GL_PATH="/usr/lib/x86_64-linux-gnu/libGL.so"
482 fi
483
475 echo "Skip nVidia's libGL on Ubuntu!" 484 echo "Skip nVidia's libGL on Ubuntu!"
476 GL_LD_PRELOAD="/usr/lib/libGL.so $LD_PRELOAD" 485 GL_LD_PRELOAD="$GL_PATH $LD_PRELOAD"
477 fi 486 fi
478fi 487fi
479 488