Changeset 58459 in vbox for trunk/src/VBox/Devices/EFI/Firmware/edksetup.bat
- Timestamp:
- Oct 28, 2015 8:17:18 PM (9 years ago)
- Location:
- trunk/src/VBox/Devices/EFI/Firmware
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/Firmware
-
Property svn:mergeinfo
set to (toggle deleted branches)
/vendor/edk2/current 103735-103757
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/Firmware/edksetup.bat
r48674 r58459 2 2 @REM Windows batch file to setup a WORKSPACE environment 3 3 @REM 4 @REM Copyright (c) 2006 - 201 0, Intel Corporation. All rights reserved.<BR>4 @REM Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR> 5 5 @REM This program and the accompanying materials 6 6 @REM are licensed and made available under the terms and conditions of the BSD License … … 32 32 33 33 if not defined WORKSPACE ( 34 @goto SetWorkSpace34 goto SetWorkSpace 35 35 ) 36 36 37 37 if %WORKSPACE% == %CD% ( 38 38 @REM Workspace is not changed. 39 @goto ParseArgs39 goto ParseArgs 40 40 ) 41 41 … … 48 48 49 49 :ParseArgs 50 @if /I "%1"=="-h" goto Usage51 @if /I "%1"=="-help" goto Usage52 @if /I "%1"=="--help" goto Usage53 @if /I "%1"=="/h" goto Usage54 @if /I "%1"=="/?" goto Usage55 @if /I "%1"=="/help" goto Usage50 if /I "%1"=="-h" goto Usage 51 if /I "%1"=="-help" goto Usage 52 if /I "%1"=="--help" goto Usage 53 if /I "%1"=="/h" goto Usage 54 if /I "%1"=="/?" goto Usage 55 if /I "%1"=="/help" goto Usage 56 56 57 @if /I not "%1"=="--nt32" goto no_nt3257 if /I not "%1"=="--nt32" goto no_nt32 58 58 59 59 @REM Flag, --nt32 is set … … 62 62 63 63 if not defined VCINSTALLDIR ( 64 if defined VS 71COMNTOOLS (65 call "%VS 71COMNTOOLS%\vsvars32.bat"64 if defined VS120COMNTOOLS ( 65 call "%VS120COMNTOOLS%\vsvars32.bat" 66 66 ) else ( 67 if defined VS 80COMNTOOLS (68 call "%VS 80COMNTOOLS%\vsvars32.bat"67 if defined VS110COMNTOOLS ( 68 call "%VS110COMNTOOLS%\vsvars32.bat" 69 69 ) else ( 70 if defined VS 90COMNTOOLS (71 call "%VS 90COMNTOOLS%\vsvars32.bat"70 if defined VS100COMNTOOLS ( 71 call "%VS100COMNTOOLS%\vsvars32.bat" 72 72 ) else ( 73 echo. 74 echo !!! WARNING !!! Cannot find Visual Studio !!! 75 echo. 73 if defined VS90COMNTOOLS ( 74 call "%VS90COMNTOOLS%\vsvars32.bat" 75 ) else ( 76 if defined VS80COMNTOOLS ( 77 call "%VS80COMNTOOLS%\vsvars32.bat" 78 ) else ( 79 if defined VS71COMNTOOLS ( 80 call "%VS71COMNTOOLS%\vsvars32.bat" 81 ) else ( 82 echo. 83 echo !!! WARNING !!! Cannot find Visual Studio !!! 84 echo. 85 ) 86 ) 87 ) 76 88 ) 77 89 ) … … 81 93 82 94 :no_nt32 83 @if /I "%1"=="NewBuild" shift84 @if not defined EDK_TOOLS_PATHset EDK_TOOLS_PATH=%WORKSPACE%\BaseTools85 @IF NOT EXIST "%EDK_TOOLS_PATH%\toolsetup.bat" goto BadBaseTools86 @call %EDK_TOOLS_PATH%\toolsetup.bat %*87 @if /I "%1"=="Reconfig" shift88 @goto check_cygwin95 if /I "%1"=="NewBuild" shift 96 set EDK_TOOLS_PATH=%WORKSPACE%\BaseTools 97 IF NOT EXIST "%EDK_TOOLS_PATH%\toolsetup.bat" goto BadBaseTools 98 call %EDK_TOOLS_PATH%\toolsetup.bat %* 99 if /I "%1"=="Reconfig" shift 100 goto check_cygwin 89 101 90 102 :BadBaseTools 91 103 @REM 92 @REM Need the BaseTools Package in order to build104 REM Need the BaseTools Package in order to build 93 105 @REM 94 echo.95 echo !!! ERROR !!! The BaseTools Package was not found !!!96 echo.97 echo Set the system environment variable, EDK_TOOLS_PATH to the BaseTools,98 echo For example,99 echo set EDK_TOOLS_PATH=C:\MyTools\BaseTools100 echo The setup script, toolsetup.bat must reside in this folder.101 echo.102 @goto end106 @echo. 107 @echo !!! ERROR !!! The BaseTools Package was not found !!! 108 @echo. 109 @echo Set the system environment variable, EDK_TOOLS_PATH to the BaseTools, 110 @echo For example, 111 @echo set EDK_TOOLS_PATH=C:\MyTools\BaseTools 112 @echo The setup script, toolsetup.bat must reside in this folder. 113 @echo. 114 goto end 103 115 104 116 :check_cygwin 105 @if exist c:\cygwin ( 106 @set CYGWIN_HOME=c:\cygwin 117 if defined CYGWIN_HOME ( 118 if not exist "%CYGWIN_HOME%" ( 119 @echo. 120 @echo !!! WARNING !!! CYGWIN_HOME not found, gcc build may not be used !!! 121 @echo. 122 ) 123 ) else ( 124 if exist c:\cygwin ( 125 set CYGWIN_HOME=c:\cygwin 107 126 ) else ( 108 127 @echo. … … 110 129 @echo. 111 130 ) 131 ) 112 132 113 @if NOT "%1"=="" goto Usage114 @goto end133 :cygwin_done 134 if "%1"=="" goto end 115 135 116 136 :Usage … … 122 142 @echo. 123 143 @echo Note that target.template, tools_def.template and build_rules.template 124 @echo will be onlycopied to target.txt, tools_def.txt and build_rule.txt125 @echo respectively if they do not exist. Us ing option [Reconfig] to force the copy.144 @echo will only be copied to target.txt, tools_def.txt and build_rule.txt 145 @echo respectively if they do not exist. Use option [Reconfig] to force the copy. 126 146 @echo. 127 @goto end147 goto end 128 148 129 149 :end 130 @popd 131 @echo on 150 popd 132 151
Note:
See TracChangeset
for help on using the changeset viewer.