win-pvdrivers

annotate makedist.bat @ 1075:5e8aeb18279c

Add export methods to retrieve and set the hypercall stubs for the dump_xenpci driver
author James Harper <james.harper@bendigoit.com.au>
date Mon Dec 09 13:30:14 2013 +1100 (2013-12-09)
parents 87cdc5bf8ef6
children 04fc4aca982c
rev   line source
james@143 1 @echo off
james@716 2 IF NOT EXIST set_ddk_path.bat ECHO >set_ddk_path.bat SET DDK_PATH=C:\WinDDK\7600.16385.0
james@819 3 IF NOT EXIST set_ddk_path_2k.bat ECHO >set_ddk_path_2k.bat SET DDK_PATH_2K=C:\WinDDK\6001.18002
james@314 4
james@716 5 SET VERSION=0.11.0
james@538 6 SET BUILD_NUMBER=0
james@538 7 IF EXIST build_number.bat CALL build_number.bat
james@538 8
james@538 9 SET GPLPV_VERSION=%VERSION%.%BUILD_NUMBER%
james@538 10
james@661 11 SET /A NEW_BUILD_NUMBER=%BUILD_NUMBER%+1
james@661 12 ECHO >build_number.bat SET BUILD_NUMBER=%NEW_BUILD_NUMBER%
james@538 13
james@538 14 ECHO BUILDING %GPLPV_VERSION%
james@538 15
james@524 16 CALL set_ddk_path.bat
james@819 17 CALL set_ddk_path_2K.bat
james@524 18
james@543 19 SET PV_DIR=%CD%
james@537 20
james@730 21 SET SIGNTOOL=%DDK_PATH%\bin\x86\signtool.exe
james@730 22 IF NOT EXIST %SIGNTOOL% SET SIGNTOOL=%DDK_PATH%\bin\selfsign\signtool.exe
james@730 23
james@959 24 SET CERT_FILENAME=
james@959 25 SET CERT_PASSWORD=
james@959 26 SET CERT_CROSS_CERT_FILENAME=
james@959 27 SET CERT_PUBLIC_FILENAME=
james@959 28 IF NOT EXIST SIGN_CONFIG.BAT GOTO DONT_SIGN
james@959 29 CALL SIGN_CONFIG.BAT
james@961 30 SET CERT_CROSS_CERT_FLAG=
james@961 31 SET CERT_PASSWORD_FLAG=
james@961 32 IF DEFINED CERT_CROSS_CERT_FILENAME SET CERT_CROSS_CERT_FLAG=/ac %CERT_CROSS_CERT_FILENAME%
james@961 33 IF DEFINED CERT_PASSWORD SET CERT_PASSWORD_FLAG=-p %CERT_PASSWORD%
james@959 34 IF EXIST %CERT_FILENAME% GOTO :DONT_SIGN
james@959 35 "%DDK_PATH%"\bin\x86\makecert -r -pe -ss PrivateCertStore -n "CN=GPLPV Test Cert" %CERT_PUBLIC_FILENAME%
james@959 36 certutil -exportpfx -user -privatekey %CERT_PASSWORD_FLAG% PrivateCertStore "GPLPV Test Cert" "%CERT_FILENAME%
james@959 37 :DONT_SIGN
james@645 38
james@650 39 mkdir symbols\%GPLPV_VERSION%
james@650 40
james@1015 41 cmd /C "%DDK_PATH_2K%\bin\setenv.bat %DDK_PATH_2K%\ chk W2K && CD /D "%PV_DIR%" && build -cZg ~xenvbd_storport ~xenusb ~copyconfig ~waitnopendinginstallevents && call sign.bat && call archive.bat && call wix.bat"
james@819 42
james@1015 43 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ chk WXP && CD /D "%PV_DIR%" && build -cZg ~xenvbd_storport && call sign.bat && call archive.bat && call wix.bat"
james@730 44
james@730 45 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ chk WNET && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call archive.bat && call wix.bat"
james@730 46
james@730 47 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ chk x64 WNET && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call archive.bat && call wix.bat"
james@730 48
james@730 49 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ chk WLH && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call archive.bat && call wix.bat"
james@730 50
james@730 51 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ chk x64 WLH && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call archive.bat && call wix.bat"
james@730 52
james@1015 53 cmd /C "%DDK_PATH_2K%\bin\setenv.bat %DDK_PATH_2K%\ fre W2K && CD /D "%PV_DIR%" && build -cZg ~xenvbd_storport ~xenusb ~copyconfig ~waitnopendinginstallevents && call sign.bat && call wix.bat"
james@819 54
james@1015 55 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ fre WXP && CD /D "%PV_DIR%" && build -cZg ~xenvbd_storport && call sign.bat && call wix.bat"
james@543 56
james@544 57 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ fre WNET && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call wix.bat"
james@543 58
james@544 59 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ fre x64 WNET && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call wix.bat"
james@543 60
james@544 61 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ fre WLH && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call wix.bat"
james@543 62
james@544 63 cmd /C "%DDK_PATH%\bin\setenv.bat %DDK_PATH%\ fre x64 WLH && CD /D "%PV_DIR%" && build -cZg && call sign.bat && call wix.bat"
james@543 64
james@1042 65 hg status | findstr "^M" && GOTO DONT_TAG
james@611 66 IF NOT EXIST TAG_HG GOTO DONT_TAG
james@611 67 IF EXIST BUILD*.WRN GOTO DONT_TAG
james@611 68 IF EXIST BUILD*.ERR GOTO DONT_TAG
james@611 69
james@611 70 hg tag %GPLPV_VERSION%
james@611 71
james@1042 72 :DONT_TAG