]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Upgraded TAP build scripts to use WDK 6001.17121
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Tue, 22 Jan 2008 23:52:08 +0000 (23:52 +0000)
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Tue, 22 Jan 2008 23:52:08 +0000 (23:52 +0000)
(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

domake-win
install-win32/ddk-common [new file with mode: 0644]
install-win32/maketap
install-win32/maketapinstall
install-win32/openvpn.nsi
install-win32/settings.in
tap-win32/prototypes.h
tap-win32/tapdrvr.c

index 7991bea5dc4b53e63ed3535e42742f16f2b2573d..48eba55dd3a1a7258c305354ff94be1e8376bbf3 100644 (file)
@@ -14,7 +14,7 @@
 # msysDTK   -- for perl
 # NSIS      -- for building installer
 # svn       -- for checking out source code (or TortoiseSVN)
-# Windows Driver Kit, Vista RC1 (5600) -- for building TAP driver + tapinstall
+# Windows Driver Kit (6001_17121_HyperV_WDK.iso) -- for building TAP driver + tapinstall
 #
 # Required libraries (must be prebuilt)
 #
diff --git a/install-win32/ddk-common b/install-win32/ddk-common
new file mode 100644 (file)
index 0000000..b45c9e5
--- /dev/null
@@ -0,0 +1,2 @@
+# DDKs <= 5600 use "AMD64", later use "x64"
+x64_tag=x64
index 3082db73fb922843c11a29514cfe6c8267564277..7fe643c998b2abb86b9f236acf91008ca3c3ee71 100644 (file)
@@ -6,12 +6,15 @@
 # get version.nsi definitions
 . autodefs/defs.sh
 
+# common declarations for all DDK build targets
+. install-win32/ddk-common
+
 if [ -n "$PRODUCT_TAP_DEBUG" ] ; then
     w2ktarget="w2k c"
-    amdtarget="chk AMD64 WNET"
+    amdtarget="chk $x64_tag WNET"
 else
     w2ktarget="w2k f"
-    amdtarget="fre AMD64 WNET"
+    amdtarget="fre $x64_tag WNET"
 fi
 
 if [ -z "$DRVBINSRC" ] ; then
index 781380ed87ea26109044bfe3d329a2a1fb9aa649..8b06a992a7d198f4ed687b27e49ec2759eda24a2 100644 (file)
@@ -13,9 +13,12 @@ if ! [ -d "$TISRC" ] ; then
     exit 1
 fi
 
+# common declarations for all DDK build targets
+. install-win32/ddk-common
+
 amdtarget=""
 if [ -z "$TI_BIN_AMD64" ]; then
-    amdtarget="fre AMD64 WNET"
+    amdtarget="fre $x64_tag WNET"
 fi
 
 if [ -z "$DRVBINSRC" ] ; then
index 64d6f3ac6db51353d96bc4b4c0d30e3f13a734ee..1c0e00e4ba3d7ddc0bd4dd9f8902190619d3fd2f 100755 (executable)
 
   LangString DESC_SecOpenSSLDLLs ${LANG_ENGLISH} "Install OpenSSL DLLs locally (may be omitted if DLLs are already installed globally)."
 
-  LangString DESC_SecPKCS11LDLLs ${LANG_ENGLISH} "Install PKCS#11 helper DLLs locally (may be omitted if DLLs are already installed globally)."
+  LangString DESC_SecPKCS11DLLs ${LANG_ENGLISH} "Install PKCS#11 helper DLLs locally (may be omitted if DLLs are already installed globally)."
 
   LangString DESC_SecTAP ${LANG_ENGLISH} "Install/Upgrade the TAP-Win32 virtual device driver.  Will not interfere with CIPE."
 
index b233686bff707e9c160d84c646ada32f52586215..517236a1e7ae2e710ff55b8d7b9f9ae2ad642340 100644 (file)
@@ -60,7 +60,8 @@
 
 # DDK Version.
 # DDK distribution is assumed to be in C:\WINDDK\${DDKVER}
-!define DDKVER 5600
+!define DDKVER      6001.17121
+!define DDKVER_MAJOR 6001
 
 # Code Signing.
 # If undefined, don't sign any files.
index 788670c1ee77e9509651b1e9db4fe555fd1bb1f6..f7d09f680f2b2d5d0b9bb9130d839dc7161a8ebd 100755 (executable)
@@ -187,7 +187,7 @@ VOID HookDispatchFunctions();
 
 #if ENABLE_NONADMIN
 
-#if DDKVER < 5600
+#if DDKVER_MAJOR < 5600
 /*
  * Better solution for use on Vista DDK, but possibly not compatible with
  * earlier DDKs:
index 989b44c173a50dcabdb6d8f5ca6332d06b9e541a..ca02d13b7e0daf28bc7a227becc7523d28672a43 100755 (executable)
@@ -40,8 +40,8 @@
 //======================================================
 
 #include "../../autodefs/defs.h"
-#ifndef DDKVER
-#error DDKVER must be defined to the DDK Version as in c:\WinDDK\[DDKVER]\...
+#ifndef DDKVER_MAJOR
+#error DDKVER_MAJOR must be defined as the major number of the DDK Version
 #endif
 
 #define NDIS_MINIPORT_DRIVER
@@ -70,7 +70,7 @@
 //========================================================
 #define ENABLE_NONADMIN 1
 
-#if DDKVER < 5600
+#if DDKVER_MAJOR < 5600
 #include <ndis.h>
 #include <ntstrsafe.h>
 #include <ntddk.h>
@@ -419,7 +419,7 @@ NDIS_STATUS AdapterCreate
                }
            }
        } else {
-#if DDKVER < 5600
+#if DDKVER_MAJOR < 5600
          /* "MiniportName" is available only XP and above.  Not on Windows 2000. */
          NDIS_STRING key = NDIS_STRING_CONST("NdisVersion");
          NdisReadConfiguration (&status, &parm, configHandle, &key, NdisParameterInteger);