summaryrefslogtreecommitdiff
path: root/OvmfPkg
diff options
context:
space:
mode:
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2011-01-13 05:46:03 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2011-01-13 05:46:03 +0000
commit0462965227b6704b14f05812edbbc96c4d044c1f (patch)
tree3213b6d458274651879d8988a086bada3db9b0e9 /OvmfPkg
parentec50ecf2b8f2b011b8cd66e53668fef7624aed88 (diff)
downloadedk2-platforms-0462965227b6704b14f05812edbbc96c4d044c1f.tar.xz
OvmfPkg/build.sh: Recognize '-p' switch
This allows the .dsc file to be specified for the build. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11249 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg')
-rwxr-xr-xOvmfPkg/build.sh14
1 files changed, 11 insertions, 3 deletions
diff --git a/OvmfPkg/build.sh b/OvmfPkg/build.sh
index 0ddef044c0..0696999a65 100755
--- a/OvmfPkg/build.sh
+++ b/OvmfPkg/build.sh
@@ -1,7 +1,7 @@
#!/bin/bash
#
# Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
-# Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>
+# Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
@@ -44,6 +44,7 @@ fi
PROCESSOR=X64
BUILDTARGET=DEBUG
BUILD_OPTIONS=
+PLATFORMFILE=
LAST_ARG=
RUN_QEMU=no
@@ -78,7 +79,7 @@ for arg in "$@"
do
if [ -z "$LAST_ARG" ]; then
case $arg in
- -a|-b|-t)
+ -a|-b|-t|-p)
LAST_ARG=$arg
;;
qemu)
@@ -98,6 +99,9 @@ do
-b)
BUILDTARGET=$arg
;;
+ -p)
+ PLATFORMFILE=$arg
+ ;;
-t)
TARGET_TOOLS=$arg
;;
@@ -126,6 +130,10 @@ case $PROCESSOR in
;;
esac
+if [ -z "$PLATFORMFILE" ]; then
+ PLATFORMFILE=$WORKSPACE/OvmfPkg/OvmfPkg$Processor.dsc
+fi
+
ADD_QEMU_HDA=yes
for arg in "$@"
do
@@ -189,6 +197,6 @@ fi
# Build the edk2 OvmfPkg
#
echo Running edk2 build for OvmfPkg$Processor
-build -p $WORKSPACE/OvmfPkg/OvmfPkg$Processor.dsc $BUILD_OPTIONS -a $PROCESSOR -b $BUILDTARGET -t $TARGET_TOOLS
+build -p $PLATFORMFILE $BUILD_OPTIONS -a $PROCESSOR -b $BUILDTARGET -t $TARGET_TOOLS
exit $?