Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 1 | # x86 specific configs |
| 2 | |
| 3 | # These are shared by all the 32-bit targets, but not the 64-bit ones. |
| 4 | libc_common_src_files_x86 := \ |
| 5 | bionic/legacy_32_bit_support.cpp \ |
| 6 | bionic/ndk_cruft.cpp \ |
Elliott Hughes | 8d77bce | 2014-04-22 13:55:58 -0700 | [diff] [blame] | 7 | bionic/time64.c \ |
Dan Albert | 8e613cf | 2014-06-11 14:17:35 -0700 | [diff] [blame] | 8 | upstream-openbsd/lib/libc/stdio/putw.c \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 9 | |
| 10 | # Fortify implementations of libc functions. |
| 11 | libc_common_src_files_x86 += \ |
| 12 | bionic/__memcpy_chk.cpp \ |
| 13 | bionic/__memset_chk.cpp \ |
| 14 | bionic/__strcpy_chk.cpp \ |
| 15 | bionic/__strcat_chk.cpp \ |
Bernhard Rosenkraenzer | 6f2bde3 | 2014-05-23 17:44:18 +0200 | [diff] [blame] | 16 | upstream-freebsd/lib/libc/string/wmemmove.c \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 17 | |
| 18 | |
| 19 | # These are shared by all the 32-bit targets, but not the 64-bit ones. |
| 20 | libc_bionic_src_files_x86 := \ |
| 21 | bionic/mmap.cpp |
| 22 | |
| 23 | ########################################## |
| 24 | ### CPU specific source files |
| 25 | libc_bionic_src_files_x86 += \ |
Elliott Hughes | 36d6188 | 2013-11-19 13:31:58 -0800 | [diff] [blame] | 26 | arch-x86/bionic/__bionic_clone.S \ |
Christopher Ferris | 04954a4 | 2013-02-26 01:30:00 -0800 | [diff] [blame] | 27 | arch-x86/bionic/_exit_with_stack_teardown.S \ |
Christopher Ferris | 04954a4 | 2013-02-26 01:30:00 -0800 | [diff] [blame] | 28 | arch-x86/bionic/__get_sp.S \ |
Christopher Ferris | 04954a4 | 2013-02-26 01:30:00 -0800 | [diff] [blame] | 29 | arch-x86/bionic/_setjmp.S \ |
| 30 | arch-x86/bionic/setjmp.S \ |
| 31 | arch-x86/bionic/__set_tls.c \ |
| 32 | arch-x86/bionic/sigsetjmp.S \ |
| 33 | arch-x86/bionic/syscall.S \ |
Dan Albert | 6a91887 | 2014-08-05 20:53:31 +0000 | [diff] [blame^] | 34 | arch-x86/bionic/vfork.S \ |
Liubov Dmitrieva | 0a49066 | 2012-01-17 12:55:46 +0400 | [diff] [blame] | 35 | |
Varvara Rainchik | 5a92284 | 2014-04-24 15:41:20 +0400 | [diff] [blame] | 36 | ## ARCH variant specific source files |
| 37 | arch_variant_mk := $(LOCAL_PATH)/arch-x86/$(TARGET_ARCH_VARIANT)/$(TARGET_ARCH_VARIANT).mk |
| 38 | ifeq ($(wildcard $(arch_variant_mk)),) |
| 39 | arch_variant_mk := $(LOCAL_PATH)/arch-x86/generic/generic.mk |
Liubov Dmitrieva | 0a49066 | 2012-01-17 12:55:46 +0400 | [diff] [blame] | 40 | endif |
Varvara Rainchik | 5a92284 | 2014-04-24 15:41:20 +0400 | [diff] [blame] | 41 | include $(arch_variant_mk) |
| 42 | libc_common_additional_dependencies += $(arch_variant_mk) |
Liubov Dmitrieva | 0a49066 | 2012-01-17 12:55:46 +0400 | [diff] [blame] | 43 | |
Dan Albert | c82c0b7 | 2014-06-16 16:52:27 -0700 | [diff] [blame] | 44 | libc_netbsd_src_files_x86 := \ |
| 45 | upstream-netbsd/common/lib/libc/hash/sha1/sha1.c \ |
| 46 | |
Varvara Rainchik | 5a92284 | 2014-04-24 15:41:20 +0400 | [diff] [blame] | 47 | arch_variant_mk := |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 48 | |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 49 | libc_crt_target_cflags_x86 := \ |
| 50 | -m32 \ |
| 51 | -I$(LOCAL_PATH)/arch-x86/include |
| 52 | |
| 53 | libc_crt_target_ldflags_x86 := -melf_i386 |
| 54 | |
| 55 | libc_crt_target_crtbegin_file_x86 := \ |
| 56 | $(LOCAL_PATH)/arch-common/bionic/crtbegin.c |
| 57 | |
| 58 | libc_crt_target_crtbegin_so_file_x86 := \ |
| 59 | $(LOCAL_PATH)/arch-common/bionic/crtbegin_so.c |
| 60 | |
| 61 | libc_crt_target_so_cflags_x86 := \ |
| 62 | -fPIC |