diff mbox

[v3] libtorrent: disable on ARC arch

Message ID 1392041381-32699-1-git-send-email-anton.kolesov@synopsys.com
State Accepted
Commit 4a36923ce78426c95bdb857e87968e6fd664c3f6
Headers show

Commit Message

Anton Kolesov Feb. 10, 2014, 2:09 p.m. UTC
Libtorrent has dependencies on atomic operations. However ARC GCC doesn't
implement those at the moment so package should be disabled. Rtorrent
depends on libtorrent.

This fixes:
http://autobuild.buildroot.net/results/51414e22c8ea47c38df20d864526a370c5a895d7/

Signed-off-by: Anton Kolesov <anton.kolesov@synopsys.com>
---
 package/libtorrent/Config.in | 3 +++
 package/rtorrent/Config.in   | 3 +++
 2 files changed, 6 insertions(+)

Comments

Thomas Petazzoni Feb. 10, 2014, 2:24 p.m. UTC | #1
Dear Anton Kolesov,

On Mon, 10 Feb 2014 18:09:41 +0400, Anton Kolesov wrote:
> Libtorrent has dependencies on atomic operations. However ARC GCC doesn't
> implement those at the moment so package should be disabled. Rtorrent
> depends on libtorrent.
> 
> This fixes:
> http://autobuild.buildroot.net/results/51414e22c8ea47c38df20d864526a370c5a895d7/
> 
> Signed-off-by: Anton Kolesov <anton.kolesov@synopsys.com>
> ---
>  package/libtorrent/Config.in | 3 +++
>  package/rtorrent/Config.in   | 3 +++
>  2 files changed, 6 insertions(+)

Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

Best regards,

Thomas
Peter Korsgaard Feb. 10, 2014, 2:42 p.m. UTC | #2
>>>>> "Anton" == Anton Kolesov <anton.kolesov@synopsys.com> writes:

 > Libtorrent has dependencies on atomic operations. However ARC GCC doesn't
 > implement those at the moment so package should be disabled. Rtorrent
 > depends on libtorrent.

 > This fixes:
 > http://autobuild.buildroot.net/results/51414e22c8ea47c38df20d864526a370c5a895d7/

 > Signed-off-by: Anton Kolesov <anton.kolesov@synopsys.com>

Committed, thanks.
diff mbox

Patch

diff --git a/package/libtorrent/Config.in b/package/libtorrent/Config.in
index a7e358d..a21bf95 100644
--- a/package/libtorrent/Config.in
+++ b/package/libtorrent/Config.in
@@ -2,6 +2,8 @@  config BR2_PACKAGE_LIBTORRENT
 	bool "libtorrent"
 	depends on BR2_INSTALL_LIBSTDCPP
 	depends on BR2_TOOLCHAIN_HAS_THREADS
+	# ARC GCC doesn't support atomic instructions required by this lib
+	depends on !BR2_arc
 	select BR2_PACKAGE_LIBSIGC
 	help
 	  BitTorrent library written in C++ for *nix
@@ -10,3 +12,4 @@  config BR2_PACKAGE_LIBTORRENT
 
 comment "libtorrent needs a toolchain w/ C++, threads"
 	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
+	depends on !BR2_arc
diff --git a/package/rtorrent/Config.in b/package/rtorrent/Config.in
index 0f39a92..fa81cde 100644
--- a/package/rtorrent/Config.in
+++ b/package/rtorrent/Config.in
@@ -4,6 +4,8 @@  config BR2_PACKAGE_RTORRENT
 	depends on BR2_USE_WCHAR
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	depends on BR2_USE_MMU # fork()
+	# ARC GCC doesn't support atomic instructions required by libtorrent
+	depends on !BR2_arc
 	select BR2_PACKAGE_LIBCURL
 	select BR2_PACKAGE_LIBSIGC
 	select BR2_PACKAGE_LIBTORRENT
@@ -17,3 +19,4 @@  config BR2_PACKAGE_RTORRENT
 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)
+	depends on !BR2_arc