summaryrefslogtreecommitdiffstats
path: root/edksetup.bat
diff options
context:
space:
mode:
authorChris Ruffin <chris.ruffin@intel.com>2017-06-22 14:59:49 -0400
committerYonghong Zhu <yonghong.zhu@intel.com>2017-07-04 10:16:13 +0800
commit1e6add9e476696461526163bde843570cfdffb39 (patch)
tree86dcceae62d3fd8bd83a1251156dd054c3b24972 /edksetup.bat
parentfb5a64de3a8be8482c3173f85cddda5ae204fe40 (diff)
downloadedk2-1e6add9e476696461526163bde843570cfdffb39.tar.gz
edk2-1e6add9e476696461526163bde843570cfdffb39.tar.bz2
edk2-1e6add9e476696461526163bde843570cfdffb39.zip
BaseTools: suppress usage instructions with rebuild options
When using edksetup.bat Rebuild, the script outputs usage instructions to the console, when no usage error is encountered. Update the usage instructions and suppress these usage instructions when using the Rebuild, ForceRebuild options. Change-Id: Ica98e19f3d5198df2519106e4c55314c255e04ac Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Ruffin <chris.ruffin@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'edksetup.bat')
-rwxr-xr-xedksetup.bat13
1 files changed, 8 insertions, 5 deletions
diff --git a/edksetup.bat b/edksetup.bat
index 7aa167549b..97e2330e8c 100755
--- a/edksetup.bat
+++ b/edksetup.bat
@@ -14,10 +14,10 @@
@REM set CYGWIN_HOME=C:\cygwin
-@REM usage:
+@REM usage:
@REM edksetup.bat [--nt32] [AntBuild] [Rebuild] [ForceRebuild] [Reconfig]
@REM if the argument, skip is present, only the paths and the
-@REM test and set of environment settings are performed.
+@REM test and set of environment settings are performed.
@REM ##############################################################
@REM # You should not have to modify anything below this line
@@ -72,7 +72,7 @@ if not defined EDK_TOOLS_PATH (
) else (
echo.
echo !!! ERROR !!! Cannot find BaseTools !!!
- echo.
+ echo.
goto BadBaseTools
)
)
@@ -141,11 +141,13 @@ if defined CYGWIN_HOME (
)
:cygwin_done
+if /I "%1"=="Rebuild" shift
+if /I "%1"=="ForceRebuild" shift
if "%1"=="" goto end
:Usage
@echo.
- @echo Usage: "%0 [-h | -help | --help | /h | /help | /?] [--nt32 [X64]] [Reconfig]"
+ @echo Usage: "%0 [-h | -help | --help | /h | /help | /?] [--nt32 [X64]] [Reconfig] [Rebuild] [ForceRebuild]"
@echo --nt32 [X64] If a compiler tool chain is not available in the
@echo environment, call a script to attempt to set one up.
@echo This flag is only required if building the
@@ -157,6 +159,8 @@ if "%1"=="" goto end
@echo rebuild.
@echo.
@echo Reconfig Reinstall target.txt, tools_def.txt and build_rule.txt.
+ @echo Rebuild Perform incremental rebuild of BaseTools binaries.
+ @echo ForceRebuild Force a full rebuild of BaseTools binaries.
@echo.
@echo Note that target.template, tools_def.template and build_rules.template
@echo will only be copied to target.txt, tools_def.txt and build_rule.txt
@@ -166,4 +170,3 @@ if "%1"=="" goto end
:end
popd
-