Skip to contentSkip to conversation

openpgm: depends on sync2/sync4

PATCH New Gustavo Zacarias 3 participants 3 messages Mar 16, 2016 – Mar 18, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 openpgm: depends on sync2/sync4

Add dependency on BR2_TOOLCHAIN_HAS_SYNC_2/4 since it uses both __sync_fetch_and_add_2() and __sync_fetch_and_add_4() atomic builtins. Fixes:
http://autobuild.buildroot.net/results/8f2/8f2a3571611dc9414c23808e7615f87b677557dd/

---
v2: get rid of bfin conditional since it's atomics-related

 package/openpgm/Config.in | 6 ++++--
 package/zeromq/Config.in  | 3 ++-
 2 files changed, 6 insertions(+), 3 deletions(-)
package/openpgm/Config.in +4 -2
index 94816d8..e37edfe 100644
@@ -1,7 +1,7 @@
 config BR2_PACKAGE_OPENPGM
 	bool "openpgm"
-	# This toolchain lack required compiler intrinsics
-	depends on !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX
+	depends on BR2_TOOLCHAIN_HAS_SYNC_2
+	depends on BR2_TOOLCHAIN_HAS_SYNC_4
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	depends on BR2_USE_WCHAR
 	help
@@ -15,4 +15,6 @@ config BR2_PACKAGE_OPENPGM
 	  https://github.com/steve-o/openpgm/
 
 comment "openpgm needs a toolchain w/ wchar, threads"
+	depends on BR2_TOOLCHAIN_HAS_SYNC_2
+	depends on BR2_TOOLCHAIN_HAS_SYNC_4
 	depends on !(BR2_TOOLCHAIN_HAS_THREADS && BR2_USE_WCHAR)
package/zeromq/Config.in +2 -1
index c780f25..aefdf48 100644
@@ -29,7 +29,8 @@ if BR2_PACKAGE_ZEROMQ
 
 config BR2_PACKAGE_ZEROMQ_PGM
 	bool "PGM/EPGM support"
-	depends on !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX # openpgm
+	depends on BR2_TOOLCHAIN_HAS_SYNC_2
+	depends on BR2_TOOLCHAIN_HAS_SYNC_4
 	select BR2_PACKAGE_OPENPGM
 	help
 	  Add support for Pragmatic General Multicast protocol (RFC 3208)
Signature · 1 line
2.4.10
#1 lore raw

PATCH v2 1/1 openpgm: depends on sync2/sync4

Dear Gustavo Zacarias,

Quoted 6 lines · Gustavo Zacarias

Add dependency on BR2_TOOLCHAIN_HAS_SYNC_2/4 since it uses both __sync_fetch_and_add_2() and __sync_fetch_and_add_4() atomic builtins. Fixes:
http://autobuild.buildroot.net/results/8f2/8f2a3571611dc9414c23808e7615f87b677557dd/

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#2 lore raw

PATCH v2 1/1 openpgm: depends on sync2/sync4

In reply to Gustavo Zacarias
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gustavo" == Gustavo Zacarias <[email protected]> writes:

Add dependency on BR2_TOOLCHAIN_HAS_SYNC_2/4 since it uses both __sync_fetch_and_add_2() and __sync_fetch_and_add_4() atomic builtins. Fixes:
http://autobuild.buildroot.net/results/8f2/8f2a3571611dc9414c23808e7615f87b677557dd/

---
v2: get rid of bfin conditional since it's atomics-related

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard