win-pvdrivers

view sign.bat @ 645:748f32b33e5d

Fixed problem with signing
author James Harper <james.harper@bendigoit.com.au>
date Tue Aug 25 11:50:21 2009 +1000 (2009-08-25)
parents bf13631a5054
children 3163b141fda5
line source
1 @ECHO OFF
2 IF %_BUILDARCH%==x86 (SET BUILDDIR=obj%BUILD_ALT_DIR%\i386) ELSE (SET BUILDDIR=obj%BUILD_ALT_DIR%\amd64)
3 IF %DDK_TARGET_OS%==WinXP SET SIGN_OS=XP_X86
4 IF %DDK_TARGET_OS%%_BUILDARCH%==WinNETx86 SET SIGN_OS=Server2003_X86
5 IF %DDK_TARGET_OS%%_BUILDARCH%==WinNETAMD64 SET SIGN_OS=XP_X64,Server2003_X64
6 IF %DDK_TARGET_OS%%_BUILDARCH%==WinLHx86 SET SIGN_OS=Vista_X86,Server2008_X86
7 IF %DDK_TARGET_OS%%_BUILDARCH%==WinLHAMD64 SET SIGN_OS=Vista_X64,Server2008_X64
9 ECHO DDK_TARGET_OS=%DDK_TARGET_OS%
10 ECHO _BUILDARCH=%_BUILDARCH%
11 ECHO BUILDDIR=%BUILDDIR%
12 ECHO SIGN_OS=%SIGN_OS%
14 xcopy /D coinst\%BUILDDIR%\coinst.dll xenvbd\%BUILDDIR%
15 move xenvbd\%BUILDDIR%\coinst.dll xenvbd\%BUILDDIR%\xencoinst.dll
16 xcopy /D %BASEDIR%\redist\wdf\%_BUILDARCH%\WdfCoInstaller01007.dll xenpci\%BUILDDIR%
18 REM IF NOT EXIST SIGN_CONFIG.BAT GOTO DONT_SIGN
19 REM CALL SIGN_CONFIG.BAT
21 SET CERT_NAME=GPLPV_Test_Cert
23 %DDK_PATH%\bin\selfsign\signtool sign /v /s PrivateCertStore /n %CERT_NAME% /t http://timestamp.verisign.com/scripts/timestamp.dll xenpci\%BUILDDIR%\xenpci.sys xenpci\%BUILDDIR%\WdfCoInstaller01007.dll
24 %DDK_PATH%\bin\selfsign\inf2cat /driver:xenpci\%BUILDDIR% /os:%SIGN_OS%
25 %DDK_PATH%\bin\selfsign\signtool sign /v /s PrivateCertStore /n %CERT_NAME% /t http://timestamp.verisign.com/scripts/timestamp.dll xenpci\%BUILDDIR%\xenpci.cat
27 %DDK_PATH%\bin\selfsign\signtool sign /v /s PrivateCertStore /n %CERT_NAME% /t http://timestamp.verisign.com/scripts/timestamp.dll xennet\%BUILDDIR%\xennet.sys
28 %DDK_PATH%\bin\selfsign\inf2cat /driver:xennet\%BUILDDIR% /os:%SIGN_OS%
29 %DDK_PATH%\bin\selfsign\signtool sign /v /s PrivateCertStore /n %CERT_NAME% /t http://timestamp.verisign.com/scripts/timestamp.dll xennet\%BUILDDIR%\xennet.cat
31 %DDK_PATH%\bin\selfsign\signtool sign /v /s PrivateCertStore /n %CERT_NAME% /t http://timestamp.verisign.com/scripts/timestamp.dll xenvbd\%BUILDDIR%\xenvbd.sys xenvbd\%BUILDDIR%\xencoinst.dll
32 %DDK_PATH%\bin\selfsign\inf2cat /driver:xenvbd\%BUILDDIR% /os:%SIGN_OS%
33 %DDK_PATH%\bin\selfsign\signtool sign /v /s PrivateCertStore /n %CERT_NAME% /t http://timestamp.verisign.com/scripts/timestamp.dll xenvbd\%BUILDDIR%\xenvbd.cat
35 %DDK_PATH%\bin\selfsign\signtool sign /v /s PrivateCertStore /n %CERT_NAME% /t http://timestamp.verisign.com/scripts/timestamp.dll xenscsi\%BUILDDIR%\xenscsi.sys
36 %DDK_PATH%\bin\selfsign\inf2cat /driver:xenscsi\%BUILDDIR% /os:%SIGN_OS%
37 %DDK_PATH%\bin\selfsign\signtool sign /v /s PrivateCertStore /n %CERT_NAME% /t http://timestamp.verisign.com/scripts/timestamp.dll xenscsi\%BUILDDIR%\xenscsi.cat
39 :DONT_SIGN