Browse code

Upgraded TAP build scripts to use WDK 6001.17121 (Windows 2008 Server pre-RTM).

Fixed typo of DESC_SecPKCS11DLLs in openvpn.nsi.


git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2651 e7ae566f-a301-0410-adde-c780ea21d3b5

james authored on 2008/01/23 08:52:08
Showing 8 changed files
... ...
@@ -14,7 +14,7 @@
14 14
 # msysDTK   -- for perl
15 15
 # NSIS      -- for building installer
16 16
 # svn       -- for checking out source code (or TortoiseSVN)
17
-# Windows Driver Kit, Vista RC1 (5600) -- for building TAP driver + tapinstall
17
+# Windows Driver Kit (6001_17121_HyperV_WDK.iso) -- for building TAP driver + tapinstall
18 18
 #
19 19
 # Required libraries (must be prebuilt)
20 20
 #
21 21
new file mode 100644
... ...
@@ -0,0 +1,2 @@
0
+# DDKs <= 5600 use "AMD64", later use "x64"
1
+x64_tag=x64
... ...
@@ -6,12 +6,15 @@
6 6
 # get version.nsi definitions
7 7
 . autodefs/defs.sh
8 8
 
9
+# common declarations for all DDK build targets
10
+. install-win32/ddk-common
11
+
9 12
 if [ -n "$PRODUCT_TAP_DEBUG" ] ; then
10 13
     w2ktarget="w2k c"
11
-    amdtarget="chk AMD64 WNET"
14
+    amdtarget="chk $x64_tag WNET"
12 15
 else
13 16
     w2ktarget="w2k f"
14
-    amdtarget="fre AMD64 WNET"
17
+    amdtarget="fre $x64_tag WNET"
15 18
 fi
16 19
 
17 20
 if [ -z "$DRVBINSRC" ] ; then
... ...
@@ -13,9 +13,12 @@ if ! [ -d "$TISRC" ] ; then
13 13
     exit 1
14 14
 fi
15 15
 
16
+# common declarations for all DDK build targets
17
+. install-win32/ddk-common
18
+
16 19
 amdtarget=""
17 20
 if [ -z "$TI_BIN_AMD64" ]; then
18
-    amdtarget="fre AMD64 WNET"
21
+    amdtarget="fre $x64_tag WNET"
19 22
 fi
20 23
 
21 24
 if [ -z "$DRVBINSRC" ] ; then
... ...
@@ -110,7 +110,7 @@
110 110
 
111 111
   LangString DESC_SecOpenSSLDLLs ${LANG_ENGLISH} "Install OpenSSL DLLs locally (may be omitted if DLLs are already installed globally)."
112 112
 
113
-  LangString DESC_SecPKCS11LDLLs ${LANG_ENGLISH} "Install PKCS#11 helper DLLs locally (may be omitted if DLLs are already installed globally)."
113
+  LangString DESC_SecPKCS11DLLs ${LANG_ENGLISH} "Install PKCS#11 helper DLLs locally (may be omitted if DLLs are already installed globally)."
114 114
 
115 115
   LangString DESC_SecTAP ${LANG_ENGLISH} "Install/Upgrade the TAP-Win32 virtual device driver.  Will not interfere with CIPE."
116 116
 
... ...
@@ -60,7 +60,8 @@
60 60
 
61 61
 # DDK Version.
62 62
 # DDK distribution is assumed to be in C:\WINDDK\${DDKVER}
63
-!define DDKVER	5600
63
+!define DDKVER	     6001.17121
64
+!define DDKVER_MAJOR 6001
64 65
 
65 66
 # Code Signing.
66 67
 # If undefined, don't sign any files.
... ...
@@ -187,7 +187,7 @@ VOID HookDispatchFunctions();
187 187
 
188 188
 #if ENABLE_NONADMIN
189 189
 
190
-#if DDKVER < 5600
190
+#if DDKVER_MAJOR < 5600
191 191
 /*
192 192
  * Better solution for use on Vista DDK, but possibly not compatible with
193 193
  * earlier DDKs:
... ...
@@ -40,8 +40,8 @@
40 40
 //======================================================
41 41
 
42 42
 #include "../../autodefs/defs.h"
43
-#ifndef DDKVER
44
-#error DDKVER must be defined to the DDK Version as in c:\WinDDK\[DDKVER]\...
43
+#ifndef DDKVER_MAJOR
44
+#error DDKVER_MAJOR must be defined as the major number of the DDK Version
45 45
 #endif
46 46
 
47 47
 #define NDIS_MINIPORT_DRIVER
... ...
@@ -70,7 +70,7 @@
70 70
 //========================================================
71 71
 #define ENABLE_NONADMIN 1
72 72
 
73
-#if DDKVER < 5600
73
+#if DDKVER_MAJOR < 5600
74 74
 #include <ndis.h>
75 75
 #include <ntstrsafe.h>
76 76
 #include <ntddk.h>
... ...
@@ -419,7 +419,7 @@ NDIS_STATUS AdapterCreate
419 419
 		}
420 420
 	    }
421 421
 	} else {
422
-#if DDKVER < 5600
422
+#if DDKVER_MAJOR < 5600
423 423
 	  /* "MiniportName" is available only XP and above.  Not on Windows 2000. */
424 424
 	  NDIS_STRING key = NDIS_STRING_CONST("NdisVersion");
425 425
 	  NdisReadConfiguration (&status, &parm, configHandle, &key, NdisParameterInteger);