blob: 34da0ced11660a1f0caf789f2929d12ebfe19b15 [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 \
Ying Wangf25d6772014-01-23 15:17:50 -08008
9# Fortify implementations of libc functions.
10libc_common_src_files_x86 += \
11 bionic/__memcpy_chk.cpp \
12 bionic/__memset_chk.cpp \
13 bionic/__strcpy_chk.cpp \
14 bionic/__strcat_chk.cpp \
15
16
17# These are shared by all the 32-bit targets, but not the 64-bit ones.
18libc_bionic_src_files_x86 := \
19 bionic/mmap.cpp
20
21##########################################
22### CPU specific source files
23libc_bionic_src_files_x86 += \
Elliott Hughes36d61882013-11-19 13:31:58 -080024 arch-x86/bionic/__bionic_clone.S \
Christopher Ferris04954a42013-02-26 01:30:00 -080025 arch-x86/bionic/_exit_with_stack_teardown.S \
26 arch-x86/bionic/futex_x86.S \
27 arch-x86/bionic/__get_sp.S \
Christopher Ferris04954a42013-02-26 01:30:00 -080028 arch-x86/bionic/_setjmp.S \
29 arch-x86/bionic/setjmp.S \
30 arch-x86/bionic/__set_tls.c \
31 arch-x86/bionic/sigsetjmp.S \
32 arch-x86/bionic/syscall.S \
33 arch-x86/bionic/vfork.S \
Liubov Dmitrieva0a490662012-01-17 12:55:46 +040034
Varvara Rainchik5a922842014-04-24 15:41:20 +040035## ARCH variant specific source files
36arch_variant_mk := $(LOCAL_PATH)/arch-x86/$(TARGET_ARCH_VARIANT)/$(TARGET_ARCH_VARIANT).mk
37ifeq ($(wildcard $(arch_variant_mk)),)
38 arch_variant_mk := $(LOCAL_PATH)/arch-x86/generic/generic.mk
Liubov Dmitrieva0a490662012-01-17 12:55:46 +040039endif
Varvara Rainchik5a922842014-04-24 15:41:20 +040040include $(arch_variant_mk)
41libc_common_additional_dependencies += $(arch_variant_mk)
Liubov Dmitrieva0a490662012-01-17 12:55:46 +040042
Varvara Rainchik5a922842014-04-24 15:41:20 +040043arch_variant_mk :=
Ying Wangf25d6772014-01-23 15:17:50 -080044
Ying Wangf25d6772014-01-23 15:17:50 -080045libc_crt_target_cflags_x86 := \
46 -m32 \
47 -I$(LOCAL_PATH)/arch-x86/include
48
49libc_crt_target_ldflags_x86 := -melf_i386
50
51libc_crt_target_crtbegin_file_x86 := \
52 $(LOCAL_PATH)/arch-common/bionic/crtbegin.c
53
54libc_crt_target_crtbegin_so_file_x86 := \
55 $(LOCAL_PATH)/arch-common/bionic/crtbegin_so.c
56
57libc_crt_target_so_cflags_x86 := \
58 -fPIC