X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=BeagleBoardPkg%2Fbuild.sh;h=ba2d06c59aa49d7c2c2f422114cd8bd547a0baed;hp=94cabbe6239dea815bd6a3e535597d33a30065fa;hb=6dec88649aefe8c302d32871adfe791407911788;hpb=2ef2b01e07c02db339f34004445734a2dbdd80e1 diff --git a/BeagleBoardPkg/build.sh b/BeagleBoardPkg/build.sh index 94cabbe623..ba2d06c59a 100755 --- a/BeagleBoardPkg/build.sh +++ b/BeagleBoardPkg/build.sh @@ -41,6 +41,9 @@ if [ -z "$WORKSPACE" ] then echo Initializing workspace cd .. +# 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 @@ -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