]> xenbits.xensource.com Git - unikraft/libs/musl.git/commitdiff
Add library dependencies for thread support
authorDragos Iulian Argint <dragosargint21@gmail.com>
Sun, 14 Aug 2022 21:42:48 +0000 (00:42 +0300)
committerUnikraft <monkey@unikraft.io>
Thu, 24 Nov 2022 11:56:36 +0000 (11:56 +0000)
Select (by default) the core libraries used by musl:
`LIBUKMMAP` - provides mmap() syscall
`LIBPOSIX_PROCESS_PIDS` - provides pid,tid implementation
`LIBPOSIX_PROCESS_CLONE` - provides the clone() syscall
`LIBPOSIX_FUTEX` - provides futex() syscall
`LIBUKSCHED_TCB_INIT` - allows setting the size for the LIBC TCB

Signed-off-by: Dragos Iulian Argint <dragosargint21@gmail.com>
Reviewed-by: Florin Postolache <florin.postolache80@gmail.com>
Reviewed-by: Simon Kuenzer <simon@unikraft.io>
Reviewed-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io>
Reviewed-by: Razvan Deaconescu <razvand@unikraft.io>
Reviewed-by: Robert Kuban <robert.kuban@opensynergy.com>
Approved-by: Simon Kuenzer <simon@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #9

Config.uk

index 45218f43fe5b2cc0a93ca17ebe82c60b5e0220c3..9906e22578d6f771acdd4896bd0e44a51633b3f7 100644 (file)
--- a/Config.uk
+++ b/Config.uk
@@ -4,9 +4,14 @@ menuconfig LIBMUSL
   default n
   select HAVE_LIBC
   select LIBKUALLOC
+  select LIBUKMMAP
   select LIBSYSCALL_SHIM
   select LIBVFSCORE
   select LIBPOSIX_PROCESS
+  select LIBPOSIX_PROCESS_PIDS
+  select LIBPOSIX_PROCESS_CLONE
+  select LIBPOSIX_FUTEX
+  select LIBUKSCHED_TCB_INIT
 
   select LIBMUSL_STAT
   select LIBMUSL_DIRENT