package/libtorrent: use the new ARCH_HAS_ATOMICS as dependency
authorYann E. MORIN <yann.morin.1998@free.fr>
Sun, 17 Aug 2014 19:29:42 +0000 (21:29 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 18 Aug 2014 08:56:59 +0000 (10:56 +0200)
And propagate to the reverse dependencies of libtorrent

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Anton Kolesov <Anton.Kolesov@synopsys.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/libtorrent/Config.in
package/rtorrent/Config.in

index a706d9814cc71db28931b60123c4c7df58cf42f1..aac71fa0088da4486f737552962d4c1f08d98733 100644 (file)
@@ -2,13 +2,13 @@ config BR2_PACKAGE_LIBTORRENT
        bool "libtorrent"
        depends on BR2_INSTALL_LIBSTDCPP
        depends on BR2_TOOLCHAIN_HAS_THREADS
-       depends on BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS
+       depends on BR2_ARCH_HAS_ATOMICS
        select BR2_PACKAGE_LIBSIGC
        help
          BitTorrent library written in C++ for *nix
 
          http://libtorrent.rakshasa.no/
 
-comment "libtorrent needs a toolchain w/ C++, threads, atomic intrinsics"
-       depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS \
-               || !BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS
+comment "libtorrent needs a toolchain w/ C++, threads"
+       depends on BR2_ARCH_HAS_ATOMICS
+       depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
index 1efc5f1cf0da8d17cf92dc831445574284977b9e..1798331e9b2188f5dc46397a1fbe8f8ea0500741 100644 (file)
@@ -4,7 +4,7 @@ config BR2_PACKAGE_RTORRENT
        depends on BR2_USE_WCHAR
        depends on BR2_TOOLCHAIN_HAS_THREADS
        depends on BR2_USE_MMU # fork()
-       depends on BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS # libtorrent
+       depends on BR2_ARCH_HAS_ATOMICS # libtorrent
        select BR2_PACKAGE_LIBCURL
        select BR2_PACKAGE_LIBSIGC
        select BR2_PACKAGE_LIBTORRENT
@@ -15,7 +15,7 @@ config BR2_PACKAGE_RTORRENT
 
          http://libtorrent.rakshasa.no/
 
-comment "rtorrent needs a toolchain w/ C++, threads, wchar, atomic intrinsics"
+comment "rtorrent needs a toolchain w/ C++, threads, wchar"
        depends on BR2_USE_MMU
-       depends on !(BR2_INSTALL_LIBSTDCPP && BR2_USE_WCHAR && BR2_TOOLCHAIN_HAS_THREADS \
-               && BR2_TOOLCHAIN_HAS_ATOMIC_INTRINSICS)
+       depends on BR2_ARCH_HAS_ATOMICS
+       depends on !(BR2_INSTALL_LIBSTDCPP && BR2_USE_WCHAR && BR2_TOOLCHAIN_HAS_THREADS)