@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
\r
set FRAMEWORK_TOOLS_PATH=%WORKSPACE%\Tools\bin\r
\r
-if not defined ORIGINAL_CLASSPATH set ORIGINAL_CLASSPATH=%CLASSPATH%\r
+if not defined ORIGINAL_CLASSPATH set ORIGINAL_CLASSPATH= %CLASSPATH%\r
set CLASSPATH=%ORIGINAL_CLASSPATH%\r
\r
if defined WORKSPACE_TOOLS_PATH goto check_path\r
@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
@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
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