summaryrefslogtreecommitdiffstats
path: root/BeagleBoardPkg
diff options
context:
space:
mode:
authorAJFISH <AJFISH@6f19259b-4bc3-4df7-8a09-765794883524>2009-12-09 01:40:24 +0000
committerAJFISH <AJFISH@6f19259b-4bc3-4df7-8a09-765794883524>2009-12-09 01:40:24 +0000
commit841f6ba76fe8aa51329be4f46c97d679c9588364 (patch)
treeefb22a7e14e535cdce5d4bf3fdc66a4abbbf32da /BeagleBoardPkg
parent5af06fe3d0ddd4cd65d26aa9fde90173ad729e62 (diff)
downloadedk2-841f6ba76fe8aa51329be4f46c97d679c9588364.tar.gz
edk2-841f6ba76fe8aa51329be4f46c97d679c9588364.tar.bz2
edk2-841f6ba76fe8aa51329be4f46c97d679c9588364.zip
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
Diffstat (limited to 'BeagleBoardPkg')
-rwxr-xr-xBeagleBoardPkg/build.sh13
1 files changed, 8 insertions, 5 deletions
diff --git a/BeagleBoardPkg/build.sh b/BeagleBoardPkg/build.sh
index 94cabbe623..6f0d771a20 100755
--- a/BeagleBoardPkg/build.sh
+++ b/BeagleBoardPkg/build.sh
@@ -41,7 +41,10 @@ if [ -z "$WORKSPACE" ]
then
echo Initializing workspace
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
else
echo Building from: $WORKSPACE
@@ -74,11 +77,11 @@ BUILD_ROOT=$WORKSPACE/Build/BeagleBoard/DEBUG_"$TARGET_TOOLS"
GENERATE_IMAGE=$WORKSPACE/BeagleBoardPkg/Tools/generate_image
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
# build the tools if they don't yet exist
- echo Building tools
- make -C $WORKSPACE/BaseTools
+ echo Building tools: $EDK_TOOLS_PATH
+ make -C $EDK_TOOLS_PATH
else
echo using prebuilt tools
fi
@@ -94,7 +97,7 @@ do
# no need to post process if we are doing a clean
exit
elif [[ $arg == cleanall ]]; then
- make -C BaseTools/ clean
+ make -C $EDK_TOOLS_PATH clean
make -C $WORKSPACE/BeagleBoardPkg/Tools clean
exit