From: Andrei Tatar Date: Wed, 7 Jun 2023 09:10:30 +0000 (+0200) Subject: Makefile.uk: Condition TCB reserve on Kconfig X-Git-Tag: RELEASE-0.14.0~6 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=999f13e995866e1f2a57c247e7851a1a310257dc;p=unikraft%2Flibs%2Fmusl.git Makefile.uk: Condition TCB reserve on Kconfig Previously musl's Makefile would unconditionally reserve a TCB size, regardless of whether musl was selected for build in Kconfig. This change makes this reservation happen only when musl is selected. Signed-off-by: Andrei Tatar Reviewed-by: Stefan Jumarea Reviewed-by: Eduard Vintilă Approved-by: Razvan Deaconescu Tested-by: Unikraft CI GitHub-Closes: #54 --- diff --git a/Makefile.uk b/Makefile.uk index 763db88..d5b5135 100644 --- a/Makefile.uk +++ b/Makefile.uk @@ -37,7 +37,9 @@ # Please refer to ./arch/Makefile.rules for more details. # For this version of Musl the size of "struct pthread" is 200. ################################################################################ +ifeq ($(CONFIG_LIBMUSL),y) $(eval $(call ukarch_tls_tcb_reserve,200)) +endif ################################################################################ # On aarch64, newer versions of musl no longer expect a 16-byte reserved block