]> xenbits.xensource.com Git - unikraft/libs/newlib.git/commitdiff
Makefile.uk: Include unix basename and dirname
authorAlexander Jung <a.jung@lancs.ac.uk>
Tue, 11 Aug 2020 16:27:23 +0000 (18:27 +0200)
committerSimon Kuenzer <simon.kuenzer@neclab.eu>
Mon, 21 Dec 2020 10:26:27 +0000 (11:26 +0100)
This commit adds basename() and dirname() into the newlib build
for Unikraft.  Both functions have only dependencies to <string.h>
making them easily compatible.

Signed-off-by: Alexander Jung <alexander.jung@neclab.eu>
Reviewed-by: Razvan Virtan <virtanrazvan@gmail.com>
Makefile.uk

index 82836e42c8df36075868c6e26f883df7246b0dff..f1cdf7a201e21a553f4c3963d76cfbbcfb1a3c39 100644 (file)
@@ -860,6 +860,12 @@ LIBNEWLIBC_SRCS-y += $(LIBNEWLIB_LIBC)/time/tzset_r.c
 LIBNEWLIBC_SRCS-y += $(LIBNEWLIB_LIBC)/time/tzvars.c
 LIBNEWLIBC_SRCS-y += $(LIBNEWLIB_LIBC)/time/wcsftime.c
 
+################################################################################
+# Newlib/libc code -- unix
+################################################################################
+LIBNEWLIBC_SRCS-y += $(LIBNEWLIB_LIBC)/unix/basename.c
+LIBNEWLIBC_SRCS-y += $(LIBNEWLIB_LIBC)/unix/dirname.c
+
 ################################################################################
 # Newlib/libc code -- setjmp, longjmp
 ################################################################################