mirror of https://github.com/acidanthera/audk.git
InOsEmuPkg/Unix/build.sh: Merge changes from build64.sh r11867
Signed-off-by: jljusten git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11878 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
fe7e504faa
commit
feceaad588
|
@ -40,7 +40,6 @@ fi
|
||||||
#
|
#
|
||||||
# Pick a default tool type for a given OS
|
# Pick a default tool type for a given OS
|
||||||
#
|
#
|
||||||
TARGET_TOOLS=MYTOOLS
|
|
||||||
UNIXPKG_TOOLS=GCC44
|
UNIXPKG_TOOLS=GCC44
|
||||||
NETWORK_SUPPORT=
|
NETWORK_SUPPORT=
|
||||||
BUILD_NEW_SHELL=
|
BUILD_NEW_SHELL=
|
||||||
|
@ -60,10 +59,13 @@ case `uname` in
|
||||||
BUILD_NEW_SHELL="-D BUILD_NEW_SHELL"
|
BUILD_NEW_SHELL="-D BUILD_NEW_SHELL"
|
||||||
BUILD_FAT="-D BUILD_FAT"
|
BUILD_FAT="-D BUILD_FAT"
|
||||||
;;
|
;;
|
||||||
Linux*) TARGET_TOOLS=ELFGCC ;;
|
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
if [ -z "$TARGET_TOOLS" ]
|
||||||
|
then
|
||||||
|
TARGET_TOOLS=$UNIXPKG_TOOLS
|
||||||
|
fi
|
||||||
|
|
||||||
BUILD_ROOT_ARCH=$WORKSPACE/Build/EmuUnixIa32/DEBUG_"$UNIXPKG_TOOLS"/IA32
|
BUILD_ROOT_ARCH=$WORKSPACE/Build/EmuUnixIa32/DEBUG_"$UNIXPKG_TOOLS"/IA32
|
||||||
|
|
||||||
if [[ ! -f `which build` || ! -f `which GenFv` ]];
|
if [[ ! -f `which build` || ! -f `which GenFv` ]];
|
||||||
|
@ -119,10 +121,12 @@ done
|
||||||
#
|
#
|
||||||
# Build the edk2 UnixPkg
|
# Build the edk2 UnixPkg
|
||||||
#
|
#
|
||||||
echo $PATH
|
if [[ $TARGET_TOOLS == $UNIXPKG_TOOLS ]]; then
|
||||||
echo `which build`
|
build -p $WORKSPACE/InOsEmuPkg/Unix/UnixX64.dsc -a IA32 -t $UNIXPKG_TOOLS -D BUILD_32 -D UNIX_SEC_BUILD $NETWORK_SUPPORT $BUILD_NEW_SHELL $BUILD_FAT -n 3 $1 $2 $3 $4 $5 $6 $7 $8
|
||||||
build -p $WORKSPACE/InOsEmuPkg/Unix/UnixX64.dsc -a IA32 -t $TARGET_TOOLS -D SEC_ONLY -D BUILD_32 -D SKIP_MAIN_BUILD -n 3 $1 $2 $3 $4 $5 $6 $7 $8 modules
|
else
|
||||||
|
build -p $WORKSPACE/InOsEmuPkg/Unix/UnixX64.dsc -a IA32 -t $TARGET_TOOLS -D BUILD_32 -D UNIX_SEC_BUILD -D SKIP_MAIN_BUILD -n 3 $1 $2 $3 $4 $5 $6 $7 $8 modules
|
||||||
build -p $WORKSPACE/InOsEmuPkg/Unix/UnixX64.dsc -a IA32 -t $UNIXPKG_TOOLS -D BUILD_32 $NETWORK_SUPPORT $BUILD_NEW_SHELL $BUILD_FAT -n 3 $1 $2 $3 $4 $5 $6 $7 $8
|
build -p $WORKSPACE/InOsEmuPkg/Unix/UnixX64.dsc -a IA32 -t $UNIXPKG_TOOLS -D BUILD_32 $NETWORK_SUPPORT $BUILD_NEW_SHELL $BUILD_FAT -n 3 $1 $2 $3 $4 $5 $6 $7 $8
|
||||||
cp $WORKSPACE/Build/EmuUnixIa32/DEBUG_"$TARGET_TOOLS"/IA32/SecMain $WORKSPACE/Build/EmuUnixIa32/DEBUG_"$UNIXPKG_TOOLS"/IA32
|
cp $WORKSPACE/Build/EmuUnixIa32/DEBUG_"$TARGET_TOOLS"/IA32/SecMain $WORKSPACE/Build/EmuUnixIa32/DEBUG_"$UNIXPKG_TOOLS"/IA32
|
||||||
|
fi
|
||||||
exit $?
|
exit $?
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue