Skip to content

Commit 802e99f

Browse files
committed
Revert "bump libftdi to 1-1.5"
The build does not work anymore with mingw and clang. I couldn't make it work This reverts commit 63a888f4b93715fc34ee284a0aa489e3c5f9a749.
1 parent 842a36d commit 802e99f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+697
-1800
lines changed

deps/build_libs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ else
4545
make install
4646
fi
4747

48-
cd /opt/lib/libftdi1-1.5
48+
cd /opt/lib/libftdi1-1.4
4949
rm -rf build && mkdir build && cd build
5050

5151
CMAKE_EXTRA_FLAG="-DSHAREDLIBS=OFF -DBUILD_TESTS=OFF -DPYTHON_BINDINGS=OFF -DEXAMPLES=OFF -DFTDI_EEPROM=OFF"

deps/libftdi1-1.5/.gitignore renamed to deps/libftdi1-1.4/.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
*.so
55
*.lo
66
*.la
7-
*.patch
87
*.pc
98
.deps/
109
.libs/
@@ -42,6 +41,7 @@ examples/simple
4241

4342
# libftdi specific
4443
libftdi1-config
44+
libftdi1.spec
4545

4646
# CMake
4747
CMakeCache.txt
@@ -51,6 +51,3 @@ CMakeFiles
5151
# Misc. binaries
5252
*.dylib
5353
opt
54-
55-
# ctags
56-
tags

deps/libftdi1-1.5/AUTHORS renamed to deps/libftdi1-1.4/AUTHORS

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ see Changelog for full details:
77

88
Adam Malinowski <[email protected]>
99
Alain Abbas <[email protected]>
10-
Alex Harford <[email protected]>
1110
Alexander Lehmann <[email protected]>
11+
Alex Harford <[email protected]>
1212
Anders Larsen <[email protected]>
1313
Andrei Errapart <[email protected]>
1414
Andrew John Rogers <[email protected]>
@@ -17,34 +17,26 @@ see Changelog for full details:
1717
Benjamin Vanheuverzwijn <[email protected]>
1818
Chris Morgan <[email protected]>
1919
Chris Zeh <[email protected]>
20-
Claudio Lanconelli <[email protected]>
2120
Clifford Wolf <[email protected]>
22-
Dan Dedrick <[email protected]>
2321
Daniel Kirkham <[email protected]>
2422
David Challis <[email protected]>
2523
Davide Michelizza <[email protected]>
2624
Denis Sirotkin <[email protected]>
27-
Diego Elio Pettenò <[email protected]>
2825
29-
Eneas U de Queiroz <[email protected]>
30-
Eric Schott <[email protected]>
26+
Eric Schott <[email protected]>
3127
Eugene Hutorny <[email protected]>
3228
Evan Nemerson <[email protected]>
3329
Evgeny Sinelnikov <[email protected]>
34-
Fabrice Fontaine <[email protected]>
3530
Fahrzin Hemmati <[email protected]>
3631
Flynn Marquardt <[email protected]>
3732
Forest Crossman <[email protected]>
38-
Frank Dana <[email protected]>
39-
Holger Mößinger <[email protected]>
4033
Ian Abbott <[email protected]>
4134
Jared Boone <[email protected]>
4235
Jarkko Sonninen <[email protected]>
4336
Jean-Daniel Merkli <[email protected]>
4437
Jochen Sprickerhof <[email protected]>
4538
Joe Zbiciak <[email protected]>
4639
Jon Beniston <[email protected]>
47-
Jordan Rupprecht <[email protected]>
4840
Juergen Beisert <[email protected]>
4941
Lorenz Moesenlechner <[email protected]>
5042
Marek Vavruša <[email protected]>
@@ -62,17 +54,13 @@ see Changelog for full details:
6254
Nathan Fraser <[email protected]>
6355
Oleg Seiljus <[email protected]>
6456
Paul Fertser <[email protected]>
65-
Pawel Jewstafjew <[email protected]>
6657
Peter Holik <[email protected]>
6758
Raphael Assenat <[email protected]>
68-
Richard Shaw <[email protected]>
69-
Robby McKilliam <[email protected]>
7059
Robert Cox <[email protected]>
7160
Robin Haberkorn <[email protected]>
7261
Rodney Sinclair <[email protected]>
7362
Rogier Wolff <[email protected]>
7463
Rolf Fiedler <[email protected]>
75-
Roman Lapin <[email protected]>
7664
Salvador Eduardo Tropea <[email protected]>
7765
Stephan Linz <[email protected]>
7866
Steven Turner <[email protected]>

deps/libftdi1-1.5/CMakeLists.txt renamed to deps/libftdi1-1.4/CMakeLists.txt

Lines changed: 32 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Project
2-
project(libftdi1 C)
2+
project(libftdi1)
33
set(MAJOR_VERSION 1)
4-
set(MINOR_VERSION 5)
4+
set(MINOR_VERSION 4)
55
set(PACKAGE libftdi1)
66
set(VERSION_STRING ${MAJOR_VERSION}.${MINOR_VERSION})
77
set(VERSION ${VERSION_STRING})
@@ -16,8 +16,6 @@ cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
1616

