X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=BaseTools%2Ftoolsetup.bat;h=561cc408cb7f30cbb0e0db517304f9c605be55e4;hb=e5010d30f4c90898b2435d9893aad316728c5ff5;hp=525bffa7cfdf509b28e42c5c68b1d9ff1df88efe;hpb=30fdf1140b8d1ce93f3821d986fa165552023440;p=mirror_edk2.git diff --git a/BaseTools/toolsetup.bat b/BaseTools/toolsetup.bat index 525bffa7cf..561cc408cb 100755 --- a/BaseTools/toolsetup.bat +++ b/BaseTools/toolsetup.bat @@ -3,7 +3,7 @@ @REM however it may be executed directly from the BaseTools project folder @REM if the file is not executed within a WORKSPACE\BaseTools folder. @REM -@REM Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved. +@REM Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.
@REM @REM This program and the accompanying materials are licensed and made available @REM under the terms and conditions of the BSD Licensewhich accompanies this @@ -158,14 +158,6 @@ if NOT exist %WORKSPACE%\Conf ( ) ) -if NOT exist %WORKSPACE%\Conf\FrameworkDatabase.db ( - echo copying ... FrameworkDatabase.template to %WORKSPACE%\Conf\FrameworkDatabase.db - copy %EDK_TOOLS_PATH%\Conf\FrameworkDatabase.template %WORKSPACE%\Conf\FrameworkDatabase.db > nul -) else ( - if defined RECONFIG echo over-write ... FrameworkDatabase.template to %WORKSPACE%\Conf\FrameworkDatabase.db - if defined RECONFIG copy /Y %EDK_TOOLS_PATH%\Conf\FrameworkDatabase.template %WORKSPACE%\Conf\FrameworkDatabase.db > nul -) - if NOT exist %WORKSPACE%\Conf\target.txt ( echo copying ... target.template to %WORKSPACE%\Conf\target.txt if NOT exist %EDK_TOOLS_PATH%\Conf\target.template ( @@ -261,7 +253,7 @@ goto end set PYTHON_HOME=%PYTHONHOME% ) else ( echo. - echo !!! ERROR !!! PYTHON is required to build or execute the tools !!! + echo !!! ERROR !!! PYTHON_HOME is required to build or execute the tools, please set it. !!! echo. goto end ) @@ -299,16 +291,24 @@ goto end echo. if defined VCINSTALLDIR goto VisualStudioAvailable - if defined VS71COMNTOOLS ( - call "%VS71COMNTOOLS%\vsvars32.bat" + if defined VS100COMNTOOLS ( + call "%VS100COMNTOOLS%\vsvars32.bat" ) else ( - if defined VS80COMNTOOLS ( - call "%VS80COMNTOOLS%\vsvars32.bat" + if defined VS90COMNTOOLS ( + call "%VS90COMNTOOLS%\vsvars32.bat" ) else ( - echo. - echo !!! ERROR !!!! Cannot find Visual Studio, required to build C tools !!! - echo. - goto end + if defined VS80COMNTOOLS ( + call "%VS80COMNTOOLS%\vsvars32.bat" + ) else ( + if defined VS71COMNTOOLS ( + call "%VS71COMNTOOLS%\vsvars32.bat" + ) else ( + echo. + echo !!! ERROR !!!! Cannot find Visual Studio, required to build C tools !!! + echo. + goto end + ) + ) ) )