diff mbox

toolchain: Add BR2_TOOLCHAIN_HAS_THREADS_NATIVE

Message ID 1373618390-7548-1-git-send-email-mjonker@synopsys.com
State Rejected
Headers show

Commit Message

Mischa Jonker July 12, 2013, 8:39 a.m. UTC
This can be used to check dependencies for packages that need NPTL;
furthermore it can be used to determine the number of stages required
for building the toolchain.

Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
---
 package/uclibc/Config.in                   |    1 +
 toolchain/Config.in                        |    1 +
 toolchain/toolchain-common.in              |    3 +++
 toolchain/toolchain-crosstool-ng/Config.in |    1 +
 toolchain/toolchain-external/Config.in     |   11 +++++++++++
 5 files changed, 17 insertions(+)
diff mbox

Patch

diff --git a/package/uclibc/Config.in b/package/uclibc/Config.in
index f309243..d810495 100644
--- a/package/uclibc/Config.in
+++ b/package/uclibc/Config.in
@@ -114,6 +114,7 @@  choice
 	config BR2_PTHREADS_NATIVE
 		bool "Native POSIX Threading (NPTL)"
 	        select BR2_TOOLCHAIN_HAS_THREADS
+	        select BR2_TOOLCHAIN_HAS_THREADS_NATIVE
 		depends on !BR2_ARM_OABI
 		depends on !BR2_x86_i386
 		depends on !BR2_avr32
diff --git a/toolchain/Config.in b/toolchain/Config.in
index 53d2573..b66cdcb 100644
--- a/toolchain/Config.in
+++ b/toolchain/Config.in
@@ -9,6 +9,7 @@  config BR2_TOOLCHAIN_USES_GLIBC
 	select BR2_ENABLE_LOCALE
 	select BR2_TOOLCHAIN_HAS_THREADS
 	select BR2_TOOLCHAIN_HAS_THREADS_DEBUG
+	select BR2_TOOLCHAIN_HAS_THREADS_NATIVE
 	select BR2_TOOLCHAIN_HAS_SHADOW_PASSWORDS
 
 config BR2_TOOLCHAIN_USES_UCLIBC
diff --git a/toolchain/toolchain-common.in b/toolchain/toolchain-common.in
index 7c9b842..59bdad9 100644
--- a/toolchain/toolchain-common.in
+++ b/toolchain/toolchain-common.in
@@ -29,6 +29,9 @@  config BR2_TOOLCHAIN_HAS_THREADS
 config BR2_TOOLCHAIN_HAS_THREADS_DEBUG
 	bool
 
+config BR2_TOOLCHAIN_HAS_THREADS_NATIVE
+	bool
+
 config BR2_TOOLCHAIN_HAS_SHADOW_PASSWORDS
 	bool
 
diff --git a/toolchain/toolchain-crosstool-ng/Config.in b/toolchain/toolchain-crosstool-ng/Config.in
index 7cfd8c2..d057178 100644
--- a/toolchain/toolchain-crosstool-ng/Config.in
+++ b/toolchain/toolchain-crosstool-ng/Config.in
@@ -128,6 +128,7 @@  choice
 		bool "Native POSIX Threading (NPTL)"
 		select BR2_TOOLCHAIN_HAS_THREADS
 		select BR2_TOOLCHAIN_HAS_THREADS_DEBUG
+		select BR2_TOOLCHAIN_HAS_THREADS_NATIVE
 endchoice
 
 endif # BR2_TOOLCHAIN_CTNG
diff --git a/toolchain/toolchain-external/Config.in b/toolchain/toolchain-external/Config.in
index 130b705..71cbff1 100644
--- a/toolchain/toolchain-external/Config.in
+++ b/toolchain/toolchain-external/Config.in
@@ -899,6 +899,17 @@  config BR2_TOOLCHAIN_EXTERNAL_HAS_THREADS_DEBUG
 	  debugging support. If you don't know, leave the default
 	  value, Buildroot will tell you if it's correct or not.
 
+config BR2_TOOLCHAIN_EXTERNAL_HAS_THREADS_NATIVE
+	bool "Toolchain has NPTL support?"
+	depends on BR2_TOOLCHAIN_EXTERNAL_HAS_THREADS
+	select BR2_TOOLCHAIN_HAS_THREADS_NATIVE
+	default y
+	help
+	  Select this option if your external toolchain has native
+	  POSIX thread library (NPTL) support. If you don't know,
+	  leave the default value, Buildroot will tell you if it's
+	  correct or not.
+
 endif # BR2_TOOLCHAIN_EXTERNAL_CUSTOM_UCLIBC
 
 config BR2_TOOLCHAIN_EXTERNAL_INET_RPC