summaryrefslogtreecommitdiff
path: root/target/riscv64
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2019-11-08 03:02:54 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2019-11-08 03:02:54 +0100
commit7eb784ff9c7302e5954cfdcdd484011136f59ec5 (patch)
tree293a9af1dca568ff6161775f867d4438889ab95e /target/riscv64
parent42e913726d359db0d293b903bb7857912b49c15f (diff)
riscv64: enable NPTL/TLS for uClibc-ng
Diffstat (limited to 'target/riscv64')
-rw-r--r--target/riscv64/Makefile2
-rw-r--r--target/riscv64/uclibc-ng.config9
2 files changed, 7 insertions, 4 deletions
diff --git a/target/riscv64/Makefile b/target/riscv64/Makefile
index 8f396c361..bc31d62d8 100644
--- a/target/riscv64/Makefile
+++ b/target/riscv64/Makefile
@@ -7,7 +7,7 @@ include $(ADK_TOPDIR)/mk/image.mk
KERNEL:=$(LINUX_DIR)/vmlinux
OSTRIP:=-R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id
-QEMU_ARGS:=-M virt -nographic
+QEMU_ARGS:=-M virt -m 256 -nographic
ifeq ($(ADK_TARGET_QEMU_WITH_VIRTIO),y)
QEMU_ARGS+=-netdev user,id=eth0 -device virtio-net-device,netdev=eth0
endif
diff --git a/target/riscv64/uclibc-ng.config b/target/riscv64/uclibc-ng.config
index 1931eee38..5158f4850 100644
--- a/target/riscv64/uclibc-ng.config
+++ b/target/riscv64/uclibc-ng.config
@@ -78,9 +78,11 @@ LDSO_SAFE_RUNPATH=y
LDSO_SEARCH_INTERP_PATH=y
LDSO_LD_LIBRARY_PATH=y
# LDSO_GNU_HASH_SUPPORT is not set
-HAS_NO_THREADS=y
-# UCLIBC_HAS_LINUXTHREADS is not set
-# UCLIBC_HAS_THREADS_NATIVE is not set
+# HAS_NO_THREADS is not set
+UCLIBC_HAS_THREADS_NATIVE=y
+UCLIBC_HAS_THREADS=y
+UCLIBC_HAS_TLS=y
+# PTHREADS_DEBUG_SUPPORT is not set
UCLIBC_HAS_SYSLOG=y
UCLIBC_HAS_LFS=y
# MALLOC is not set
@@ -152,6 +154,7 @@ UCLIBC_HAS_RESOLVER_SUPPORT=y
#
UCLIBC_HAS_STRING_GENERIC_OPT=y
UCLIBC_HAS_STRING_ARCH_OPT=y
+UCLIBC_HAS_STDIO_FUTEXES=y
UCLIBC_HAS_CTYPE_TABLES=y
UCLIBC_HAS_CTYPE_SIGNED=y
# UCLIBC_HAS_CTYPE_UNSAFE is not set