summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2012-07-10 22:43:30 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2012-07-10 22:43:30 +0000
commit578630802ee5b38cb19894c4944261afa4d92c17 (patch)
treeae77e12be0c54adc234bd6c8c9c8a3f9a469651c
parentaadb1d098d4daf34b8bf8169f8784dfc00023241 (diff)
downloadedk2-platforms-578630802ee5b38cb19894c4944261afa4d92c17.tar.xz
accept "-n THREADNUMBER" in OvmfPkg build script
v1->v2: - change from "-j JOBS" Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13521 6f19259b-4bc3-4df7-8a09-765794883524
-rwxr-xr-xOvmfPkg/build.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/OvmfPkg/build.sh b/OvmfPkg/build.sh
index e500e2c7a0..799dd2b093 100755
--- a/OvmfPkg/build.sh
+++ b/OvmfPkg/build.sh
@@ -45,6 +45,7 @@ PROCESSOR=X64
BUILDTARGET=DEBUG
BUILD_OPTIONS=
PLATFORMFILE=
+THREADNUMBER=1
LAST_ARG=
RUN_QEMU=no
@@ -89,7 +90,7 @@ for arg in "$@"
do
if [ -z "$LAST_ARG" ]; then
case $arg in
- -a|-b|-t|-p)
+ -a|-b|-t|-p|-n)
LAST_ARG=$arg
;;
qemu)
@@ -115,6 +116,9 @@ do
-t)
TARGET_TOOLS=$arg
;;
+ -n)
+ THREADNUMBER=$arg
+ ;;
*)
BUILD_OPTIONS="$BUILD_OPTIONS $arg"
;;
@@ -206,6 +210,6 @@ fi
# Build the edk2 OvmfPkg
#
echo Running edk2 build for OvmfPkg$Processor
-build -p $PLATFORMFILE $BUILD_OPTIONS -a $PROCESSOR -b $BUILDTARGET -t $TARGET_TOOLS
+build -p $PLATFORMFILE $BUILD_OPTIONS -a $PROCESSOR -b $BUILDTARGET -t $TARGET_TOOLS -n $THREADNUMBER
exit $?