[rtems-testing commit] pc386.in - qemu may now be named qemu-system-i386

Joel Sherrill joel at rtems.org
Tue May 29 21:40:06 UTC 2012


Module:    rtems-testing
Branch:    master
Commit:    b36e8a5dd053534ccabe0592a55e14a4e4513d0d
Changeset: http://git.rtems.org/rtems-testing/commit/?id=b36e8a5dd053534ccabe0592a55e14a4e4513d0d

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Tue May 29 16:42:52 2012 -0500

pc386.in - qemu may now be named qemu-system-i386

---

 sim-scripts/pc386.in |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/sim-scripts/pc386.in b/sim-scripts/pc386.in
index 721699d..bcda293 100644
--- a/sim-scripts/pc386.in
+++ b/sim-scripts/pc386.in
@@ -5,7 +5,19 @@
 bspUsesGDBSimulator="no"
 runBSP=NOT_OVERRIDDEN
 if [ ! -r ${runBSP} ] ; then
-  runBSP=qemu
+  runBSP=notset
+  for name in qemu-system-i386 qemu
+  do
+    type ${name} >/dev/null 2>&1
+    if [ $? -eq 0 ] ; then
+      runBSP=${name}
+      break
+    fi
+  done
+  if [ ${runBSP} = "notset" ] ; then
+    echo "CANNOT FIND qemu or qemu-system-i386"
+    exit 1
+  fi
 fi
 bspNeedsDos2Unix="yes"
 bspRunsFailRandomly="yes"




More information about the vc mailing list