Ver Fonte

restrict linuxthreads/nptl choice

For architectures supporting no MMU systems, allow to use
Linuxthreads. BFLAT does not support TLS right now, so NPTL
can not be used.
Waldemar Brodkorb há 8 anos atrás
pai
commit
b8efd7f696
1 ficheiros alterados com 7 adições e 3 exclusões
  1. 7 3
      extra/Configs/Config.in

+ 7 - 3
extra/Configs/Config.in

@@ -533,6 +533,7 @@ config LINUXTHREADS_OLD
 	# linuxthreads and linuxthreads.old need nanosleep()
 	# linuxthreads and linuxthreads.old need nanosleep()
 	select UCLIBC_HAS_REALTIME
 	select UCLIBC_HAS_REALTIME
 	depends on !TARGET_arc && \
 	depends on !TARGET_arc && \
+		   !TARGET_arm && \
 		   !TARGET_i386 && \
 		   !TARGET_i386 && \
 		   !TARGET_metag && \
 		   !TARGET_metag && \
 		   !TARGET_mips && \
 		   !TARGET_mips && \
@@ -540,7 +541,8 @@ config LINUXTHREADS_OLD
 		   !TARGET_sh && \
 		   !TARGET_sh && \
 		   !TARGET_sparc && \
 		   !TARGET_sparc && \
 		   !TARGET_x86_64 && \
 		   !TARGET_x86_64 && \
-		   !TARGET_xtensa
+		   !TARGET_xtensa || \
+		   !ARCH_USE_MMU
 	help
 	help
 	  There are two versions of linuxthreads.  The older (stable) version
 	  There are two versions of linuxthreads.  The older (stable) version
 	  has been in uClibc for quite a long time but hasn't seen too many
 	  has been in uClibc for quite a long time but hasn't seen too many
@@ -559,7 +561,8 @@ config LINUXTHREADS_NEW
 		   !TARGET_sh && \
 		   !TARGET_sh && \
 		   !TARGET_sparc && \
 		   !TARGET_sparc && \
 		   !TARGET_x86_64 && \
 		   !TARGET_x86_64 && \
-		   !TARGET_xtensa
+		   !TARGET_xtensa || \
+		   !ARCH_USE_MMU
 	help
 	help
 	  The new version has not been tested much, and lacks ports for arches
 	  The new version has not been tested much, and lacks ports for arches
 	  which glibc does not support (like bfin/frv/etc...), but is based on
 	  which glibc does not support (like bfin/frv/etc...), but is based on
@@ -585,7 +588,8 @@ config UCLIBC_HAS_THREADS_NATIVE
 		   !TARGET_microblaze && \
 		   !TARGET_microblaze && \
 		   !TARGET_nios2 && \
 		   !TARGET_nios2 && \
 		   !TARGET_or1k && \
 		   !TARGET_or1k && \
-		   !TARGET_vax
+		   !TARGET_vax && \
+		   ARCH_USE_MMU
 	help
 	help
 	  If you want to compile uClibc with NPTL support, then answer Y.
 	  If you want to compile uClibc with NPTL support, then answer Y.