1717
add_definitions(-Wall)
1818

19-
include(CMakeOptions.txt)
20-
2119
# Debug build
2220
message("-- Build type: ${CMAKE_BUILD_TYPE}")
2321
if(${CMAKE_BUILD_TYPE} STREQUAL Debug)
@@ -28,10 +26,8 @@ endif(${CMAKE_BUILD_TYPE} STREQUAL Debug)
2826
find_package ( USB1 REQUIRED )
2927
include_directories ( ${LIBUSB_INCLUDE_DIR} )
3028

31-
# Find Boost
32-
if (FTDIPP OR BUILD_TESTS)
33-
find_package( Boost REQUIRED )
34-
endif()
29+
# Find Boost (optional package)
30+
find_package(Boost)
3531

3632
# Set components
3733
set(CPACK_COMPONENTS_ALL sharedlibs staticlibs headers)
@@ -50,6 +46,9 @@ set(CPACK_COMPONENT_SHAREDLIBS_GROUP "Development")
5046
set(CPACK_COMPONENT_STATICLIBS_GROUP "Development")
5147
set(CPACK_COMPONENT_HEADERS_GROUP "Development")
5248

49+
option ( SHAREDLIBS "Build ㄎ libraries" ON )
50+
option ( STATICLIBS "Build static libraries" ON )
51+
5352
# guess LIB_SUFFIX, don't take debian multiarch into account
5453
if ( NOT DEFINED LIB_SUFFIX )
5554
if( CMAKE_SYSTEM_NAME MATCHES "Linux"
@@ -115,8 +114,18 @@ add_custom_target(dist
115114
| bzip2 > ${CMAKE_BINARY_DIR}/${ARCHIVE_NAME}.tar.bz2
116115
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
117116

118-
if ( DOCUMENTATION )
119-
find_package ( Doxygen REQUIRED)
117+
# Tests
118+
option ( BUILD_TESTS "Build unit tests with Boost Unit Test framework" ON )
119+
120+
# Documentation
121+
option ( DOCUMENTATION "Generate API documentation with Doxygen" ON )
122+
123+
124+
find_package ( Doxygen )
125+
if ( DOCUMENTATION AND DOXYGEN_FOUND )
126+
127+
# Find doxy config
128+
message(STATUS "Doxygen found.")
120129

121130
# Copy doxy.config.in
122131
set(top_srcdir ${CMAKE_SOURCE_DIR})
@@ -132,26 +141,19 @@ if ( DOCUMENTATION )
132141
)
133142

134143
add_custom_target(docs ALL DEPENDS ${CMAKE_BINARY_DIR}/doc/html/index.html)
135-
endif ()
144+
145+
message(STATUS "Generating API documentation with Doxygen")
146+
else(DOCUMENTATION AND DOXYGEN_FOUND)
147+
message(STATUS "Not generating API documentation")
148+
endif(DOCUMENTATION AND DOXYGEN_FOUND)
136149

137150
add_subdirectory(src)
138-
if ( FTDIPP )
139-
project(libftdipp1 C CXX)
140-
add_subdirectory(ftdipp)
141-
endif ()
142-
if ( PYTHON_BINDINGS )
151+
add_subdirectory(ftdipp)
143152
add_subdirectory(python)
144-
endif ()
145-
if ( FTDI_EEPROM )
146-
add_subdirectory(ftdi_eeprom)
147-
endif ()
148-
if ( EXAMPLES )
149-
add_subdirectory(examples)
150-
endif ()
153+
add_subdirectory(ftdi_eeprom)
154+
add_subdirectory(examples)
151155
add_subdirectory(packages)
152-
if ( BUILD_TESTS )
153-
add_subdirectory(test)
154-
endif ()
156+
add_subdirectory(test)
155157

156158
# PkgConfig
157159
set(prefix ${CMAKE_INSTALL_PREFIX})
@@ -165,6 +167,7 @@ if(${WIN32})
165167
set(libdir ${CMAKE_INSTALL_PREFIX}/bin)
166168
endif(${WIN32})
167169

170+
configure_file(${CMAKE_SOURCE_DIR}/libftdi1.spec.in ${CMAKE_BINARY_DIR}/libftdi1.spec @ONLY)
168171
configure_file(${CMAKE_SOURCE_DIR}/libftdi1.pc.in ${CMAKE_BINARY_DIR}/libftdi1.pc @ONLY)
169172
configure_file(${CMAKE_SOURCE_DIR}/libftdipp1.pc.in ${CMAKE_BINARY_DIR}/libftdipp1.pc @ONLY)
170173
install(FILES ${CMAKE_BINARY_DIR}/libftdi1.pc ${CMAKE_BINARY_DIR}/libftdipp1.pc
@@ -189,7 +192,7 @@ list ( APPEND LIBFTDI_LIBRARIES ${LIBUSB_LIBRARIES} )
189192
set ( LIBFTDI_STATIC_LIBRARY ftdi1.a )
190193
set ( LIBFTDI_STATIC_LIBRARIES ${LIBFTDI_STATIC_LIBRARY} )
191194
list ( APPEND LIBFTDI_STATIC_LIBRARIES ${LIBUSB_LIBRARIES} )
192-
if ( FTDIPP )
195+
if (FTDI_BUILD_CPP)
193196
set ( LIBFTDIPP_LIBRARY ftdipp1 )
194197
set ( LIBFTDIPP_LIBRARIES ${LIBFTDIPP_LIBRARY} )
195198
list ( APPEND LIBFTDIPP_LIBRARIES ${LIBUSB_LIBRARIES} )
@@ -236,15 +239,7 @@ install ( FILES
236239
DESTINATION ${LIBFTDI_CMAKE_CONFIG_DIR}
237240
)
238241

239-
include(CPack)
240242

241-
message (STATUS "Summary of build options:
242243

243-
Build static libs: ${STATICLIBS}
244-
Build C++ bindings: ${FTDIPP}
245-
Build Python bindings: ${PYTHON_BINDINGS}
246-
Build ftdi_eeprom: ${FTDI_EEPROM}
247-
Build examples: ${EXAMPLES}
248-
Build tests: ${BUILD_TESTS}
249-
Build API documentation: ${DOCUMENTATION}
250-
")
244+
245+
include(CPack)
File renamed without changes.
File renamed without changes.
File renamed without changes.

deps/libftdi1-1.5/ChangeLog renamed to deps/libftdi1-1.4/ChangeLog

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,3 @@
1-
New in 1.5 - 2020-07-07
2-
-----------------------
3-
* Implement tc[io]flush methods & deprecate broken purge_buffers methods
4-
5-
Please check your code for ftdi_usb_purge_rx_buffer(),
6-
ftdi_usb_purge_tx_buffer() and ftdi_usb_purge_buffers()
7-
and migrate to the new ftdi_tc[io]flush() methods.
8-
9-
Old code will continue to function, but you'll get
10-
a deprecation warning during compilation.
11-
12-
* Add program to test buffer flush (purge) functionality
13-
* Add kernel driver auto attach/detach.
14-
See new AUTO_DETACH_REATACH_SIO_MODULE option
15-
* Add ftdi_setflowctrl_xonxoff()
16-
* ftdi_eeprom / eeprom handling:
17-
* Unify handling of all boolean eeprom flags
18-
* Add device release number support
19-
* Add channel_a_driver support for type xxR chips
20-
* Add support for group0 drive levels on x232H chips
21-
* Fix handling of high_current_drive parameter
22-
* Fix inverted handling of VCP driver field for TYPE_R chips
23-
* New --verbose option for eeprom decode operation
24-
* Add example code for async mode
25-
* Add SPDX license identifiers to the core library & ftdi_eeprom
26-
* Various python SWIG wrapper improvements
27-
* Various cmake file improvements
28-
* Fix small bugs in error code paths
29-
301
New in 1.4 - 2017-08-07
312
-----------------------
323
* New ftdi_usb_open_bus_addr() open function
File renamed without changes.

deps/libftdi1-1.4/README

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
--------------------------------------------------------------------
2+
libftdi version 1.4
3+
--------------------------------------------------------------------
4+
5+
libftdi - A library (using libusb) to talk to FTDI's UART/FIFO chips
6+
including the popular bitbang mode.
7+
8+
The following chips are supported:
9+
* FT230X
10+
- FT4232H / FT2232H
11+
- FT232R / FT245R
12+
- FT2232L / FT2232D / FT2232C
13+
- FT232BM / FT245BM (and the BL/BQ variants)
14+
- FT8U232AM / FT8U245AM
15+
16+
libftdi requires libusb 1.x.
17+
18+
The AUTHORS file contains a list of all the people
19+
that made libftdi possible what it is today.
20+
21+
Changes
22+
-------
23+
* New ftdi_usb_open_bus_addr() open function
24+
* Use BM/R series baud rate computation for FT230X
25+
* ftdi_get_error_string() now returns const char*
26+
* C++ API: Ability to open devices with empty descriptor strings
27+
* C++ API: Fix enumerations for buffer purge and modem controls
28+
* small build fixes and improvements in the python examples
29+
* ftdi_eeprom / eeprom handling:
30+
* New API function: ftdi_eeprom_get_strings()
31+
* Fix USE_SERIAL handling for 230X type chips
32+
* Make ftdi_read_eeprom_location() endianness independent
33+
* Fix flashing of FT245R
34+
35+
You'll find the newest version of libftdi at:
36+
https://www.intra2net.com/en/developer/libftdi
37+
38+
39+
Quick start
40+
-----------
41+
mkdir build
42+
cd build
43+
44+
cmake -DCMAKE_INSTALL_PREFIX="/usr" ../
45+
make
46+
make install
47+
48+
More verbose build instructions are in "README.build"
49+
50+
--------------------------------------------------------------------
51+
www.intra2net.com 2003-2017 Intra2net AG
52+
--------------------------------------------------------------------

0 commit comments

Comments
 (0)