summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2020-12-31 16:35:08 (GMT)
committerWaldemar Brodkorb <wbx@openadk.org>2020-12-31 16:35:08 (GMT)
commitaf0062c6d688bd534b8ab85a5c409878d9d885b1 (patch)
treeb5237de73fe5d35211884ce62261a2dae25f4d33
parent3d02c73b67b329052f5b49cf9240ca14f353a7c3 (diff)
allow to preset thread implementation
-rw-r--r--mk/build.mk11
-rw-r--r--target/config/Config.in.threads3
2 files changed, 12 insertions, 2 deletions
diff --git a/mk/build.mk b/mk/build.mk
index c34b71c..bbd1239 100644
--- a/mk/build.mk
+++ b/mk/build.mk
@@ -460,6 +460,17 @@ defconfig: .menu $(CONFIG)/conf
printf "# ADK_TARGET_WITH_MMU is not set\n" \
>> $(ADK_TOPDIR)/.defconfig; \
fi
+ @if [ ! -z "$(ADK_TARGET_THREADS)" ];then \
+ if [ "$(ADK_TARGET_THREADS)" = "nptl" ];then \
+ printf "ADK_TARGET_WITH_NPTL=y\n" >> $(ADK_TOPDIR)/.defconfig; \
+ fi; \
+ if [ "$(ADK_TARGET_THREADS)" = "lt" ];then \
+ printf "ADK_TARGET_WITH_LT=y\n" >> $(ADK_TOPDIR)/.defconfig; \
+ fi; \
+ if [ "$(ADK_TARGET_THREADS)" = "none" ];then \
+ printf "ADK_TARGET_WITHOUT_THREADS=y\n" >> $(ADK_TOPDIR)/.defconfig; \
+ fi; \
+ fi
@if [ ! -z "$(ADK_TARGET_LIBC)" ];then \
libc=$$(echo "$(ADK_TARGET_LIBC)"|sed -e "s/-/_/"); \
grep "^config" target/config/Config.in.libc \
diff --git a/target/config/Config.in.threads b/target/config/Config.in.threads
index d08a0c8..ff4fcac 100644
--- a/target/config/Config.in.threads
+++ b/target/config/Config.in.threads
@@ -7,8 +7,7 @@ depends on ADK_TARGET_LIB_UCLIBC_NG
config ADK_TARGET_WITH_NPTL
bool "NPTL"
- depends on ADK_TARGET_SUPPORTS_NPTL && ADK_TARGET_SUPPORTS_THREADS || \
- ((ADK_TARGET_ARCH_ARM && ADK_TARGET_BINFMT_FDPIC) || ADK_TARGET_WITH_MMU)
+ depends on ADK_TARGET_SUPPORTS_NPTL && ADK_TARGET_SUPPORTS_THREADS
config ADK_TARGET_WITH_LT
bool "Linuxthreads"