Make the build.sh script match the TOT BaseTools project.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9544 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
AJFISH 2009-12-09 01:40:24 +00:00
parent 5af06fe3d0
commit 841f6ba76f
1 changed files with 8 additions and 5 deletions

View File

@ -41,7 +41,10 @@ if [ -z "$WORKSPACE" ]
then then
echo Initializing workspace echo Initializing workspace
cd .. cd ..
export EDK_TOOLS_PATH=`pwd`/BaseTools # Uses an external BaseTools project
export EDK_TOOLS_PATH=`pwd`/../BaseTools
# Uses the BaseTools in edk2
# export EDK_TOOLS_PATH=`pwd`/BaseTools
source edksetup.sh BaseTools source edksetup.sh BaseTools
else else
echo Building from: $WORKSPACE echo Building from: $WORKSPACE
@ -74,11 +77,11 @@ BUILD_ROOT=$WORKSPACE/Build/BeagleBoard/DEBUG_"$TARGET_TOOLS"
GENERATE_IMAGE=$WORKSPACE/BeagleBoardPkg/Tools/generate_image GENERATE_IMAGE=$WORKSPACE/BeagleBoardPkg/Tools/generate_image
FLASH_BOOT=$BUILD_ROOT/FV/BeagleBoard_EFI_flashboot.fd FLASH_BOOT=$BUILD_ROOT/FV/BeagleBoard_EFI_flashboot.fd
if [[ ! -f `which build` || ! -f `which GenFv` ]]; if [[ ! -e $EDK_TOOLS_PATH/Source/C/bin ]];
then then
# build the tools if they don't yet exist # build the tools if they don't yet exist
echo Building tools echo Building tools: $EDK_TOOLS_PATH
make -C $WORKSPACE/BaseTools make -C $EDK_TOOLS_PATH
else else
echo using prebuilt tools echo using prebuilt tools
fi fi
@ -94,7 +97,7 @@ do
# no need to post process if we are doing a clean # no need to post process if we are doing a clean
exit exit
elif [[ $arg == cleanall ]]; then elif [[ $arg == cleanall ]]; then
make -C BaseTools/ clean make -C $EDK_TOOLS_PATH clean
make -C $WORKSPACE/BeagleBoardPkg/Tools clean make -C $WORKSPACE/BeagleBoardPkg/Tools clean
exit exit