Add 'seoul_libc_support' library

This library contains the subset of the libc that is needed for the
Seoul VMM.

Related to issue #666.
This commit is contained in:
Norman Feske 2013-03-01 12:19:32 +01:00
parent 0c8b996fa4
commit 9d0a377efe
3 changed files with 16 additions and 2 deletions

View File

@ -1,4 +1,10 @@
LIBC_DIR = $(REP_DIR)/contrib/libc-8.2.0
#
# We use 'select_from_repositories' rather than specifying the patch via
# 'REP_DIR' to enable other repositories to include this file. For example,
# this enables 'ports/lib/mk/seoul_libc_support.mk' to reuse the definitions.
#
LIBC_DIR = $(call select_from_repositories,contrib/libc-8.2.0)
# local libc includes
INC_DIR += $(LIBC_DIR)/libc/locale
@ -24,4 +30,4 @@ CC_OPT += -DPIC
#
# Use libc import rules also for building the libc itself
#
include $(REP_DIR)/lib/import/import-libc.mk
include $(call select_from_repositories,lib/import/import-libc.mk)

View File

@ -0,0 +1 @@
include $(call select_from_repositories,lib/import/import-libc.mk)

View File

@ -0,0 +1,7 @@
include $(call select_from_repositories,lib/mk/libc-common.inc)
SRC_C = stdlib/strtoul.c
SRC_C += $(addprefix string/,strchr.c strncpy.c strspn.c strcspn.c strstr.c strlen.c strnlen.c strcpy.c memcmp.c strcmp.c)
SRC_C += sys/__error.c gen/errno.c locale/none.c locale/table.c
vpath %.c $(LIBC_DIR)/libc