X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=BaseTools%2Ftoolsetup.bat;h=36cd9d2491b17788a5830312d616972f6b11696c;hb=8264a2860fd3deb2b89ef35e4ab97cbef63e1ae3;hp=2f657ba9677015d3be7959d8332f0303a0a1ee2a;hpb=8014e7ceb0054a2f57ba94bf7b792cb1cb5837e4;p=mirror_edk2.git diff --git a/BaseTools/toolsetup.bat b/BaseTools/toolsetup.bat index 2f657ba967..36cd9d2491 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 - 2009, 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 @@ -131,7 +131,7 @@ pushd . ) echo EDK_TOOLS_PATH = %EDK_TOOLS_PATH% if defined BASE_TOOLS_PATH ( - echo BASE_TOOLS_PATH = %EDK_TOOLS_PATH% + echo BASE_TOOLS_PATH = %BASE_TOOLS_PATH% ) echo. @@ -162,27 +162,40 @@ 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 ( + echo Error: target.template is missing at folder %EDK_TOOLS_PATH%\Conf\ + ) copy %EDK_TOOLS_PATH%\Conf\target.template %WORKSPACE%\Conf\target.txt > nul ) else ( + if defined RECONFIG echo over-write ... target.template to %WORKSPACE%\Conf\target.txt if defined RECONFIG copy /Y %EDK_TOOLS_PATH%\Conf\target.template %WORKSPACE%\Conf\target.txt > nul ) if NOT exist %WORKSPACE%\Conf\tools_def.txt ( echo copying ... tools_def.template to %WORKSPACE%\Conf\tools_def.txt + if NOT exist %EDK_TOOLS_PATH%\Conf\tools_def.template ( + echo Error: tools_def.template is missing at folder %EDK_TOOLS_PATH%\Conf\ + ) copy %EDK_TOOLS_PATH%\Conf\tools_def.template %WORKSPACE%\Conf\tools_def.txt > nul ) else ( + if defined RECONFIG echo over-write ... tools_def.template to %WORKSPACE%\Conf\tools_def.txt if defined RECONFIG copy /Y %EDK_TOOLS_PATH%\Conf\tools_def.template %WORKSPACE%\Conf\tools_def.txt > nul ) if NOT exist %WORKSPACE%\Conf\build_rule.txt ( echo copying ... build_rule.template to %WORKSPACE%\Conf\build_rule.txt + if NOT exist %EDK_TOOLS_PATH%\Conf\build_rule.template ( + echo Error: build_rule.template is missing at folder %EDK_TOOLS_PATH%\Conf\ + ) copy %EDK_TOOLS_PATH%\Conf\build_rule.template %WORKSPACE%\Conf\build_rule.txt > nul ) else ( + if defined RECONFIG echo over-write ... build_rule.template to %WORKSPACE%\Conf\build_rule.txt if defined RECONFIG copy /Y %EDK_TOOLS_PATH%\Conf\build_rule.template %WORKSPACE%\Conf\build_rule.txt > nul ) @@ -226,7 +239,7 @@ goto end echo tested versions of the tools have been tested and included in the echo EDK II repository. echo. - echo If you really want to build the tools, use the FORCE_REBUILD option. + echo If you really want to build the tools, use the ForceRebuild option. echo. goto end ) @@ -248,7 +261,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 )