summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-05-29 16:42:52 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-05-29 16:42:52 -0500
commitb36e8a5dd053534ccabe0592a55e14a4e4513d0d (patch)
tree895609a88c3428f0a831e31d42348105719a0908
parentrtems-testing - Remove CVS Ids (manual edits) (diff)
downloadrtems-testing-b36e8a5dd053534ccabe0592a55e14a4e4513d0d.tar.bz2
pc386.in - qemu may now be named qemu-system-i386
-rw-r--r--sim-scripts/pc386.in14
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"