Browse Source

rework thread handling

In the next uClibc-ng release Linuxthreads support will be
again allowed for architectures supporting NPTL.
To keep Linuxthreads supported and shiny we need architectures
and emulators supported where native debugging is simple.
Last time stucked with microblaze as only system where
I could run some gdb somehow :(
Waldemar Brodkorb 7 years ago
parent
commit
69ccbb2c9a
3 changed files with 254 additions and 125 deletions
  1. 1 1
      mk/build.mk
  2. 240 117
      target/config/Config.in.cpu
  3. 13 7
      target/config/Config.in.libc

+ 1 - 1
mk/build.mk

@@ -323,7 +323,7 @@ $(CONFIG)/mconf:
 	@$(MAKE) -C $(CONFIG)
 
 defconfig: .menu $(CONFIG)/conf
-	-@rm $(ADK_TOPDIR)/.defconfig 2>/dev/null
+	@if [ -f $(ADK_TOPDIR)/.defconfig ]; then rm $(ADK_TOPDIR)/.defconfig;fi
 	@if [ ! -z "$(ADK_NO_CHECKSUM)" ];then \
 		echo "ADK_DISABLE_CHECKSUM=y" >> $(ADK_TOPDIR)/.defconfig; \
 	fi

File diff suppressed because it is too large
+ 240 - 117
target/config/Config.in.cpu


+ 13 - 7
target/config/Config.in.libc

@@ -194,23 +194,29 @@ endchoice
 
 choice
 prompt "Threading"
-depends on ADK_TARGET_LIB_UCLIBC_NG && !ADK_TARGET_WITHOUT_THREADS
+depends on ADK_TARGET_SUPPORTS_THREADS
 
-config ADK_TARGET_LIB_WITH_THREADS
-	bool "enable threads"
+config ADK_TARGET_WITH_NPTL
+	bool "enable NPTL"
+	depends on ADK_TARGET_SUPPORTS_NPTL
+
+config ADK_TARGET_WITH_LT
+	bool "enable Linuxthreads"
+	depends on ADK_TARGET_SUPPORTS_LT && ADK_TARGET_LIB_UCLIBC_NG
 
-config ADK_TARGET_LIB_WITHOUT_THREADS
+config ADK_TARGET_WITHOUT_THREADS
 	bool "disable threads"
+	depends on ADK_TARGET_LIB_UCLIBC_NG
 
 endchoice
 
-config ADK_TARGET_WITH_LT
+config ADK_TARGET_SUPPORTS_THREADS
 	bool
 
-config ADK_TARGET_WITH_NPTL
+config ADK_TARGET_SUPPORTS_NPTL
 	bool
 
-config ADK_TARGET_WITHOUT_THREADS
+config ADK_TARGET_SUPPORTS_LT
 	bool
 
 config ADK_TARGET_LIBC

Some files were not shown because too many files changed in this diff