From b36e8a5dd053534ccabe0592a55e14a4e4513d0d Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 29 May 2012 16:42:52 -0500 Subject: pc386.in - qemu may now be named qemu-system-i386 --- sim-scripts/pc386.in | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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" -- cgit v1.2.3