diff options
author | jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-01-13 05:46:03 +0000 |
---|---|---|
committer | jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-01-13 05:46:03 +0000 |
commit | 0462965227b6704b14f05812edbbc96c4d044c1f (patch) | |
tree | 3213b6d458274651879d8988a086bada3db9b0e9 /OvmfPkg | |
parent | ec50ecf2b8f2b011b8cd66e53668fef7624aed88 (diff) | |
download | edk2-0462965227b6704b14f05812edbbc96c4d044c1f.zip edk2-0462965227b6704b14f05812edbbc96c4d044c1f.tar.gz edk2-0462965227b6704b14f05812edbbc96c4d044c1f.tar.bz2 |
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-x | OvmfPkg/build.sh | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/OvmfPkg/build.sh b/OvmfPkg/build.sh index 0ddef04..0696999 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 $? |