libc: enhance quirk for building libc-gen on ARM

This patch enables the building of the libc from a source archive
for ARM.
This commit is contained in:
Norman Feske 2017-04-07 14:32:45 +02:00 committed by Christian Helmuth
parent ed64a9233e
commit 8aebfd9b26

View File

@ -9,7 +9,14 @@ FILTER_OUT_C += _set_tp.c fabs.c frexp.c modf.c
SRC_S += $(filter-out $(FILTER_OUT_S),$(notdir $(wildcard $(LIBC_GEN_ARM_DIR)/*.S))) SRC_S += $(filter-out $(FILTER_OUT_S),$(notdir $(wildcard $(LIBC_GEN_ARM_DIR)/*.S)))
SRC_C += $(filter-out $(FILTER_OUT_C),$(notdir $(wildcard $(LIBC_GEN_ARM_DIR)/*.c))) SRC_C += $(filter-out $(FILTER_OUT_C),$(notdir $(wildcard $(LIBC_GEN_ARM_DIR)/*.c)))
# fix missing include prefix for 'ucontext.h', should be 'sys/ucontext.h' #
CC_OPT_makecontext = -I$(call select_from_ports,libc)/include/libc/sys # Fix missing include prefix for 'ucontext.h', should be 'sys/ucontext.h'
#
# The first path is in effect when using the regular build system. The second
# path is in effect when building the libc from a source archive (where the
# ucontext.h header is taken from the libc API archive).
#
CC_OPT_makecontext = -I$(call select_from_ports,libc)/include/libc/sys \
$(addprefix -I,$(call select_from_repositories,/include/libc/sys))
vpath % $(LIBC_GEN_ARM_DIR) vpath % $(LIBC_GEN_ARM_DIR)