Skip to contentSkip to conversation

toolchain: Add BR2_TOOLCHAIN_HAS_THREADS_NATIVE

PATCH New Mischa Jonker 1 participant 1 message Jul 12, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 toolchain: Add BR2_TOOLCHAIN_HAS_THREADS_NATIVE

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.

---
 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(+)
package/uclibc/Config.in +1 -0
index f309243..d810495 100644
@@ -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
toolchain/Config.in +1 -0
index 53d2573..b66cdcb 100644
@@ -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
toolchain/toolchain-common.in +3 -0
index 7c9b842..59bdad9 100644
@@ -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
 
toolchain/toolchain-crosstool-ng/Config.in +1 -0
index 7cfd8c2..d057178 100644
@@ -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
toolchain/toolchain-external/Config.in +11 -0
index 130b705..71cbff1 100644
@@ -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
Signature · 1 line
1.7.9.5