mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
aadb1d098d
commit
578630802e
|
@ -45,6 +45,7 @@ PROCESSOR=X64
|
||||||
BUILDTARGET=DEBUG
|
BUILDTARGET=DEBUG
|
||||||
BUILD_OPTIONS=
|
BUILD_OPTIONS=
|
||||||
PLATFORMFILE=
|
PLATFORMFILE=
|
||||||
|
THREADNUMBER=1
|
||||||
LAST_ARG=
|
LAST_ARG=
|
||||||
RUN_QEMU=no
|
RUN_QEMU=no
|
||||||
|
|
||||||
|
@ -89,7 +90,7 @@ for arg in "$@"
|
||||||
do
|
do
|
||||||
if [ -z "$LAST_ARG" ]; then
|
if [ -z "$LAST_ARG" ]; then
|
||||||
case $arg in
|
case $arg in
|
||||||
-a|-b|-t|-p)
|
-a|-b|-t|-p|-n)
|
||||||
LAST_ARG=$arg
|
LAST_ARG=$arg
|
||||||
;;
|
;;
|
||||||
qemu)
|
qemu)
|
||||||
|
@ -115,6 +116,9 @@ do
|
||||||
-t)
|
-t)
|
||||||
TARGET_TOOLS=$arg
|
TARGET_TOOLS=$arg
|
||||||
;;
|
;;
|
||||||
|
-n)
|
||||||
|
THREADNUMBER=$arg
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
BUILD_OPTIONS="$BUILD_OPTIONS $arg"
|
BUILD_OPTIONS="$BUILD_OPTIONS $arg"
|
||||||
;;
|
;;
|
||||||
|
@ -206,6 +210,6 @@ fi
|
||||||
# Build the edk2 OvmfPkg
|
# Build the edk2 OvmfPkg
|
||||||
#
|
#
|
||||||
echo Running edk2 build for OvmfPkg$Processor
|
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 $?
|
exit $?
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue