Added "NewBuild" option to incorporate new build system locating in $(WORKSPACE)\BaseTools. This is a temporary solution which is subject to change in the future. Don't use it in formal platform or module build.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2706 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
19
edksetup.bat
19
edksetup.bat
@@ -25,6 +25,14 @@
|
|||||||
|
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
@REM
|
||||||
|
@REM Set the WORKSPACE to the current working directory
|
||||||
|
@REM
|
||||||
|
set WORKSPACE=%CD%
|
||||||
|
|
||||||
|
@if /I "%1"=="NewBuild" goto NewBuild
|
||||||
|
|
||||||
|
:AntBuild
|
||||||
@REM
|
@REM
|
||||||
@REM Check the required system environment variables
|
@REM Check the required system environment variables
|
||||||
@REM
|
@REM
|
||||||
@@ -60,11 +68,6 @@ if not exist %ANT_HOME%\lib\ant-contrib.jar goto no_antcontrib
|
|||||||
if "%XMLBEANS_HOME%"=="" goto no_xmlbeans
|
if "%XMLBEANS_HOME%"=="" goto no_xmlbeans
|
||||||
if not exist %XMLBEANS_HOME%\lib\saxon8.jar goto no_saxon8
|
if not exist %XMLBEANS_HOME%\lib\saxon8.jar goto no_saxon8
|
||||||
|
|
||||||
@REM
|
|
||||||
@REM Set the WORKSPACE to the current working directory
|
|
||||||
@REM
|
|
||||||
set WORKSPACE=%CD%
|
|
||||||
|
|
||||||
set FRAMEWORK_TOOLS_PATH=%WORKSPACE%\Tools\bin
|
set FRAMEWORK_TOOLS_PATH=%WORKSPACE%\Tools\bin
|
||||||
|
|
||||||
if not defined ORIGINAL_CLASSPATH set ORIGINAL_CLASSPATH=%CLASSPATH%
|
if not defined ORIGINAL_CLASSPATH set ORIGINAL_CLASSPATH=%CLASSPATH%
|
||||||
@@ -272,6 +275,12 @@ echo only copied to target.txt, tools_def.txt, FrameworkDatabase.db respectivel
|
|||||||
echo are not existed. Using option [Reconfig] to do the force copy.
|
echo are not existed. Using option [Reconfig] to do the force copy.
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
|
:NewBuild
|
||||||
|
@IF NOT EXIST "BaseTools\toolsetup.bat" goto AntBuild
|
||||||
|
@set EDK_TOOLS_PATH=%WORKSPACE%\BaseTools
|
||||||
|
@call BaseTools\toolsetup.bat
|
||||||
|
@goto end
|
||||||
|
|
||||||
:end
|
:end
|
||||||
@echo on
|
@echo on
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user