win-pvdrivers

view quicksign.bat @ 998:7d239a6a2af1

add quicksign.bat to quickly sign files for the current build environment
author James Harper <james.harper@bendigoit.com.au>
date Fri Dec 14 21:22:35 2012 +1100 (2012-12-14)
parents
children 4f7d5a8636bd
line source
1 @ECHO OFF
3 CALL set_ddk_path.bat
5 IF %_BUILDARCH%==x86 (SET BUILDDIR=obj%BUILD_ALT_DIR%\i386) ELSE (SET BUILDDIR=obj%BUILD_ALT_DIR%\amd64)
6 IF %DDK_TARGET_OS%==Win2K SET SIGN_OS=2000
7 IF %DDK_TARGET_OS%==WinXP SET SIGN_OS=XP_X86
8 IF %DDK_TARGET_OS%%_BUILDARCH%==WinNETx86 SET SIGN_OS=Server2003_X86
9 IF %DDK_TARGET_OS%%_BUILDARCH%==WinNETAMD64 SET SIGN_OS=XP_X64,Server2003_X64
10 IF %DDK_TARGET_OS%%_BUILDARCH%==WinLHx86 SET SIGN_OS=Vista_X86,Server2008_X86
11 IF %DDK_TARGET_OS%%_BUILDARCH%==WinLHAMD64 SET SIGN_OS=Vista_X64,Server2008_X64
13 SET CERT_FILENAME=
14 SET CERT_PASSWORD=
15 SET CERT_CROSS_CERT_FILENAME=
16 SET CERT_PUBLIC_FILENAME=
17 call sign_config.bat
19 SET SIGNTOOL=%DDK_PATH%\bin\x86\signtool.exe
20 IF NOT EXIST %SIGNTOOL% SET SIGNTOOL=%DDK_PATH%\bin\selfsign\signtool.exe
22 ECHO DDK_TARGET_OS=%DDK_TARGET_OS%
23 ECHO _BUILDARCH=%_BUILDARCH%
24 ECHO BUILDDIR=%BUILDDIR%
25 ECHO SIGN_OS=%SIGN_OS%
26 ECHO SIGNTOOL=%SIGNTOOL%
27 SET CERT_CROSS_CERT_FLAG=
28 IF DEFINED CERT_CROSS_CERT_FILENAME SET CERT_CROSS_CERT_FLAG=/ac %CERT_CROSS_CERT_FILENAME%
29 SET CERT_PASSWORD_FLAG=
30 IF DEFINED CERT_PASSWORD SET CERT_PASSWORD_FLAG=/p %CERT_PASSWORD%
31 %SIGNTOOL% sign /v %CERT_CROSS_CERT_FLAG% /f %CERT_FILENAME% %CERT_PASSWORD_FLAG% /t http://timestamp.verisign.com/scripts/timestamp.dll xenpci\%BUILDDIR%\xenpci.sys
32 %SIGNTOOL% sign /v %CERT_CROSS_CERT_FLAG% /f %CERT_FILENAME% %CERT_PASSWORD_FLAG% /t http://timestamp.verisign.com/scripts/timestamp.dll xenvbd\%BUILDDIR%\xenvbd.sys
33 %SIGNTOOL% sign /v %CERT_CROSS_CERT_FLAG% /f %CERT_FILENAME% %CERT_PASSWORD_FLAG% /t http://timestamp.verisign.com/scripts/timestamp.dll xennet\%BUILDDIR%\xennet.sys
34 %SIGNTOOL% sign /v %CERT_CROSS_CERT_FLAG% /f %CERT_FILENAME% %CERT_PASSWORD_FLAG% /t http://timestamp.verisign.com/scripts/timestamp.dll xenscsi\%BUILDDIR%\xenscsi.sys
35 %SIGNTOOL% sign /v %CERT_CROSS_CERT_FLAG% /f %CERT_FILENAME% %CERT_PASSWORD_FLAG% /t http://timestamp.verisign.com/scripts/timestamp.dll xenusb\%BUILDDIR%\xenusb.sys