On Wed, Jul 8, 2009 at 10:23 PM, Xiaofan Chen<[email protected]> wrote:
> I am now looking at the OpenOCD source codes and find out that
> there is one patch file for libftdi 0.12 by Spen.

As the README file stated that Windows support of libftdi is
since version 0.14 and libftdi 0.14 has already the patches
implemented, I think this directory contrib\libftdi is no longer
necessary. Please remove it.

Hope this is the correct way to generate the patch.
svn delete contrib/libftdi/
D         contrib/libftdi/libftdi-0.12_win32.patch
D         contrib/libftdi/README
D         contrib/libftdi
svn diff >remove_contrib_libftdi_patch.txt



-- 
Xiaofan http://mcuee.blogspot.com
Index: contrib/libftdi/libftdi-0.12_win32.patch
===================================================================
--- contrib/libftdi/libftdi-0.12_win32.patch    (revision 2509)
+++ contrib/libftdi/libftdi-0.12_win32.patch    (working copy)
@@ -1,20 +0,0 @@
---- src/ftdi.c.orig    Wed Apr 16 16:24:30 2008
-+++ src/ftdi.c Thu May 01 20:19:46 2008
-@@ -358,6 +358,17 @@
-     if (usb_detach_kernel_driver_np(ftdi->usb_dev, ftdi->interface) != 0 && 
errno != ENODATA)
-         detach_errno = errno;
- #endif
-+
-+#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-+      if (usb_set_configuration(ftdi->usb_dev, 1) != 0) {
-+              usb_close (ftdi->usb_dev);
-+        if (detach_errno == EPERM) {
-+            ftdi_error_return(-8, "inappropriate permissions on device!");
-+        } else {
-+            ftdi_error_return(-5, "unable to set configuration");
-+        }
-+      }
-+#endif
- 
-     if (usb_claim_interface(ftdi->usb_dev, ftdi->interface) != 0) {
-         usb_close (ftdi->usb_dev);
Index: contrib/libftdi/README
===================================================================
--- contrib/libftdi/README      (revision 2509)
+++ contrib/libftdi/README      (working copy)
@@ -1,7 +0,0 @@
-libftdi can be built to work under win32 (cygwin/mingw) after applying the 
patch in this directory.
-
-The issue is caused by windows requiring usb_set_configuration to be called 
before the usb_claim_interface.
-
-Spen
[email protected]
-
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to