]> git.proxmox.com Git - mirror_edk2.git/blobdiff - edksetup.bat
Changed invalid tool chain tag name to WARNING rather than an ERROR
[mirror_edk2.git] / edksetup.bat
index 333f061eabc9ac3246693f1885e1409e9256331f..7fabe4690e921b6d2be5a841258f983a03f2e380 100644 (file)
@@ -15,7 +15,7 @@
 @REM set XMLBEANS_HOME=C:\xmlbeans\r
 @REM set CYGWIN_HOME=C:\cygwin\r
 \r
-@REM usage: edksetup.bat [Rebuild] [ForceRebuild]\r
+@REM usage: edksetup.bat [Rebuild] [ForceRebuild] [Reconfig]\r
 @REM if the argument, skip is present, only the paths and the\r
 @REM test and set of environment settings are performed. \r
 \r
@@ -90,6 +90,8 @@ echo Resetting the PATH variable to include the FRAMEWORK_TOOLS_PATH for this WO
 @if "%1"=="/h" goto Usage\r
 @if "%1"=="/?" goto Usage\r
 @if "%1"=="/help" goto Usage\r
+@if "%1"=="ForceRebuild" goto ForceBuild\r
+@if "%1"=="Reconfig" goto Reconfig\r
 \r
 @IF NOT EXIST "Tools\Jars\Common.jar" goto NormalBuild\r
 @IF NOT EXIST "Tools\Jars\PcdTools.jar" goto NormalBuild\r
@@ -131,7 +133,6 @@ echo Resetting the PATH variable to include the FRAMEWORK_TOOLS_PATH for this WO
 @IF NOT EXIST "Tools\bin\dlg.exe" goto NormalBuild\r
 \r
 @if "%1"=="Rebuild" goto NormalBuild\r
-@if "%1"=="ForceRebuild" goto ForceBuild\r
 @if NOT "%1"=="" goto Usage\r
 \r
 goto skipbuild\r
@@ -250,9 +251,23 @@ set CLASSPATH=%CLASSPATH%;%WORKSPACE%\Tools\Bin\MigrationTools.jar
 echo CLASSPATH:     %CLASSPATH%\r
 goto end\r
 \r
+:Reconfig\r
+@REM\r
+@REM Reinstall all config files\r
+@REM\r
+call ant -f %WORKSPACE%\Tools\build.xml reconfig\r
+goto end\r
+\r
 :Usage\r
 echo.\r
-echo  Usage: %0 [Rebuild] [ForceRebuild]\r
+echo  Usage: %0 [Rebuild] [ForceRebuild] [Reconfig]\r
+echo         Rebuild:       Incremental build, only build those updated tools; \r
+echo         ForceRebuild:  Rebuild all tools neither updated or not; \r
+echo         Reconfig:      Reinstall target.txt, tools_def.txt, FrameworkDatabase.db. \r
+echo.\r
+echo  Note that target.template, tools_def.template, FrameworkDatabase.template will be\r
+echo  only copied to target.txt, tools_def.txt, FrameworkDatabase.db respectively if they\r
+echo  are not existed. Using option [Reconfig] to do the force copy. \r
 echo.\r
 \r
 :end\r