diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-05-29 16:42:52 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-05-29 16:42:52 -0500 |
commit | b36e8a5dd053534ccabe0592a55e14a4e4513d0d (patch) | |
tree | 895609a88c3428f0a831e31d42348105719a0908 /sim-scripts | |
parent | ef065c7fec2fa2a4f316d2dc3a4d2524f0263300 (diff) |
pc386.in - qemu may now be named qemu-system-i386
Diffstat (limited to 'sim-scripts')
-rw-r--r-- | 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" |