blob: f45eb658a310990445746e0f0c76d9cc3bd14aa7 [file] [log] [blame]
Ying Wangf25d6772014-01-23 15:17:50 -08001# x86 specific configs
2
3# These are shared by all the 32-bit targets, but not the 64-bit ones.
4libc_common_src_files_x86 := \
5 bionic/legacy_32_bit_support.cpp \
6 bionic/ndk_cruft.cpp \
Elliott Hughes8d77bce2014-04-22 13:55:58 -07007 bionic/time64.c \
Dan Albert8e613cf2014-06-11 14:17:35 -07008 upstream-openbsd/lib/libc/stdio/putw.c \
Ying Wangf25d6772014-01-23 15:17:50 -08009
10# Fortify implementations of libc functions.
11libc_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 Rosenkraenzer6f2bde32014-05-23 17:44:18 +020016 upstream-freebsd/lib/libc/string/wmemmove.c \
Ying Wangf25d6772014-01-23 15:17:50 -080017
18
19# These are shared by all the 32-bit targets, but not the 64-bit ones.
20libc_bionic_src_files_x86 := \
21 bionic/mmap.cpp
22
23##########################################
24### CPU specific source files
25libc_bionic_src_files_x86 += \
Elliott Hughes36d61882013-11-19 13:31:58 -080026 arch-x86/bionic/__bionic_clone.S \
Christopher Ferris04954a42013-02-26 01:30:00 -080027 arch-x86/bionic/_exit_with_stack_teardown.S \
Elliott Hughes36f451a2014-09-10 15:20:40 -070028 arch-x86/bionic/__restore_rt.S \
29 arch-x86/bionic/__restore.S \
Christopher Ferris04954a42013-02-26 01:30:00 -080030 arch-x86/bionic/_setjmp.S \
31 arch-x86/bionic/setjmp.S \
32 arch-x86/bionic/__set_tls.c \
33 arch-x86/bionic/sigsetjmp.S \
34 arch-x86/bionic/syscall.S \
Dan Albert6a918872014-08-05 20:53:31 +000035 arch-x86/bionic/vfork.S \
Liubov Dmitrieva0a490662012-01-17 12:55:46 +040036
Varvara Rainchik5a922842014-04-24 15:41:20 +040037## ARCH variant specific source files
38arch_variant_mk := $(LOCAL_PATH)/arch-x86/$(TARGET_ARCH_VARIANT)/$(TARGET_ARCH_VARIANT).mk
39ifeq ($(wildcard $(arch_variant_mk)),)
40 arch_variant_mk := $(LOCAL_PATH)/arch-x86/generic/generic.mk
Liubov Dmitrieva0a490662012-01-17 12:55:46 +040041endif
Varvara Rainchik5a922842014-04-24 15:41:20 +040042include $(arch_variant_mk)
43libc_common_additional_dependencies += $(arch_variant_mk)
Liubov Dmitrieva0a490662012-01-17 12:55:46 +040044
Dan Albertc82c0b72014-06-16 16:52:27 -070045libc_netbsd_src_files_x86 := \
46 upstream-netbsd/common/lib/libc/hash/sha1/sha1.c \
47
Varvara Rainchik5a922842014-04-24 15:41:20 +040048arch_variant_mk :=
Ying Wangf25d6772014-01-23 15:17:50 -080049
Ying Wangf25d6772014-01-23 15:17:50 -080050libc_crt_target_cflags_x86 := \
51 -m32 \
52 -I$(LOCAL_PATH)/arch-x86/include
53
54libc_crt_target_ldflags_x86 := -melf_i386
55
56libc_crt_target_crtbegin_file_x86 := \
57 $(LOCAL_PATH)/arch-common/bionic/crtbegin.c
58
59libc_crt_target_crtbegin_so_file_x86 := \
60 $(LOCAL_PATH)/arch-common/bionic/crtbegin_so.c
61
62libc_crt_target_so_cflags_x86 := \
63 -fPIC