From nobody Mon Apr 29 00:57:31 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1515658897615219.42846953328365; Thu, 11 Jan 2018 00:21:37 -0800 (PST) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 4C0F52220D20E; Thu, 11 Jan 2018 00:16:22 -0800 (PST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id BA7802035D315 for ; Thu, 11 Jan 2018 00:16:20 -0800 (PST) Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Jan 2018 00:21:33 -0800 Received: from shwde7172.ccr.corp.intel.com ([10.239.9.15]) by orsmga006.jf.intel.com with ESMTP; 11 Jan 2018 00:21:32 -0800 X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.43; helo=mga05.intel.com; envelope-from=liming.gao@intel.com; receiver=edk2-devel@lists.01.org X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,343,1511856000"; d="scan'208";a="10387605" From: Liming Gao To: edk2-devel@lists.01.org Date: Thu, 11 Jan 2018 16:21:29 +0800 Message-Id: <1515658889-8148-1-git-send-email-liming.gao@intel.com> X-Mailer: git-send-email 2.8.0.windows.1 Subject: [edk2] [Patch] Edk2: Retire Edk2Setup.bat X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Edk2Setup.bat is out of maintain. It is a draft version batch file, and not implement all features listed in its header file. To avoid the confuse, drop it from edk2 project, and keep edksetup.bat only. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao Reviewed-by: Laszlo Ersek --- Edk2Setup.bat | 541 ------------------------------------------------------= ---- 1 file changed, 541 deletions(-) delete mode 100755 Edk2Setup.bat diff --git a/Edk2Setup.bat b/Edk2Setup.bat deleted file mode 100755 index 017e88d..0000000 --- a/Edk2Setup.bat +++ /dev/null @@ -1,541 +0,0 @@ -@REM @file -@REM Windows batch file, Edk2Setup.bat, to set up an EDK II build environm= ent -@REM -@REM This script will be renamed to edksetup.bat after initial testing and -@REM acceptance by the open source community. -@REM -@REM This script will set the following system environment variables: -@REM WORKSPACE, EDK_TOOLS_PATH, PATH -@REM If rebuilding the tools: -@REM BASE_TOOLS_PATH, PYTHON_FREEZER_PATH, PYTHONPATH -@REM It will also create a Conf/target.txt, tools_def.txt and build_rule.t= xt files -@REM if they do not exist -@REM If the reset flag is set, all environment variables will be reset and=20 -@REM the Conf/target.txt, tools_def.txt and build_rule.txt files will be o= verwritten -@REM -@REM Three other scripts, located in the BaseTools\Scripts directory, may = be called -@REM by this script. -@REM SetVisualStudio.bat - will set the Visual Studio environment based= on the --vs* flags -@REM it is also used to build the Win32 binaries,= calling nmake=20 -@REM using the WORKSPACE\BaseTools\Makefile -@REM ShowEnvironment.bat - will display the current EDK II Build enviro= nment -@REM UpdateBuildVersions.py - script is called prior to building the EDK I= I BaseTools from -@REM Sources. This tool will modify the BuildVers= ion.* files so that -@REM when the tools get built, they will have a c= ustom version entry -@REM similar to the following: -@REM e:\edk2>build --version -@REM build.exe Version 0.51 Developer Build based on Revision: 15668 -@REM -@REM Copyright (c) 2014, Intel Corporation. All rights reserved.
-@REM (C) Copyright 2016 Hewlett Packard Enterprise Development LP
-@REM This program and the accompanying materials -@REM are licensed and made available under the terms and conditions of the= BSD License -@REM which accompanies this distribution. The full text of the license ma= y be found at -@REM http://opensource.org/licenses/bsd-license.php -@REM -@REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -@REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR = IMPLIED. -@REM -@REM -@REM usage: -@REM Edk2Setup.bat [--help | -h] [-v | --version] [-r | --reset]=20 -@REM [--reconfig] [--edk-tools-path DirName] -@REM [--pull [Directory]| --rebuild [Directory]] -@REM [--nt32 [X64]] - -@REM ############################################################## -@REM # You should not have to modify anything below this line -@REM # -@echo off -@set SCRIPT_NAME=3D%0 -@set SCRIPT_VERSION=3D0.9.2. -@set SVN_REVISION=3D$Revision$ -@set RESET_ENVIRONMENT=3DFALSE -@set NT32PKG=3DFALSE -@set NT32_X64=3D -@set BUILD_TOOLS_WITH=3D -@set LOCATION=3D -@set REBUILD_TOOLS=3D -@set SVN_PULL=3D -@set SRC_CONF=3D -@set ARGUMENT=3D -@set SCRIPT=3DEDKSETUP_BAT -@set PYTHON_BUILD=3D - -@if not defined ORIGINAL_PATH set "ORIGINAL_PATH=3D%PATH%" -@REM Always set the WORKSPACE environment variable to the current directory -@if not defined WORKSPACE ( - @set "WORKSPACE=3D%CD%" -) -@if not exist "%BASE_TOOLS_PATH%" ( - @if exist "%WORKSPACE%\BaseTools" ( - set "BASE_TOOLS_PATH=3D%WORKSPACE%\BaseTools" - ) else ( - @if defined PACKAGES_PATH ( - @for %%i IN (%PACKAGES_PATH%) DO ( - @if exist %%~fi\BaseTools ( - @set BASE_TOOLS_PATH=3D%%~fi\BaseTools - @goto checkBaseTools - ) - ) - ) - ) -) -:checkBaseTools -@if not defined BASE_TOOLS_PATH ( - @echo. - @echo !!! ERROR !!! The BaseTools Package was not found !!! - @echo. - @goto ExitFailure -) -@if not exist "%WORKSPACE%\Conf" @mkdir "%WORKSPACE%\Conf" - -@@if not defined EDK_TOOLS_PATH @set "EDK_TOOLS_PATH=3D%BASE_TOOLS_PATH%" - -@REM Keep the existing EDK_TOOLS_PATH value, the --reset flag will set it -@REM back to WORKSPACE\BaseTools while the --location DIRECTORY flag will -@REM still take precedence if the location option follows the reset option -@REM on the command line. -@if defined EDK_TOOLS_PATH @set "LOCATION=3D%EDK_TOOLS_PATH%" - -:parse_cmd_line -@if "%1"=3D=3D"" @goto MainRoutine -@if /I "%1"=3D=3D"-h" @goto Usage -@if /I "%1"=3D=3D"--help" @goto Usage -@if /I "%1"=3D=3D"/?" @goto Usage -@if /I "%1"=3D=3D"--version" @goto Version - -@REM These options will reset the system environment -@if /I "%1"=3D=3D"-r" ( - @setlocal EnableDelayedExpansion - @set "WORKSPACE=3D%CD%" - @set "EDK_TOOLS_PATH=3D%CD%\BaseTools" - @set "LOCATION=3D!EDK_TOOLS_PATH!" - @endlocal - @shift - @goto parse_cmd_line -) -@if /I "%1"=3D=3D"--reset" ( - @set "WORKSPACE=3D%CD%" - @set "EDK_TOOLS_PATH=3D%WORKSPACE%\BaseTools" - @set "LOCATION=3D%WORKSPACE%\BaseTools" - @shift - @goto parse_cmd_line -) - -@REM This option is used to overwrite the Conf/*.txt files with the -@REM WORKSPACE\BaseTools\Conf\*.template files. -@if /I "%1"=3D=3D"--reconfig" ( - @set RECONFIG=3DTRUE - @shift - @goto parse_cmd_line -) - -@REM This option can be used to set the EDK_TOOLS_PATH containing the Win3= 2 binaries to an -@REM alternate directory -@if /I "%1"=3D=3D"--edk-tools-path" ( - @setlocal EnableDelayedExpansion - @set ARGUMENT=3D%2 - @if "!ARGUMENT:~0,2!"=3D=3D"--" ( - @echo. - @echo ERROR : The --edk-tools-path flag requires an argument - @echo. - @endlocal - @goto Usage - ) - @endlocal - @set "LOCATION=3D%WORKSPACE%\%2" - @shift - @shift - @goto parse_cmd_line -) - -@REM Force pulling updated (or checkout if they do not exist) from SVN for= the BaseTools\Bin\Win32 directory -@REM or the directory pointed to by the --location option -@if /I "%1"=3D=3D"--pull" ( - @if "%REBUILD_TOOLS%"=3D=3D"TRUE" ( - @echo. - @echo ERROR: The --pull option may not be used with the --rebuild = option - @shift - @goto ExitFailure - ) - @set SVN_PULL=3DTRUE - @setlocal EnableDelayedExpansion - @set ARGUMENT=3D%2 - @if not "!ARGUMENT:~0,2!"=3D=3D"--" ( - @endlocal - @set "LOCATION=3D%2" - @shift - ) - @shift - @goto parse_cmd_line -) - -@REM This options forces rebuilding the tools (provided the required tools= are available -@if /I "%1"=3D=3D"--rebuild" ( - @if "%SVN_PULL%"=3D=3D"TRUE" ( - @echo. - @echo ERROR: The --reset option may not be used with the --pull op= tion - @shift - @goto ExitFailure - ) - @set REBUILD_TOOLS=3DTRUE - @setlocal EnableDelayedExpansion - @set ARGUMENT=3D%2 - @if not "!ARGUMENT:~0,2!"=3D=3D"--" ( - @endlocal - @set "LOCATION=3D%2" - @shift - ) - @shift - goto parse_cmd_line -) - -@REM This option will try to set the compiler environment for building Nt3= 2Pkg/Nt32Pkg.dsc -@REM If the compiler environment is already installed, then no additional = work is required. -@if /I "%1"=3D=3D"--nt32" ( - @set NT32PKG=3DTRUE - @if not defined BUILD_TOOLS_WITH ( - @set BUILD_TOOLS_WITH=3DLatest - ) - @REM This option will try to set the environment for building the Nt32= Pkg/Nt32Pkg; on a 64-bit=20 - @REM Windows OS - @if /I "%2"=3D=3D"X64" ( - @set NT32_X64=3DTRUE - @shift - ) - @shift - @goto parse_cmd_line -) - -@if not "%1"=3D=3D"" goto UnknownOptionOrArgument -@goto MainRoutine - -:Usage -@echo Usage: %SCRIPT_NAME% [Options] -@echo Copyright(c) 2014, Intel Corporation. All rights reserved. -@echo. -@echo The system environment variable, WORKSPACE, is always set to the cur= rent=20 -@echo working directory. -@echo. -@echo Options: -@echo --help, -h Print this help screen and exit. -@echo. -@echo --version Print this script's version and exit. -@echo. -@echo --reset, -r Reset the EDK_TOOLS_PATH and PATH system envir= onment -@echo variables. The EDK_TOOLS_PATH default is=20 -@echo WORKSPACE\BaseTools, however, it may be overri= dden by -@echo arguments given to the --edk-tools-path, --pul= l and/or -@echo --rebuild options. -@echo Once set, the EDK_TOOLS_PATH environment varia= ble reset -@echo by opening up a new command prompt window or t= hrough one -@echo of the options provided by this tool -@echo. -@echo --reconfig Overwrite the WORKSPACE/Conf/*.txt files with = the -@echo template files from the BaseTools/Conf directo= ry. -@echo. -@echo --edk-tools-path DIRECTORY -@echo This option sets the EDK_TOOLS_PATH to the DIR= ECTORY -@echo value instead of the default (WORKSPACE\BaseTo= ols). -@echo. -@echo --nt32 [X64] If a compiler tool chain is not available in t= he -@echo environment, call a script to attempt to set o= ne up. -@echo This flag is only required if building the -@echo Nt32Pkg/Nt32Pkg.dsc system emulator. -@echo If the X64 argument is set, and a compiler too= l chain is -@echo not available, attempt to set up a tool chain = that will -@echo create X64 binaries. Setting these two options= have the -@echo potential side effect of changing tool chains = used for a -@echo rebuild. -@echo. -@pause -@echo. -@echo --pull [DIRECTORY] Get the EDK II BaseTools binaries from source = control=20 -@echo (must not be used with --rebuild). -@echo If the optional DIRECTORY argument is specifie= d, the tool -@echo sets EDK_TOOLS_PATH to DIRECTORY. -@echo If the DIRECTORY argument is not specified, th= e tools are -@echo placed in the directory tree pointed to by the= current=20 -@echo EDK_TOOLS_PATH environment variable. If the bi= naries -@echo cannot be obtained from source control, the=20 -@echo EDK_TOOLS_PATH will be set to the default,=20 -@echo WORKSPACE\BaseTools directory. -@echo. -@echo --rebuild [DIRECTORY] -@echo Force Rebuilding the EDK II BaseTools from sou= rce -@echo (must not be used with --pull). -@echo NOTE: The build will use whatever compiler= tool set -@echo is available in the environment prio= r to -@echo running edksetup.bat. -@echo If the optional DIRECTORY argument is specifie= d, the tool -@echo sets EDK_TOOLS_PATH to DIRECTORY. Tools binari= es will be -@echo placed in the appropriate subdirectory in the=20 -@echo EDK_TOOLS_PATH directory. If the build fails, = the -@echo EDK_TOOLS_PATH will be set to the default, -@echo WORKSPACE\BaseTools directory. -@goto ExitSuccess - -:Version -@echo %SCRIPT_NAME% Version: %SCRIPT_VERSION%%SVN_REVISION:~11,-1% -@echo Copyright(c) 2014, Intel Corporation. All rights reserved. -@set HIDE_PATH=3DTRUE -@call "%BASE_TOOLS_PATH%\Scripts\ShowEnvironment.bat" -@set HIDE_PATH=3D -@goto ExitSuccess - -:UnknownOptionOrArgument -@echo. ERROR : This argument is not valid: %1 -@echo. -@goto ExitFailure - -:NoVisualStudio -@echo ERROR : Unable to determine if a compiler tool chain has been enable= d in this -@echo command-prompt window. Rebuilding of the tools with this scr= ipt is not -@echo possible. -@echo Refer to the BaseTools\BuildNotes.txt for directions for bui= lding=20 -@echo the BaseTools binaries. -@echo. -@goto ExitFailure - -:NoPython -@echo ERROR : Unable to rebuild the BaseTools binaries, python does not ap= pear to be -@echo installed. If python is installed, please set the environment -@echo variable, PYTHONHOME to the Path to the python.exe, for exam= ple, -@echo if python.exe is located in the C:\Python27 directory, then: -@echo set PYTHONHOME=3DC:\Python27 -@echo. -@goto ExitFailure - -:BadPython -@echo ERROR : Unable to rebuild the BaseTools binaries, python does not ap= pear to be -@echo installed.=20 -@echo The python executable was not found in the PYTHONHOME: %PYTH= ONHOME% -@echo If python is installed, please set the environment variable,= PYTHONHOME=20 -@echo to the Path that contains python.exe, for example, if python= .exe is -@echo located in the C:\Python27 directory, then: -@echo set PYTHONHOME=3DC:\Python27 -@echo. -@goto ExitFailure - -:NoCxFreeze -@echo ERROR : Unable to locate cx_Freeze 4.2.3. The cxfreeze.bat file must= be located -@echo in the %PYTHONHOME%\Scripts directoryin order to rebuild the= BaseTools -@echo binaries. -@echo. -@goto ExitFailure - -:NoBaseTools -@echo ERROR: Unable to locate the BaseTools directory containing the Sourc= e tree -@echo. -@goto ExitFailure - -@REM #####################################################################= #################### -@REM MAIN ROUTINE -@REM Set up the Build System environment -@REM #####################################################################= #################### -:MainRoutine -@if defined LOCATION @set "EDK_TOOLS_PATH=3D%LOCATION%" -@REM SET the EDK_TOOLS_PATH. -@if not exist "%EDK_TOOLS_PATH%" ( - @mkdir %EDK_TOOLS_PATH% -) -@if not defined NASM_PREFIX ( - @echo. - @echo WARNING : NASM_PREFIX environment variable is not set - @if exist "C:\nasm\nasm.exe" @set "NASM_PREFIX=3DC:\nasm\" - @if exist "C:\nasm\nasm.exe" @echo Found nasm.exe, setting the envir= onment variable to C:\nasm\ - @if not exist "C:\nasm\nasm.exe" echo Attempting to build modules th= at require NASM will fail. -) -@REM Set up the path to include the EDK_TOOLS_PATH\Bin\Win32 directory; th= is test determines -@REM whether the path is in the workspace or a fully qualified path that m= ay be outside of -@REM the workspace -@if exist "%WORKSPACE%\%EDK_TOOLS_PATH%" @set "EDK_TOOLS_PATH=3D%WORKSPACE= %\%EDK_TOOLS_PATH%" - -@if defined REBUILD_TOOLS goto SetConf -@if defined SVN_PULL goto SetConf - -@REM call set_vsprefix_envs.bat to set up the PREFIX env for VS tool path. -@IF NOT exist "%EDK_TOOLS_PATH%\set_vsprefix_envs.bat" ( - @echo. - @echo !!! ERROR !!! The set_vsprefix_envs.bat was not found !!! - @echo. - @goto ExitFailure -) -@call %EDK_TOOLS_PATH%\set_vsprefix_envs.bat - -@echo. -@echo Rebuilding of the tools is not required. Binaries of the latest, -@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 --rebuild option. -@echo. -@if not defined CYGWIN_HOME @echo "!!! WARNING !!! No CYGWIN_HOME set, gcc= build may not be used !!!" -@if not defined CYGWIN_HOME @echo. -@REM Make sure the WORKSPACE\Conf directory contains the required text fil= es that will be -@REM copied or replaced from the WORKSPACE\BaseTools\Conf directories' tem= plate files. -:SetConf -@if not exist "%EDK_TOOLS_PATH%\Conf" ( - @if exist "%BASE_TOOLS_PATH%\Conf" ( - @set "SRC_CONF=3D%BASE_TOOLS_PATH%\Conf" - ) -) else ( - @set "SRC_CONF=3D%EDK_TOOLS_PATH%\Conf" -) -@if not defined SRC_CONF ( - @echo ERROR : Unable to locate the BaseTools directory tree - @goto ExitFailure -) - -@REM The script will test to see if the files exist, and also use the RESE= T_ENVIRONMENT flag -@REM to overwrite the WORKSPACE\Conf *.txt files. -@call "%BASE_TOOLS_PATH%\Scripts\ShowEnvironment.bat" -@if errorlevel 1 ( - @echo Unable to copy the template files from "%SRC_CONF%" to "%WORKSPA= CE%\Conf" - @goto ExitFailure -) -@set SRC_CONF=3D - -@REM Set up Visual Studio if required to build the Nt32Pkg/Nt32Pkg.dsc emu= lator -@if "%NT32PKG%"=3D=3D"TRUE" ( - @if not defined VSINSTALLDIR @set "PATH=3D%ORIGINAL_PATH%" - @if not defined NT32_X64 @call "%BASE_TOOLS_PATH%\get_vsvars.bat" - @if defined NT32_X64 call "%BASE_TOOLS_PATH%\Scripts\SetVisualStudio.b= at" -) -@if "%NT32PKG%"=3D=3D"TRUE" ( - @if not defined VS_PATH set "VS_PATH=3D%PATH%" -) -@if defined VS_PATH @set "PATH=3D%VS_PATH%" -@if not defined VS_PATH @set "PATH=3D%ORIGINAL_PATH%" -@if not defined EDK_TOOLS_BIN ( - @if exist %EDK_TOOLS_PATH%\Bin\Win32 ( - @set EDK_TOOLS_BIN=3D%EDK_TOOLS_PATH%\Bin\Win32 - ) else ( - @echo. - @echo !!! ERROR !!! Cannot find BaseTools Bin Win32!!! - @echo Please check the directory %EDK_TOOLS_PATH%\Bin\Win32 - @echo Or configure EDK_TOOLS_BIN env to point Win32 directory. - @echo.=20 - @goto ExitFailure - ) -) -@set "PATH=3D%EDK_TOOLS_BIN%;%PATH%" - -@if NOT EXIST "%EDK_TOOLS_BIN%\build.exe" @set PYTHON_BUILD=3DTRUE -@if NOT EXIST "%EDK_TOOLS_BIN%\GenFds.exe" @set PYTHON_BUILD=3DTRUE -@if NOT EXIST "%EDK_TOOLS_BIN%\TargetTool.exe" @set PYTHON_BUILD=3DTRUE -@if NOT EXIST "%EDK_TOOLS_BIN%\Trim.exe" @set PYTHON_BUILD=3DTRUE - -@if not defined PYTHON_BUILD goto SvnPull - -@echo !!! WARNING !!! Setup environment to run Python scripts directly. - -@if not defined PYTHON_HOME ( - @if defined PYTHONHOME ( - @set PYTHON_HOME=3D%PYTHONHOME% - ) else ( - @echo. - @echo !!! ERROR !!! PYTHON_HOME is required to build or execute the t= ools, please set it. !!! - @echo. - @goto ExitFailure - ) -) - -@set PATH=3D%PATH%;%BASE_TOOLS_PATH%\BinWrappers\WindowsLike -@set BASETOOLS_PYTHON_SOURCE=3D%BASE_TOOLS_PATH%\Source\Python -@set PYTHONPATH=3D%BASETOOLS_PYTHON_SOURCE%;%PYTHONPATH% - -:SvnPull -@if "%REBUILD_TOOLS%"=3D=3D"TRUE" @goto Rebuild -@if "%SVN_PULL%"=3D=3D "TRUE" ( - if defined PYTHONHOME ( - @REM Use the python script if possible to test is the svn command = is available, if it fails, the user may be - @REM able to rebuild the Win32 binaries - @call "%BASE_TOOLS_PATH%\Scripts\UpdateBuildVersions.py" --svn-tes= t -v - @if errorlevel 1 ( - @echo ERROR : The command-line svn tool is not available and t= he Win32 binaries do not exist - @echo Please re-run this script again with the --rebui= ld option to attempt to build=20 - @echo the binaries - @echo. - @goto ExitFailure - ) - @if exist %EDK_TOOLS_PATH%\Bin\Win32 @rmdir /S /Q %EDK_TOOLS_PATH%= \Bin\Win32 - @call svn co https://svn.code.sf.net/p/edk2-toolbinaries/code/trun= k/Win32 "%EDK_TOOLS_PATH%\Bin\Win32" - ) else ( - @call svn co https://svn.code.sf.net/p/edk2-toolbinaries/code/trun= k/Win32 "%EDK_TOOLS_PATH%\Bin\Win32" - @if errorlevel 1 ( - @echo ERROR : The command-line svn tool is not available and t= he Win32 binaries do not exist - @echo Python does not appear to be available either. T= his script cannot be used to - @echo build the Win32 binaries or to obtain them from = this repository: - @echo https://svn.code.sf.net/p/edk2-toolbinaries/c= ode/trunk/Win32 - @goto ExitFailure - ) - ) - @goto ShowAndExit -) - -@if not "%REBUILD_TOOLS%"=3D=3D"TRUE" @goto ShowAndExit - -@REM The following code is used to rebuild the Win32 BaseTools binaries - = check that required tools are available -:Rebuild -@if not exist "%BASE_TOOLS_PATH%\Source" @goto NoBaseTools -@endlocal -@if not defined VCINSTALLDIR @goto NoVisualStudio -@if not defined PYTHONHOME @goto NoPython -@if not exist "%PYTHONHOME%\python.exe" @goto BadPython -@REM python.exe has been located, now make sure it's in the PATH -@call python --version > nul 2>&1 -@if errorlevel 1 @set "PATH=3D%PYTHONHOME%\python.exe;%PATH%" -@if not defined PYTHON_FREEZER_PATH ( - @if not exist "%PYTHONHOME%\Scripts\cxfreeze.bat" @goto NoCxFreeze - @set "PYTHON_FREEZER_PATH=3D%PYTHONHOME%\Scripts" -) -@call "%BASE_TOOLS_PATH%\Scripts\SetVisualStudio.bat" -@if errorlevel 1 @goto ExitFailure - -:ShowAndExit -@call "%BASE_TOOLS_PATH%\Scripts\ShowEnvironment.bat" - -@REM #####################################################################= #################### -@REM EXIT ROUTINES -@REM #####################################################################= #################### -:ExitSuccess -@set SCRIPT_NAME=3D -@set SCRIPT_VERSION=3D -@set SVN_REVISION=3D -@set RESET_ENVIRONMENT=3D -@set RECONFIG=3D -@set NT32PKG=3D -@set BUILD_TOOLS_WITH=3D -@set LOCATION=3D -@set REBUILD_TOOLS=3D -@set SVN_PULL=3D -@set SRC_CONF=3D -@set ARGUMENT=3D -@set SCRIPT=3D -@set LIST_VS_VERSIONS=3D -@set PYTHON_FREEZER_PATH=3D -@set PYTHON_BUILD=3D -@echo on -@exit /B 0 - -:ExitFailure -@set SCRIPT_NAME=3D -@set SCRIPT_VERSION=3D -@set SVN_REVISION=3D -@set RESET_ENVIRONMENT=3D -@set RECONFIG=3D -@set NT32PKG=3D -@set BUILD_TOOLS_WITH=3D -@set LOCATION=3D -@set REBUILD_TOOLS=3D -@set SVN_PULL=3D -@set SRC_CONF=3D -@set ARGUMENT=3D -@set SCRIPT=3D -@set LIST_VS_VERSIONS=3D -@set PYTHON_FREEZER_PATH=3D -@set PYTHON_BUILD=3D -@echo on -@exit /B 1 --=20 2.8.0.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel