]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/build.sh
OvmfPkg/README: Add information about OVMF flash layout
[mirror_edk2.git] / OvmfPkg / build.sh
index f64ea91598f1f74613279d202b309c08f68fb0a9..65add5c9e93c3cce222ab0e279586d078662f035 100755 (executable)
@@ -139,7 +139,12 @@ done
 case $PROCESSOR in
   IA32)
     Processor=Ia32
-    if  [ -x `which qemu-system-i386` ]; then
+    if [ -n "$QEMU_COMMAND" ]; then
+      #
+      # The user set the QEMU_COMMAND variable. We'll use it to run QEMU.
+      #
+      :
+    elif  [ -x `which qemu-system-i386` ]; then
       QEMU_COMMAND=qemu-system-i386
     elif  [ -x `which qemu-system-x86_64` ]; then
       QEMU_COMMAND=qemu-system-x86_64
@@ -152,7 +157,12 @@ case $PROCESSOR in
     ;;
   X64)
     Processor=X64
-    QEMU_COMMAND=qemu-system-x86_64
+    if [ -z "$QEMU_COMMAND" ]; then
+      #
+      # The user didn't set the QEMU_COMMAND variable.
+      #
+      QEMU_COMMAND=qemu-system-x86_64
+    fi
     ;;
   *)
     echo Unsupported processor architecture: $PROCESSOR