Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] disable linuxthreads for NPTL only architectures for uClibc-ng
@ 2015-03-04 14:48 Waldemar Brodkorb
  2015-03-07 13:43 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Waldemar Brodkorb @ 2015-03-04 14:48 UTC (permalink / raw)
  To: buildroot

uClibc-ng does not support multiple thread implementations for
an architecture and MMU configuration.
BFIN, ARM noMMU and m68k/Coldfire noMMU still uses linuxthreads in uClibc-ng.
The other buildroot supported architectures support NPTL.
Reflect this in Buildroot configuration.
ARC would work with uClibc-ng 1.0.0 and TLS/NPTL, but the correct
toolchain must be used.

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
---
 package/uclibc/Config.in |   29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/package/uclibc/Config.in b/package/uclibc/Config.in
index 3a65752..c939f3f 100644
--- a/package/uclibc/Config.in
+++ b/package/uclibc/Config.in
@@ -5,6 +5,10 @@ config BR2_PACKAGE_UCLIBC
 	bool
 	default y
 
+# helper symbol robust against releases
+config BR2_PACKAGE_UCLIBC_NG
+	bool
+
 comment "uClibc Options"
 
 choice
@@ -23,6 +27,7 @@ choice
 
 	config BR2_UCLIBC_NG_VERSION_1_0_0
 		bool "uClibc-ng 1.0.0"
+		select BR2_PACKAGE_UCLIBC_NG
 
 	config BR2_UCLIBC_VERSION_XTENSA_GIT
 		bool "uClibc Git Xtensa"
@@ -117,10 +122,34 @@ choice
 		bool "linuxthreads"
 		depends on !BR2_bfin
 		depends on !BR2_xtensa
+		depends on !BR2_arm && BR2_PACKAGE_UCLIBC_NG
+		depends on !BR2_armeb && BR2_PACKAGE_UCLIBC_NG
+		depends on !BR2_i386 && BR2_PACKAGE_UCLIBC_NG
+		depends on !BR2_mips && BR2_PACKAGE_UCLIBC_NG
+		depends on !BR2_mipsel && BR2_PACKAGE_UCLIBC_NG
+		depends on !BR2_mips64 && BR2_PACKAGE_UCLIBC_NG
+		depends on !BR2_mips64el && BR2_PACKAGE_UCLIBC_NG
+		depends on !BR2_sh && BR2_PACKAGE_UCLIBC_NG
+		depends on !BR2_powerpc && BR2_PACKAGE_UCLIBC_NG
+		depends on !BR2_sparc && BR2_PACKAGE_UCLIBC_NG
+		depends on !BR2_x86_64 && BR2_PACKAGE_UCLIBC_NG
+		depends on !BR2_xtensa && BR2_PACKAGE_UCLIBC_NG
 		select BR2_TOOLCHAIN_HAS_THREADS
 
 	config BR2_PTHREADS_OLD
 		bool "linuxthreads (stable/old)"
+		depends on !BR2_arm && BR2_PACKAGE_UCLIBC_NG
+		depends on !BR2_armeb && BR2_PACKAGE_UCLIBC_NG
+		depends on !BR2_i386 && BR2_PACKAGE_UCLIBC_NG
+		depends on !BR2_mips && BR2_PACKAGE_UCLIBC_NG
+		depends on !BR2_mipsel && BR2_PACKAGE_UCLIBC_NG
+		depends on !BR2_mips64 && BR2_PACKAGE_UCLIBC_NG
+		depends on !BR2_mips64el && BR2_PACKAGE_UCLIBC_NG
+		depends on !BR2_sh && BR2_PACKAGE_UCLIBC_NG
+		depends on !BR2_powerpc && BR2_PACKAGE_UCLIBC_NG
+		depends on !BR2_sparc && BR2_PACKAGE_UCLIBC_NG
+		depends on !BR2_x86_64 && BR2_PACKAGE_UCLIBC_NG
+		depends on !BR2_xtensa && BR2_PACKAGE_UCLIBC_NG
 		select BR2_TOOLCHAIN_HAS_THREADS
 
 	config BR2_PTHREADS_NATIVE
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH] disable linuxthreads for NPTL only architectures for uClibc-ng
  2015-03-04 14:48 [Buildroot] [PATCH] disable linuxthreads for NPTL only architectures for uClibc-ng Waldemar Brodkorb
@ 2015-03-07 13:43 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2015-03-07 13:43 UTC (permalink / raw)
  To: buildroot

Dear Waldemar Brodkorb,

On Wed, 4 Mar 2015 15:48:17 +0100, Waldemar Brodkorb wrote:
> uClibc-ng does not support multiple thread implementations for
> an architecture and MMU configuration.
> BFIN, ARM noMMU and m68k/Coldfire noMMU still uses linuxthreads in uClibc-ng.
> The other buildroot supported architectures support NPTL.
> Reflect this in Buildroot configuration.
> ARC would work with uClibc-ng 1.0.0 and TLS/NPTL, but the correct
> toolchain must be used.
> 
> Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>

I've posted a different proposal at
http://patchwork.ozlabs.org/patch/447577/. Can you review it?

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-07 13:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-04 14:48 [Buildroot] [PATCH] disable linuxthreads for NPTL only architectures for uClibc-ng Waldemar Brodkorb
2015-03-07 13:43 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox