Skip to content

Commit

Permalink
Synchronize musl with POSIX-Process internal libs
Browse files Browse the repository at this point in the history
Signed-off-by: gaulthier gain <[email protected]>
Tested-by: Unikraft CI <[email protected]>
GitHub-Pull-Request: unikraft#3
  • Loading branch information
gaulthiergain authored and unikraft-bot committed Oct 13, 2021
1 parent 7b217d6 commit 0cebe66
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Makefile.uk.musl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ LIBMUSL_CONF_HDRS-y += $(LIBMUSL)/include/sys/resource.h
LIBMUSL_CONF_HDRS-y += $(LIBMUSL)/include/sys/sysinfo.h
LIBMUSL_CONF_HDRS-y += $(LIBMUSL)/include/unistd.h

ifneq ($(CONFIG_LIBPOSIX_SYSINFO),y)
LIBMUSL_CONF_SRCS-y += $(LIBMUSL)/src/conf/confstr.c
LIBMUSL_CONF_SRCS-y += $(LIBMUSL)/src/conf/fpathconf.c
LIBMUSL_CONF_SRCS-y += $(LIBMUSL)/src/conf/legacy.c
LIBMUSL_CONF_SRCS-y += $(LIBMUSL)/src/conf/pathconf.c
LIBMUSL_CONF_SRCS-y += $(LIBMUSL)/src/conf/sysconf.c
endif

$(eval $(call _libmusl_import_lib,conf,$(LIBMUSL_CONF_HDRS-y),$(LIBMUSL_CONF_SRCS-y)))
2 changes: 2 additions & 0 deletions Makefile.uk.musl.legacy
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ LIBMUSL_LEGACY_SRCS-y += $(LIBMUSL)/src/legacy/ftw.c
#LIBMUSL_LEGACY_SRCS-y += $(LIBMUSL)/src/legacy/futimes.c
LIBMUSL_LEGACY_SRCS-y += $(LIBMUSL)/src/legacy/getdtablesize.c
LIBMUSL_LEGACY_SRCS-y += $(LIBMUSL)/src/legacy/getloadavg.c
ifneq ($(CONFIG_LIBPOSIX_SYSINFO),y)
LIBMUSL_LEGACY_SRCS-y += $(LIBMUSL)/src/legacy/getpagesize.c
endif
LIBMUSL_LEGACY_SRCS-y += $(LIBMUSL)/src/legacy/getpass.c
LIBMUSL_LEGACY_SRCS-y += $(LIBMUSL)/src/legacy/getusershell.c
LIBMUSL_LEGACY_SRCS-y += $(LIBMUSL)/src/legacy/isastream.c
Expand Down
2 changes: 2 additions & 0 deletions Makefile.uk.musl.misc
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ LIBMUSL_MISC_SRCS-y += $(LIBMUSL)/src/misc/setdomainname.c
LIBMUSL_MISC_SRCS-y += $(LIBMUSL)/src/misc/setrlimit.c
#LIBMUSL_MISC_SRCS-y += $(LIBMUSL)/src/misc/syscall.c|misc
LIBMUSL_MISC_SRCS-y += $(LIBMUSL)/src/misc/syslog.c
ifneq ($(CONFIG_LIBPOSIX_SYSINFO),y)
LIBMUSL_MISC_SRCS-y += $(LIBMUSL)/src/misc/uname.c
endif
LIBMUSL_MISC_SRCS-y += $(LIBMUSL)/src/misc/wordexp.c

$(eval $(call _libmusl_import_lib,misc,$(LIBMUSL_MISC_HDRS-y),$(LIBMUSL_MISC_SRCS-y)))
4 changes: 3 additions & 1 deletion Makefile.uk.musl.unistd
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ LIBMUSL_UNISTD_SRCS-y += $(LIBMUSL)/src/unistd/getgroups.c
LIBMUSL_UNISTD_SRCS-y += $(LIBMUSL)/src/unistd/getlogin.c
LIBMUSL_UNISTD_SRCS-y += $(LIBMUSL)/src/unistd/getlogin_r.c
LIBMUSL_UNISTD_SRCS-y += $(LIBMUSL)/src/unistd/getuid.c
else
endif

ifneq ($(CONFIG_LIBPOSIX_SYSINFO),y)
LIBMUSL_UNISTD_SRCS-y += $(LIBMUSL)/src/unistd/gethostname.c
endif

Expand Down

0 comments on commit 0cebe66

Please sign in to comment.