Changeset 82226 in vbox for trunk/src/VBox/Installer
- Timestamp:
- Nov 26, 2019 6:18:16 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/win/Scripts/PackDriversForSubmission.cmd
r79708 r82226 26 26 set _MY_OPT_BINDIR=..\bin 27 27 set _MY_OPT_PDBDIR= 28 set _MY_OPT_GADIR= 29 set _MY_OPT_WITH_MAIN=1 28 30 set _MY_OPT_WITH_PDB=1 29 31 set _MY_OPT_EXTPACK= 30 32 set _MY_OPT_WITH_EXTPACK=1 33 set _MY_OPT_WITH_GA=0 31 34 set _MY_OPT_OUTPUT= 32 35 set _MY_OPT_DDF_FILE= 33 set _MY_OPT_ARCH= @KBUILD_TARGET_ARCH@36 set _MY_OPT_ARCH=amd64 34 37 35 38 :argument_loop … … 52 55 if ".%1" == ".-e" goto opt_e 53 56 if ".%1" == ".--extpack" goto opt_e 57 if ".%1" == ".--no-main" goto opt_m 54 58 if ".%1" == ".-n" goto opt_n 55 59 if ".%1" == ".--no-pdb" goto opt_n … … 60 64 if ".%1" == ".-x" goto opt_x 61 65 if ".%1" == ".--no-extpack" goto opt_x 66 if ".%1" == ".-g" goto opt_g 67 if ".%1" == ".--ga" goto opt_g 68 if ".%1" == ".--additions" goto opt_g 62 69 echo syntax error: Unknown option: %1 63 70 echo Try --help to list valid options. … … 94 101 echo Microsoft to run on recent Windows 10 installations. 95 102 echo . 96 echo Usage: PackDriversForSubmission.cmd [-b bindir] [-p pdbdir] [- n/--no-pdb]97 echo [- e expack] [-x/--no-extpack] [-o output.cab] [-p output.ddf] [-a x86/amd64]103 echo Usage: PackDriversForSubmission.cmd [-b bindir] [-p pdbdir] [--no-main] [-n/--no-pdb] [-e expack] 104 echo [-x/--no-extpack] [-g/--ga/--additions] [-o output.cab] [-p output.ddf] [-a x86/amd64] 98 105 echo . 99 106 echo Warning! This script should normally be invoked from the repack directory w/o any parameters. 100 107 goto end_failed 101 108 109 :opt_m 110 set _MY_OPT_WITH_MAIN=0 111 shift 112 goto argument_loop 113 102 114 :opt_n 103 115 set _MY_OPT_WITH_PDB=0 … … 120 132 goto argument_loop 121 133 134 :opt_g 135 set _MY_OPT_WITH_GA=1 136 shift 137 goto argument_loop 138 139 122 140 :syntax_error_missing_value 123 141 echo syntax error: missing or empty option value after %1 … … 139 157 echo syntax error: Specified extension pack does not exist: "%_MY_OPT_EXTPACK%" 140 158 goto end_failed 159 160 :error_additions_does_not_exist 161 echo syntax error: Specified guest additions does not exist: "%_MY_OPT_GADIR%" 162 goto end_failed 163 141 164 142 165 :error_output_exists … … 152 175 if not exist "%_MY_OPT_BINDIR%" goto error_bindir_does_not_exist 153 176 154 if "%_MY_OPT_WITH_PDB " == "0"goto no_pdbdir_validation177 if "%_MY_OPT_WITH_PDB%" == "0" goto no_pdbdir_validation 155 178 if ".%_MY_OPT_PDBDIR%" == "." set _MY_OPT_PDBDIR=%_MY_OPT_BINDIR%\..\stage\debug\bin 156 179 if not exist "%_MY_OPT_PDBDIR%" goto error_pdbdir_does_not_exist 157 180 :no_pdbdir_validation 158 181 159 if "%_MY_OPT_WITH_EXTPACK " == "0"goto no_extpack_validation182 if "%_MY_OPT_WITH_EXTPACK%" == "0" goto no_extpack_validation 160 183 if ".%_MY_OPT_EXTPACK%" == "." set _MY_OPT_EXTPACK=%_MY_OPT_BINDIR%\Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack 161 184 if not exist "%_MY_OPT_EXTPACK%" goto error_extpack_does_not_exist 162 :no_extack_validation 163 164 if ".%_MY_OPT_OUTPUT%" == "." set _MY_OPT_OUTPUT=VBoxDrivers-@VBOX_VERSION_STRING@r@VBOX_SVN_REV@-%_MY_OPT_ARCH%.cab 185 :no_extpack_validation 186 187 if "%_MY_OPT_WITH_GA%" == "0" goto no_additions_validation 188 if ".%_MY_OPT_GADIR%" == "." set _MY_OPT_GADIR=%_MY_OPT_BINDIR%\additions 189 if not exist "%_MY_OPT_GADIR%" goto error_additions_does_not_exist 190 :no_additions_validation 191 192 if ".%_MY_OPT_OUTPUT%" == "." set _MY_OPT_OUTPUT=VBoxDrivers-6.1.0_RC1_SPBr135037-%_MY_OPT_ARCH%.cab 165 193 if exist "%_MY_OPT_OUTPUT%" goto error_output_exists 166 194 … … 177 205 rem 178 206 set PATH=%SystemRoot%\System32;%PATH%;%_MY_OPT_BINDIR% 179 if "%_MY_OPT_WITH_EXTPACK " == "0"goto no_extpack_unpack207 if "%_MY_OPT_WITH_EXTPACK%" == "0" goto no_extpack_unpack 180 208 set _MY_EXTPACK_DIR=%_MY_OPT_BINDIR%\ExtensionPacks\Oracle_VM_VirtualBox_Extension_Pack 181 209 if not exist "%_MY_OPT_BINDIR%\ExtensionPacks" ( mkdir "%_MY_OPT_BINDIR%\ExtensionPacks" || goto end_failed ) … … 202 230 echo .Set RptFileName=%_MY_OPT_OUTPUT%.rpt>> "%_MY_OPT_DDF_FILE%" 203 231 232 if %_MY_OPT_WITH_MAIN% == 0 goto skip_main_package 204 233 echo .Set DestinationDir=VBoxDrv>> "%_MY_OPT_DDF_FILE%" 205 234 echo %_MY_OPT_BINDIR%\VBoxDrv.inf VBoxDrv.inf>> "%_MY_OPT_DDF_FILE%" … … 232 261 if "%_MY_OPT_WITH_PDB%" == "1" echo %_MY_OPT_PDBDIR%\VMMR0.pdb VMMR0.pdb>> "%_MY_OPT_DDF_FILE%" 233 262 echo %_MY_OPT_BINDIR%\VBoxDDR0.r0 VBoxDDR0.r0>> "%_MY_OPT_DDF_FILE%" 263 :skip_main_package 264 234 265 if "%_MY_OPT_WITH_PDB%" == "1" echo %_MY_OPT_PDBDIR%\VBoxDDR0.pdb VBoxDDR0.pdb>> "%_MY_OPT_DDF_FILE%" 235 266 236 if "%_MY_OPT_WITH_EXTPACK " == "0"goto no_extpack_ddf267 if "%_MY_OPT_WITH_EXTPACK%" == "0" goto no_extpack_ddf 237 268 echo .Set DestinationDir=VBoxExtPackPuel>> "%_MY_OPT_DDF_FILE%" 238 269 echo .\VBoxExtPackPuel.inf VBoxExtPackPuel.inf>> "%_MY_OPT_DDF_FILE%" … … 242 273 :no_extpack_ddf 243 274 275 if "%_MY_OPT_WITH_GA%" == "0" goto no_additions_ddf 276 echo .Set DestinationDir=VBoxGuestAdditions>> "%_MY_OPT_DDF_FILE%" 277 echo %_MY_OPT_GADIR%\VBoxGuest.inf>> "%_MY_OPT_DDF_FILE%" 278 echo %_MY_OPT_GADIR%\VBoxGuest.sys>> "%_MY_OPT_DDF_FILE%" 279 echo %_MY_OPT_GADIR%\VBoxMouse.inf>> "%_MY_OPT_DDF_FILE%" 280 echo %_MY_OPT_GADIR%\VBoxMouse.sys>> "%_MY_OPT_DDF_FILE%" 281 rem echo %_MY_OPT_GADIR%\VBoxSF.sys>> "%_MY_OPT_DDF_FILE%" 282 echo %_MY_OPT_GADIR%\VBoxVideo.inf>> "%_MY_OPT_DDF_FILE%" 283 echo %_MY_OPT_GADIR%\VBoxVideo.sys>> "%_MY_OPT_DDF_FILE%" 284 echo %_MY_OPT_GADIR%\VBoxWddm.inf>> "%_MY_OPT_DDF_FILE%" 285 echo %_MY_OPT_GADIR%\VBoxWddm.sys>> "%_MY_OPT_DDF_FILE%" 286 :no_additions_ddf 287 244 288 rem 245 289 rem Create the cabient file. … … 265 309 @endlocal 266 310 @endlocal 267
Note:
See TracChangeset
for help on using the changeset viewer.