From: Waldemar Brodkorb <wbx@openadk.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] disable linuxthreads for NPTL only architectures for uClibc-ng
Date: Wed, 4 Mar 2015 15:48:17 +0100 [thread overview]
Message-ID: <20150304144816.GA14815@waldemar-brodkorb.de> (raw)
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
next reply other threads:[~2015-03-04 14:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-04 14:48 Waldemar Brodkorb [this message]
2015-03-07 13:43 ` [Buildroot] [PATCH] disable linuxthreads for NPTL only architectures for uClibc-ng Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150304144816.GA14815@waldemar-brodkorb.de \
--to=wbx@openadk.org \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox