win-pvdrivers

changeset 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 909b17b3599e
children 27d33fb6af4f
files quicksign.bat
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/quicksign.bat	Fri Dec 14 21:22:35 2012 +1100
     1.3 @@ -0,0 +1,35 @@
     1.4 +@ECHO OFF
     1.5 +
     1.6 +CALL set_ddk_path.bat
     1.7 +
     1.8 +IF %_BUILDARCH%==x86 (SET BUILDDIR=obj%BUILD_ALT_DIR%\i386) ELSE (SET BUILDDIR=obj%BUILD_ALT_DIR%\amd64)
     1.9 +IF %DDK_TARGET_OS%==Win2K SET SIGN_OS=2000
    1.10 +IF %DDK_TARGET_OS%==WinXP SET SIGN_OS=XP_X86
    1.11 +IF %DDK_TARGET_OS%%_BUILDARCH%==WinNETx86 SET SIGN_OS=Server2003_X86
    1.12 +IF %DDK_TARGET_OS%%_BUILDARCH%==WinNETAMD64 SET SIGN_OS=XP_X64,Server2003_X64
    1.13 +IF %DDK_TARGET_OS%%_BUILDARCH%==WinLHx86 SET SIGN_OS=Vista_X86,Server2008_X86
    1.14 +IF %DDK_TARGET_OS%%_BUILDARCH%==WinLHAMD64 SET SIGN_OS=Vista_X64,Server2008_X64
    1.15 +
    1.16 +SET CERT_FILENAME=
    1.17 +SET CERT_PASSWORD=
    1.18 +SET CERT_CROSS_CERT_FILENAME=
    1.19 +SET CERT_PUBLIC_FILENAME=
    1.20 +call sign_config.bat
    1.21 +
    1.22 +SET SIGNTOOL=%DDK_PATH%\bin\x86\signtool.exe
    1.23 +IF NOT EXIST %SIGNTOOL% SET SIGNTOOL=%DDK_PATH%\bin\selfsign\signtool.exe
    1.24 +
    1.25 +ECHO DDK_TARGET_OS=%DDK_TARGET_OS%
    1.26 +ECHO _BUILDARCH=%_BUILDARCH%
    1.27 +ECHO BUILDDIR=%BUILDDIR%
    1.28 +ECHO SIGN_OS=%SIGN_OS%
    1.29 +ECHO SIGNTOOL=%SIGNTOOL%
    1.30 +SET CERT_CROSS_CERT_FLAG=
    1.31 +IF DEFINED CERT_CROSS_CERT_FILENAME SET CERT_CROSS_CERT_FLAG=/ac %CERT_CROSS_CERT_FILENAME%
    1.32 +SET CERT_PASSWORD_FLAG=
    1.33 +IF DEFINED CERT_PASSWORD SET CERT_PASSWORD_FLAG=/p %CERT_PASSWORD%
    1.34 +%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
    1.35 +%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
    1.36 +%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
    1.37 +%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
    1.38 +%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