diff options
author | Rebecca Cran <rebecca@bsdio.com> | 2023-04-24 11:20:42 -0600 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-05-11 02:14:12 +0000 |
commit | b9bbb4ae9308a98ada574e435e0987a274e7e7a2 (patch) | |
tree | e0eeb1a7982ca22ea2758b97dfdaee5d1958c99a /BaseTools/toolsetup.bat | |
parent | dd246227d6c633e180673bceefe8499abc6a4a46 (diff) | |
download | edk2-b9bbb4ae9308a98ada574e435e0987a274e7e7a2.zip edk2-b9bbb4ae9308a98ada574e435e0987a274e7e7a2.tar.gz edk2-b9bbb4ae9308a98ada574e435e0987a274e7e7a2.tar.bz2 |
BaseTools: only print the environment once in toolsetup.bat
Avoid printing %PATH% twice: move the printing of the environment down
to print_python_info.
Signed-off-by: Rebecca Cran <rebecca@bsdio.com>
Diffstat (limited to 'BaseTools/toolsetup.bat')
-rwxr-xr-x | BaseTools/toolsetup.bat | 35 |
1 files changed, 16 insertions, 19 deletions
diff --git a/BaseTools/toolsetup.bat b/BaseTools/toolsetup.bat index 85104aa..9521f67 100755 --- a/BaseTools/toolsetup.bat +++ b/BaseTools/toolsetup.bat @@ -250,24 +250,6 @@ if NOT exist %CONF_PATH%\build_rule.txt ( if defined RECONFIG copy /Y %EDK_TOOLS_PATH%\Conf\build_rule.template %CONF_PATH%\build_rule.txt > nul
)
-echo PATH = %PATH%
-echo.
-if defined WORKSPACE (
- echo WORKSPACE = %WORKSPACE%
-)
-if defined PACKAGES_PATH (
- echo PACKAGES_PATH = %PACKAGES_PATH%
-)
-echo EDK_TOOLS_PATH = %EDK_TOOLS_PATH%
-if defined BASE_TOOLS_PATH (
- echo BASE_TOOLS_PATH = %BASE_TOOLS_PATH%
-)
-if defined EDK_TOOLS_BIN (
- echo EDK_TOOLS_BIN = %EDK_TOOLS_BIN%
-)
-echo CONF_PATH = %CONF_PATH%
-echo.
-
:skip_reconfig
@REM
@@ -381,7 +363,22 @@ if %ERRORLEVEL% EQU 0 ( goto print_python_info
:print_python_info
- echo PATH = %PATH%
+ echo PATH = %PATH%
+ echo.
+ if defined WORKSPACE (
+ echo WORKSPACE = %WORKSPACE%
+ )
+ if defined PACKAGES_PATH (
+ echo PACKAGES_PATH = %PACKAGES_PATH%
+ )
+ echo EDK_TOOLS_PATH = %EDK_TOOLS_PATH%
+ if defined BASE_TOOLS_PATH (
+ echo BASE_TOOLS_PATH = %BASE_TOOLS_PATH%
+ )
+ if defined EDK_TOOLS_BIN (
+ echo EDK_TOOLS_BIN = %EDK_TOOLS_BIN%
+ )
+ echo CONF_PATH = %CONF_PATH%
echo PYTHON_COMMAND = %PYTHON_COMMAND%
echo PYTHONPATH = %PYTHONPATH%
echo.
|