Revision: 14825
          http://sourceforge.net/p/edk2/code/14825
Author:   jljusten
Date:     2013-11-06 19:29:09 +0000 (Wed, 06 Nov 2013)
Log Message:
-----------
OvmfPkg/build.sh: Use QEMU_COMMAND environment variable

If the user has set the QEMU_COMMAND environment variable,
then use it when running QEMU. This can be useful for running
OVMF with development builds of QEMU.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>

Modified Paths:
--------------
    trunk/edk2/OvmfPkg/build.sh

Modified: trunk/edk2/OvmfPkg/build.sh
===================================================================
--- trunk/edk2/OvmfPkg/build.sh 2013-11-05 18:10:36 UTC (rev 14824)
+++ trunk/edk2/OvmfPkg/build.sh 2013-11-06 19:29:09 UTC (rev 14825)
@@ -139,7 +139,12 @@
 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 @@
     ;;
   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

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to