[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[UNIKRAFT/LIB-NEWLIB PATCH] Makefile.uk: Include unix basename and dirname



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@xxxxxxxxx>
---
 Makefile.uk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Makefile.uk b/Makefile.uk
index 82836e4..f1cdf7a 100644
--- a/Makefile.uk
+++ b/Makefile.uk
@@ -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
 
################################################################################
-- 
2.20.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.