mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-21 20:54:29 +02:00
EmulatorPkg/build.sh: Cleanup variable names
Rename TARGET_TOOLS to HOST_TOOLS. Rename UNIXPKG_TOOLS to TARGET_TOOLS. Signed-off-by: jljusten Reviewed-by: andrewfish git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12610 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
2c4b1bdce7
commit
c8a556e32c
@ -48,7 +48,7 @@ PLATFORMFILE=
|
|||||||
LAST_ARG=
|
LAST_ARG=
|
||||||
RUN_EMULATOR=no
|
RUN_EMULATOR=no
|
||||||
CLEAN_TYPE=none
|
CLEAN_TYPE=none
|
||||||
UNIXPKG_TOOLS=GCC44
|
TARGET_TOOLS=GCC44
|
||||||
NETWORK_SUPPORT=
|
NETWORK_SUPPORT=
|
||||||
BUILD_NEW_SHELL=
|
BUILD_NEW_SHELL=
|
||||||
BUILD_FAT=
|
BUILD_FAT=
|
||||||
@ -63,8 +63,8 @@ case `uname` in
|
|||||||
echo UnixPkg requires Snow Leopard or later OS
|
echo UnixPkg requires Snow Leopard or later OS
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
TARGET_TOOLS=XCODE32
|
HOST_TOOLS=XCODE32
|
||||||
UNIXPKG_TOOLS=XCLANG
|
TARGET_TOOLS=XCLANG
|
||||||
fi
|
fi
|
||||||
BUILD_NEW_SHELL="-D BUILD_NEW_SHELL"
|
BUILD_NEW_SHELL="-D BUILD_NEW_SHELL"
|
||||||
BUILD_FAT="-D BUILD_FAT"
|
BUILD_FAT="-D BUILD_FAT"
|
||||||
@ -121,7 +121,7 @@ do
|
|||||||
PLATFORMFILE=$arg
|
PLATFORMFILE=$arg
|
||||||
;;
|
;;
|
||||||
-t)
|
-t)
|
||||||
TARGET_TOOLS=$arg
|
HOST_TOOLS=$arg
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
BUILD_OPTIONS="$BUILD_OPTIONS $arg"
|
BUILD_OPTIONS="$BUILD_OPTIONS $arg"
|
||||||
@ -131,9 +131,9 @@ do
|
|||||||
fi
|
fi
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
if [ -z "$TARGET_TOOLS" ]
|
if [ -z "$HOST_TOOLS" ]
|
||||||
then
|
then
|
||||||
TARGET_TOOLS=$UNIXPKG_TOOLS
|
HOST_TOOLS=$TARGET_TOOLS
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$PROCESSOR" ]
|
if [ -z "$PROCESSOR" ]
|
||||||
@ -160,7 +160,7 @@ esac
|
|||||||
|
|
||||||
|
|
||||||
PLATFORMFILE=$WORKSPACE/EmulatorPkg/EmulatorPkg.dsc
|
PLATFORMFILE=$WORKSPACE/EmulatorPkg/EmulatorPkg.dsc
|
||||||
BUILD_ROOT_ARCH=$BUILD_OUTPUT_DIR/DEBUG_"$UNIXPKG_TOOLS"/$PROCESSOR
|
BUILD_ROOT_ARCH=$BUILD_OUTPUT_DIR/DEBUG_"$TARGET_TOOLS"/$PROCESSOR
|
||||||
|
|
||||||
if [[ ! -f `which build` || ! -f `which GenFv` ]];
|
if [[ ! -f `which build` || ! -f `which GenFv` ]];
|
||||||
then
|
then
|
||||||
@ -185,7 +185,7 @@ if [[ "$RUN_EMULATOR" == "yes" ]]; then
|
|||||||
# This .gdbinit script sets a breakpoint that loads symbols for the PE/COFFEE
|
# This .gdbinit script sets a breakpoint that loads symbols for the PE/COFFEE
|
||||||
# images that get loaded in Host
|
# images that get loaded in Host
|
||||||
#
|
#
|
||||||
cp $WORKSPACE/EmulatorPkg/Unix/.gdbinit $BUILD_OUTPUT_DIR/DEBUG_"$UNIXPKG_TOOLS"/$PROCESSOR
|
cp $WORKSPACE/EmulatorPkg/Unix/.gdbinit $BUILD_OUTPUT_DIR/DEBUG_"$TARGET_TOOLS"/$PROCESSOR
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -195,15 +195,15 @@ fi
|
|||||||
|
|
||||||
case $CLEAN_TYPE in
|
case $CLEAN_TYPE in
|
||||||
clean)
|
clean)
|
||||||
build -p $WORKSPACE/EmulatorPkg/EmulatorPkg.dsc -a $PROCESSOR -b $BUILDTARGET -t $TARGET_TOOLS -D UNIX_SEC_BUILD -n 3 clean
|
build -p $WORKSPACE/EmulatorPkg/EmulatorPkg.dsc -a $PROCESSOR -b $BUILDTARGET -t $HOST_TOOLS -D UNIX_SEC_BUILD -n 3 clean
|
||||||
build -p $WORKSPACE/EmulatorPkg/EmulatorPkg.dsc -a $PROCESSOR -b $BUILDTARGET -t $UNIXPKG_TOOLS -n 3 clean
|
build -p $WORKSPACE/EmulatorPkg/EmulatorPkg.dsc -a $PROCESSOR -b $BUILDTARGET -t $TARGET_TOOLS -n 3 clean
|
||||||
exit $?
|
exit $?
|
||||||
;;
|
;;
|
||||||
cleanall)
|
cleanall)
|
||||||
make -C $WORKSPACE/BaseTools clean
|
make -C $WORKSPACE/BaseTools clean
|
||||||
build -p $WORKSPACE/EmulatorPkg/EmulatorPkg.dsc -a $PROCESSOR -b $BUILDTARGET -t $TARGET_TOOLS -D UNIX_SEC_BUILD -n 3 clean
|
build -p $WORKSPACE/EmulatorPkg/EmulatorPkg.dsc -a $PROCESSOR -b $BUILDTARGET -t $HOST_TOOLS -D UNIX_SEC_BUILD -n 3 clean
|
||||||
build -p $WORKSPACE/EmulatorPkg/EmulatorPkg.dsc -a $PROCESSOR -b $BUILDTARGET -t $UNIXPKG_TOOLS -n 3 clean
|
build -p $WORKSPACE/EmulatorPkg/EmulatorPkg.dsc -a $PROCESSOR -b $BUILDTARGET -t $TARGET_TOOLS -n 3 clean
|
||||||
build -p $WORKSPACE/ShellPkg/ShellPkg.dsc -a IA32 -b $BUILDTARGET -t $UNIXPKG_TOOLS -n 3 clean
|
build -p $WORKSPACE/ShellPkg/ShellPkg.dsc -a IA32 -b $BUILDTARGET -t $TARGET_TOOLS -n 3 clean
|
||||||
exit $?
|
exit $?
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@ -212,12 +212,12 @@ esac
|
|||||||
#
|
#
|
||||||
# Build the edk2 EmulatorPkg
|
# Build the edk2 EmulatorPkg
|
||||||
#
|
#
|
||||||
if [[ $TARGET_TOOLS == $UNIXPKG_TOOLS ]]; then
|
if [[ $HOST_TOOLS == $TARGET_TOOLS ]]; then
|
||||||
build -p $WORKSPACE/EmulatorPkg/EmulatorPkg.dsc $BUILD_OPTIONS -a $PROCESSOR -b $BUILDTARGET -t $UNIXPKG_TOOLS -D BUILD_$ARCH_SIZE -D UNIX_SEC_BUILD $NETWORK_SUPPORT $BUILD_NEW_SHELL $BUILD_FAT -n 3
|
build -p $WORKSPACE/EmulatorPkg/EmulatorPkg.dsc $BUILD_OPTIONS -a $PROCESSOR -b $BUILDTARGET -t $TARGET_TOOLS -D BUILD_$ARCH_SIZE -D UNIX_SEC_BUILD $NETWORK_SUPPORT $BUILD_NEW_SHELL $BUILD_FAT -n 3
|
||||||
else
|
else
|
||||||
build -p $WORKSPACE/EmulatorPkg/EmulatorPkg.dsc $BUILD_OPTIONS -a $PROCESSOR -b $BUILDTARGET -t $TARGET_TOOLS -D BUILD_$ARCH_SIZE -D UNIX_SEC_BUILD -D SKIP_MAIN_BUILD -n 3 modules
|
build -p $WORKSPACE/EmulatorPkg/EmulatorPkg.dsc $BUILD_OPTIONS -a $PROCESSOR -b $BUILDTARGET -t $HOST_TOOLS -D BUILD_$ARCH_SIZE -D UNIX_SEC_BUILD -D SKIP_MAIN_BUILD -n 3 modules
|
||||||
build -p $WORKSPACE/EmulatorPkg/EmulatorPkg.dsc $BUILD_OPTIONS -a $PROCESSOR -b $BUILDTARGET -t $UNIXPKG_TOOLS -D BUILD_$ARCH_SIZE $NETWORK_SUPPORT $BUILD_NEW_SHELL $BUILD_FAT -n 3
|
build -p $WORKSPACE/EmulatorPkg/EmulatorPkg.dsc $BUILD_OPTIONS -a $PROCESSOR -b $BUILDTARGET -t $TARGET_TOOLS -D BUILD_$ARCH_SIZE $NETWORK_SUPPORT $BUILD_NEW_SHELL $BUILD_FAT -n 3
|
||||||
cp $BUILD_OUTPUT_DIR/DEBUG_"$TARGET_TOOLS"/$PROCESSOR/Host $BUILD_ROOT_ARCH
|
cp $BUILD_OUTPUT_DIR/DEBUG_"$HOST_TOOLS"/$PROCESSOR/Host $BUILD_ROOT_ARCH
|
||||||
fi
|
fi
|
||||||
exit $?
|
exit $?
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user