summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2012-03-26 14:49:38 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-26 12:13:04 +0100
commitaff0f018d20d9a2b05a55fc173c89fbedd7f97ee (patch)
treea619fb1bb2042bb2580a4ba6bb71c82d7f21f096
parent1c0afb853ab40acb6fecdcc8989f8d2074bb1cb5 (diff)
downloadpoky-aff0f018d20d9a2b05a55fc173c89fbedd7f97ee.tar.gz
qemu: add fedora pkg names when build failed
When qemu build failed, we can see such messages: You need libGL.so and libGLU.so to exist in your library path and the development headers for SDL installed to build qemu-native. Ubuntu package names are: libgl1-mesa-dev, libglu1-mesa-dev and libsdl1.2-dev These pkgs have different names on Fedora distributions, and Fedora is one the main linux distributions, so add Fedora package names. The following Fedora versions have these pkgs: Fedora 9 64bit Fedora 13 32bit Fedora 13 64bit Fedora 16 64bit [YOCTO #2174] (From OE-Core rev: 246438582f8a23ce1847bae230bce07fbb3c6d15) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/qemu/qemu.inc3
-rwxr-xr-xscripts/runqemu3
2 files changed, 4 insertions, 2 deletions
diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
index 307a205cdc..8dee060338 100644
--- a/meta/recipes-devtools/qemu/qemu.inc
+++ b/meta/recipes-devtools/qemu/qemu.inc
@@ -33,7 +33,8 @@ do_configure_prepend_virtclass-native() {
33 33
34 if [ "$libsdl" != 'yes' -o "$libgl" != 'yes' ]; then 34 if [ "$libsdl" != 'yes' -o "$libgl" != 'yes' ]; then
35 echo "You need libGL.so and libGLU.so to exist in your library path and the development headers for SDL installed to build qemu-native. 35 echo "You need libGL.so and libGLU.so to exist in your library path and the development headers for SDL installed to build qemu-native.
36 Ubuntu package names are: libgl1-mesa-dev, libglu1-mesa-dev and libsdl1.2-dev" 36 Ubuntu package names are: libgl1-mesa-dev, libglu1-mesa-dev and libsdl1.2-dev.
37 Fedora package names are: mesa-libGL mesa-libGLU SDL-devel."
37 exit 1; 38 exit 1;
38 fi 39 fi
39} 40}
diff --git a/scripts/runqemu b/scripts/runqemu
index ac5facfa21..c349de081f 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -406,7 +406,8 @@ test -e /usr/lib/*-linux-gnu/libGL.so -a -e /usr/lib/*-linux-gnu/libGLU.so && li
406 406
407if [ "$libgl" != 'yes' ]; then 407if [ "$libgl" != 'yes' ]; then
408 echo "You need libGL.so and libGLU.so to exist in your library path to run the QEMU emulator. 408 echo "You need libGL.so and libGLU.so to exist in your library path to run the QEMU emulator.
409 Ubuntu package names are: libgl1-mesa-dev and libglu1-mesa-dev." 409 Ubuntu package names are: libgl1-mesa-dev and libglu1-mesa-dev.
410 Fedora package names are: mesa-libGL mesa-libGLU."
410 exit 1; 411 exit 1;
411fi 412fi
412 413