Mauro Gamba wrote: > I think to proceed in this way: > > - Add to the configuration step the possibility to choose which usb > library to use.
Use pkg-config to check for all libraries that can work, and use with the first one that is found. Check for libusb-1.0 first. You will need to study more autoconf than you needed before. You can of course also ask on the list if you are uncertain about something. > - Create an abstraction layer to the usb library with all the > necessary functions for the drivers. Yes and no. "all the neccessary functions" should not be created at once. Start with an abstraction layer that works for one driver but still allows upward compatibility with the other drivers. This may be more difficult than you think. You will have to analyze each driver more in depth, and I guess it will take a bit of time. The above two items shall be in the first commit. Please do not wait for the complete driver analysis before you make the commit, please start with creating an abstraction layer that is sufficient for only one driver, push that to Gerrit, and see what the feedback is. This is OK to do even if you want to do more work on the commit, but it is important to get review feedback early, so that you do not have to do double work. Of course, remember to pay close attention to simple details like checking all possible errors and code style. > - Modify the drivers to use the abstraction layer instead directly > the library. > > Do you think it's reasonable? Yes, but it is more work and more complicated, so it is even more important than before to only start small and then gather feedback. Thanks again for working on this! I'm really looking forward to your commits! //Peter _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development