1e1333fd8f
In commit 669ce8c75e
("libftdi: add
dependency on atomic operations"), a dependency on
BR2_ARCH_HAS_ATOMICS was added to the libftdi package to fix a build
failure occuring on the ARC architecture due to the missing
__sync_fetch_and_add_4 function:
../ftdipp/.libs/libftdipp.so: undefined reference to `__sync_fetch_and_add_4'
However, today, even on the SPARC architecture that does not implement
any of the __sync built-ins, libftdi and its C++ binding libftdipp
build fine. ARC was also tested and builds fine.
Therefore, we remove the BR2_ARCH_HAS_ATOMICS dependency from libftdi,
and also from flashrom, in which it was only present due to the
selection of libftdi. Note that anyway flashrom is available only for
i386 and x86_64, both of which implement all the __sync built-ins.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
30 lines
782 B
Plaintext
30 lines
782 B
Plaintext
config BR2_PACKAGE_LIBFTDI
|
|
bool "libftdi"
|
|
depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
|
|
select BR2_PACKAGE_LIBUSB
|
|
select BR2_PACKAGE_LIBUSB_COMPAT
|
|
help
|
|
Userspace access to FTDI USB interface chips
|
|
|
|
http://www.intra2net.com/en/developer/libftdi/index.php
|
|
|
|
if BR2_PACKAGE_LIBFTDI
|
|
|
|
config BR2_PACKAGE_LIBTFDI_CPP
|
|
bool "C++ bindings"
|
|
depends on BR2_INSTALL_LIBSTDCPP
|
|
depends on BR2_PACKAGE_BOOST_ARCH_SUPPORTS
|
|
depends on BR2_USE_WCHAR
|
|
select BR2_PACKAGE_BOOST
|
|
help
|
|
C++ bindings for libftdi
|
|
|
|
comment "libftdi C++ bindings need a toolchain w/ wchar, C++"
|
|
depends on BR2_PACKAGE_BOOST_ARCH_SUPPORTS
|
|
depends on !BR2_USE_WCHAR || !BR2_INSTALL_LIBSTDCPP
|
|
|
|
endif # BR2_PACKAGE_LIBFTDI
|
|
|
|
comment "libftdi needs a toolchain w/ threads"
|
|
depends on !BR2_TOOLCHAIN_HAS_THREADS
|