am 6cf34775: am 47a73363: Merge "Factor out some of the makefile cruft."
* commit '6cf34775513859dd48b986162e761aff57df82fb': Factor out some of the makefile cruft.
This commit is contained in:
commit
0f3973bdb5
149
libc/Android.mk
149
libc/Android.mk
@ -415,6 +415,36 @@ libc_upstream_netbsd_src_files := \
|
|||||||
upstream-netbsd/libc/string/strxfrm.c \
|
upstream-netbsd/libc/string/strxfrm.c \
|
||||||
upstream-netbsd/libc/unistd/killpg.c \
|
upstream-netbsd/libc/unistd/killpg.c \
|
||||||
|
|
||||||
|
# These files need to be arm so that gdbserver
|
||||||
|
# can set breakpoints in them without messing
|
||||||
|
# up any thumb code.
|
||||||
|
# TODO: is this actually necessary?
|
||||||
|
ifeq ($(TARGET_ARCH),arm)
|
||||||
|
libc_common_src_files += \
|
||||||
|
bionic/pthread-atfork.c.arm \
|
||||||
|
bionic/pthread-rwlocks.c.arm \
|
||||||
|
bionic/pthread-timers.c.arm \
|
||||||
|
bionic/ptrace.c.arm \
|
||||||
|
|
||||||
|
libc_static_common_src_files += \
|
||||||
|
bionic/pthread.c.arm \
|
||||||
|
bionic/pthread_create.cpp.arm \
|
||||||
|
bionic/pthread_key.cpp.arm \
|
||||||
|
|
||||||
|
else
|
||||||
|
libc_common_src_files += \
|
||||||
|
bionic/pthread-atfork.c \
|
||||||
|
bionic/pthread-rwlocks.c \
|
||||||
|
bionic/pthread-timers.c \
|
||||||
|
bionic/ptrace.c \
|
||||||
|
|
||||||
|
libc_static_common_src_files += \
|
||||||
|
bionic/pthread.c \
|
||||||
|
bionic/pthread_create.cpp \
|
||||||
|
bionic/pthread_key.cpp \
|
||||||
|
|
||||||
|
endif # arm
|
||||||
|
|
||||||
|
|
||||||
# Architecture specific source files go here
|
# Architecture specific source files go here
|
||||||
# =========================================================
|
# =========================================================
|
||||||
@ -441,78 +471,8 @@ libc_common_src_files += \
|
|||||||
upstream-freebsd/lib/libc/string/wcsrchr.c \
|
upstream-freebsd/lib/libc/string/wcsrchr.c \
|
||||||
upstream-freebsd/lib/libc/string/wmemcmp.c \
|
upstream-freebsd/lib/libc/string/wmemcmp.c \
|
||||||
|
|
||||||
# These files need to be arm so that gdbserver
|
|
||||||
# can set breakpoints in them without messing
|
|
||||||
# up any thumb code.
|
|
||||||
# TODO: is this actually necessary?
|
|
||||||
libc_common_src_files += \
|
|
||||||
bionic/pthread-atfork.c.arm \
|
|
||||||
bionic/pthread-rwlocks.c.arm \
|
|
||||||
bionic/pthread-timers.c.arm \
|
|
||||||
bionic/ptrace.c.arm \
|
|
||||||
|
|
||||||
libc_static_common_src_files += \
|
|
||||||
bionic/pthread.c.arm \
|
|
||||||
bionic/pthread_create.cpp.arm \
|
|
||||||
bionic/pthread_key.cpp.arm \
|
|
||||||
|
|
||||||
endif # arm
|
endif # arm
|
||||||
|
|
||||||
ifeq ($(TARGET_ARCH),x86)
|
|
||||||
libc_common_src_files += \
|
|
||||||
bionic/pthread-atfork.c \
|
|
||||||
bionic/pthread-rwlocks.c \
|
|
||||||
bionic/pthread-timers.c \
|
|
||||||
bionic/ptrace.c \
|
|
||||||
|
|
||||||
libc_static_common_src_files += \
|
|
||||||
bionic/pthread.c \
|
|
||||||
bionic/pthread_create.cpp \
|
|
||||||
bionic/pthread_key.cpp \
|
|
||||||
|
|
||||||
endif # x86
|
|
||||||
|
|
||||||
ifeq ($(TARGET_ARCH),$(filter $(TARGET_ARCH),x86_64))
|
|
||||||
libc_common_src_files += \
|
|
||||||
bionic/memchr.c \
|
|
||||||
bionic/memcmp.c \
|
|
||||||
bionic/memcpy.c \
|
|
||||||
bionic/memmove.c \
|
|
||||||
bionic/memrchr.c \
|
|
||||||
bionic/memset.c \
|
|
||||||
bionic/pthread-atfork.c \
|
|
||||||
bionic/pthread-rwlocks.c \
|
|
||||||
bionic/pthread-timers.c \
|
|
||||||
bionic/ptrace.c \
|
|
||||||
bionic/strchr.cpp \
|
|
||||||
bionic/strnlen.c \
|
|
||||||
string/bcopy.c \
|
|
||||||
string/index.c \
|
|
||||||
string/strcat.c \
|
|
||||||
string/strcmp.c \
|
|
||||||
string/strcpy.c \
|
|
||||||
string/strlcat.c \
|
|
||||||
string/strlcpy.c \
|
|
||||||
string/strlen.c \
|
|
||||||
string/strncat.c \
|
|
||||||
string/strncmp.c \
|
|
||||||
string/strncpy.c \
|
|
||||||
string/strrchr.c \
|
|
||||||
upstream-freebsd/lib/libc/string/wcscat.c \
|
|
||||||
upstream-freebsd/lib/libc/string/wcschr.c \
|
|
||||||
upstream-freebsd/lib/libc/string/wcscmp.c \
|
|
||||||
upstream-freebsd/lib/libc/string/wcscpy.c \
|
|
||||||
upstream-freebsd/lib/libc/string/wcslen.c \
|
|
||||||
upstream-freebsd/lib/libc/string/wcsrchr.c \
|
|
||||||
upstream-freebsd/lib/libc/string/wmemcmp.c \
|
|
||||||
|
|
||||||
libc_static_common_src_files += \
|
|
||||||
bionic/pthread.c \
|
|
||||||
bionic/pthread_create.cpp \
|
|
||||||
bionic/pthread_key.cpp \
|
|
||||||
|
|
||||||
endif # x86_64
|
|
||||||
|
|
||||||
ifeq ($(TARGET_ARCH),mips)
|
ifeq ($(TARGET_ARCH),mips)
|
||||||
libc_common_src_files += \
|
libc_common_src_files += \
|
||||||
bionic/memchr.c \
|
bionic/memchr.c \
|
||||||
@ -539,21 +499,44 @@ libc_common_src_files += \
|
|||||||
upstream-freebsd/lib/libc/string/wcsrchr.c \
|
upstream-freebsd/lib/libc/string/wcsrchr.c \
|
||||||
upstream-freebsd/lib/libc/string/wmemcmp.c \
|
upstream-freebsd/lib/libc/string/wmemcmp.c \
|
||||||
|
|
||||||
libc_common_src_files += \
|
|
||||||
bionic/pthread-atfork.c \
|
|
||||||
bionic/pthread-rwlocks.c \
|
|
||||||
bionic/pthread-timers.c \
|
|
||||||
bionic/ptrace.c \
|
|
||||||
|
|
||||||
libc_static_common_src_files += \
|
|
||||||
bionic/pthread.c \
|
|
||||||
bionic/pthread_create.cpp \
|
|
||||||
bionic/pthread_key.cpp \
|
|
||||||
|
|
||||||
endif # mips
|
endif # mips
|
||||||
|
|
||||||
ifeq ($(strip $(TARGET_CPU_VARIANT)),)
|
ifeq ($(TARGET_ARCH),$(filter $(TARGET_ARCH),x86_64))
|
||||||
$(warning TARGET_CPU_VARIANT is not defined)
|
libc_common_src_files += \
|
||||||
|
bionic/memchr.c \
|
||||||
|
bionic/memcmp.c \
|
||||||
|
bionic/memcpy.c \
|
||||||
|
bionic/memmove.c \
|
||||||
|
bionic/memrchr.c \
|
||||||
|
bionic/memset.c \
|
||||||
|
bionic/strchr.cpp \
|
||||||
|
bionic/strnlen.c \
|
||||||
|
string/bcopy.c \
|
||||||
|
string/index.c \
|
||||||
|
string/strcat.c \
|
||||||
|
string/strcmp.c \
|
||||||
|
string/strcpy.c \
|
||||||
|
string/strlcat.c \
|
||||||
|
string/strlcpy.c \
|
||||||
|
string/strlen.c \
|
||||||
|
string/strncat.c \
|
||||||
|
string/strncmp.c \
|
||||||
|
string/strncpy.c \
|
||||||
|
string/strrchr.c \
|
||||||
|
upstream-freebsd/lib/libc/string/wcscat.c \
|
||||||
|
upstream-freebsd/lib/libc/string/wcschr.c \
|
||||||
|
upstream-freebsd/lib/libc/string/wcscmp.c \
|
||||||
|
upstream-freebsd/lib/libc/string/wcscpy.c \
|
||||||
|
upstream-freebsd/lib/libc/string/wcslen.c \
|
||||||
|
upstream-freebsd/lib/libc/string/wcsrchr.c \
|
||||||
|
upstream-freebsd/lib/libc/string/wmemcmp.c \
|
||||||
|
|
||||||
|
endif # x86_64
|
||||||
|
|
||||||
|
ifeq ($(TARGET_ARCH),arm)
|
||||||
|
ifeq ($(strip $(TARGET_CPU_VARIANT)),)
|
||||||
|
$(warning TARGET_ARCH is arm, but TARGET_CPU_VARIANT is not defined)
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
###########################################################
|
###########################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user