diff options
author | Elliott Hughes <enh@google.com> | 2014-09-16 19:06:31 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-09-16 19:06:31 -0700 |
commit | 7c02d9428ca18ac600f7ba7d51bb24ca71e733f6 (patch) | |
tree | a773c043170cab95b9a9a9220e33dd81dddcedf3 /libc/arch-x86/x86.mk | |
parent | 17cc8e539a578184662c1966a60f37c7d4fed65e (diff) | |
download | bionic-7c02d9428ca18ac600f7ba7d51bb24ca71e733f6.zip bionic-7c02d9428ca18ac600f7ba7d51bb24ca71e733f6.tar.gz bionic-7c02d9428ca18ac600f7ba7d51bb24ca71e733f6.tar.bz2 |
Clean up the architecture-specific makefiles.
Group things appropriately and name each group.
Change-Id: I0da45eb0ccde19c31d5e984d0e6eb3dad26630dc
Diffstat (limited to 'libc/arch-x86/x86.mk')
-rw-r--r-- | libc/arch-x86/x86.mk | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/libc/arch-x86/x86.mk b/libc/arch-x86/x86.mk index f45eb65..9f2188c 100644 --- a/libc/arch-x86/x86.mk +++ b/libc/arch-x86/x86.mk @@ -1,27 +1,40 @@ -# x86 specific configs +# 32-bit x86. -# These are shared by all the 32-bit targets, but not the 64-bit ones. -libc_common_src_files_x86 := \ +# +# Various kinds of LP32 cruft. +# + +libc_bionic_src_files_x86 += \ + bionic/mmap.cpp \ + +libc_common_src_files_x86 += \ bionic/legacy_32_bit_support.cpp \ bionic/ndk_cruft.cpp \ bionic/time64.c \ + +libc_netbsd_src_files_x86 += \ + upstream-netbsd/common/lib/libc/hash/sha1/sha1.c \ + +libc_openbsd_src_files_x86 += \ upstream-openbsd/lib/libc/stdio/putw.c \ -# Fortify implementations of libc functions. +# +# Default implementations of functions that are commonly optimized. +# + libc_common_src_files_x86 += \ bionic/__memcpy_chk.cpp \ bionic/__memset_chk.cpp \ bionic/__strcpy_chk.cpp \ bionic/__strcat_chk.cpp \ - upstream-freebsd/lib/libc/string/wmemmove.c \ +libc_freebsd_src_files_x86 += \ + upstream-freebsd/lib/libc/string/wmemmove.c \ -# These are shared by all the 32-bit targets, but not the 64-bit ones. -libc_bionic_src_files_x86 := \ - bionic/mmap.cpp +# +# Inherently architecture-specific functions. +# -########################################## -### CPU specific source files libc_bionic_src_files_x86 += \ arch-x86/bionic/__bionic_clone.S \ arch-x86/bionic/_exit_with_stack_teardown.S \ @@ -42,9 +55,6 @@ endif include $(arch_variant_mk) libc_common_additional_dependencies += $(arch_variant_mk) -libc_netbsd_src_files_x86 := \ - upstream-netbsd/common/lib/libc/hash/sha1/sha1.c \ - arch_variant_mk := libc_crt_target_cflags_x86 := \ |