win-pvdrivers

annotate sign.bat @ 631:bf13631a5054

avoid 7b bsod by better defining installation and driver loading order so xenpci won't hide the boot disk before xenvbd is properly installed
- only hide devices once the pv driver to load their counterpart device is installed (move hide_device list creation from xenpci.inf to xenscsi.inf, xenvbd.inf, xennet.inf)
- remove default hiding list (in case no drivers were installed yet)
- force a reboot after xenvbd installation to avoid having both it and the drivers it should replace running at the same time causing disk corruption
- hide more xenvbd conflicting devices
author Amir Szekely <amir@neocleus.com>
date Tue Aug 18 17:37:27 2009 +0300 (2009-08-18)
parents 003c946e756a
children 748f32b33e5d
rev   line source
james@542 1 @ECHO OFF
james@542 2 IF %_BUILDARCH%==x86 (SET BUILDDIR=obj%BUILD_ALT_DIR%\i386) ELSE (SET BUILDDIR=obj%BUILD_ALT_DIR%\amd64)
james@542 3 IF %DDK_TARGET_OS%==WinXP SET SIGN_OS=XP_X86
james@542 4 IF %DDK_TARGET_OS%%_BUILDARCH%==WinNETx86 SET SIGN_OS=Server2003_X86
james@542 5 IF %DDK_TARGET_OS%%_BUILDARCH%==WinNETAMD64 SET SIGN_OS=XP_X64,Server2003_X64
james@542 6 IF %DDK_TARGET_OS%%_BUILDARCH%==WinLHx86 SET SIGN_OS=Vista_X86,Server2008_X86
james@542 7 IF %DDK_TARGET_OS%%_BUILDARCH%==WinLHAMD64 SET SIGN_OS=Vista_X64,Server2008_X64
james@542 8
james@542 9 ECHO DDK_TARGET_OS=%DDK_TARGET_OS%
james@542 10 ECHO _BUILDARCH=%_BUILDARCH%
james@542 11 ECHO BUILDDIR=%BUILDDIR%
james@542 12 ECHO SIGN_OS=%SIGN_OS%
james@542 13
amir@631 14 xcopy /D coinst\%BUILDDIR%\coinst.dll xenvbd\%BUILDDIR%
amir@631 15 move xenvbd\%BUILDDIR%\coinst.dll xenvbd\%BUILDDIR%\xencoinst.dll
james@542 16 xcopy /D %BASEDIR%\redist\wdf\%_BUILDARCH%\WdfCoInstaller01007.dll xenpci\%BUILDDIR%
james@542 17
james@542 18 IF NOT EXIST SIGN_CONFIG.BAT GOTO DONT_SIGN
james@542 19 CALL SIGN_CONFIG.BAT
james@542 20 %DDK_PATH%\bin\selfsign\inf2cat /driver:xenpci\%BUILDDIR% /os:%SIGN_OS%
james@566 21 %DDK_PATH%\bin\selfsign\signtool sign /v /n %CERT_NAME% /t http://timestamp.verisign.com/scripts/timestamp.dll xenpci\%BUILDDIR%\xenpci.sys xenpci\%BUILDDIR%\WdfCoInstaller01007.dll xenpci\%BUILDDIR%\xenpci.cat
james@542 22
james@542 23 %DDK_PATH%\bin\selfsign\inf2cat /driver:xennet\%BUILDDIR% /os:%SIGN_OS%
james@542 24 %DDK_PATH%\bin\selfsign\signtool sign /v /n %CERT_NAME% /t http://timestamp.verisign.com/scripts/timestamp.dll xennet\%BUILDDIR%\xennet.sys xennet\%BUILDDIR%\xennet.cat
james@542 25
james@542 26 %DDK_PATH%\bin\selfsign\inf2cat /driver:xenvbd\%BUILDDIR% /os:%SIGN_OS%
amir@631 27 %DDK_PATH%\bin\selfsign\signtool sign /v /n %CERT_NAME% /t http://timestamp.verisign.com/scripts/timestamp.dll xenvbd\%BUILDDIR%\xenvbd.sys xenvbd\%BUILDDIR%\xencoinst.dll xenvbd\%BUILDDIR%\xenvbd.cat
james@542 28
james@542 29 %DDK_PATH%\bin\selfsign\inf2cat /driver:xenscsi\%BUILDDIR% /os:%SIGN_OS%
james@542 30 %DDK_PATH%\bin\selfsign\signtool sign /v /n %CERT_NAME% /t http://timestamp.verisign.com/scripts/timestamp.dll xenscsi\%BUILDDIR%\xenscsi.sys xenscsi\%BUILDDIR%\xenscsi.cat
james@542 31
james@542 32 :DONT_SIGN