diff options
author | Steve Kondik <shade@chemlab.org> | 2013-08-09 21:56:10 -0700 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2015-10-29 23:40:30 -0700 |
commit | d103c301949c9ca75f5a2c90c253498ed797502d (patch) | |
tree | dc1274e6a090823ae218c40af2747fd92720712a /libc | |
parent | 2c9ee2ba2e83807be05a17b44b30433ac885eab9 (diff) | |
download | bionic-d103c301949c9ca75f5a2c90c253498ed797502d.zip bionic-d103c301949c9ca75f5a2c90c253498ed797502d.tar.gz bionic-d103c301949c9ca75f5a2c90c253498ed797502d.tar.bz2 |
libc: Add Scorpion-optimized variant
* Based on cortex-a8 variant with the following changes:
Use krait memset/strcmp/memmove
* Enable with TARGET_CPU_VARIANT := scorpion
Change-Id: I01d0f22efba5a418ddd20fca0d0c570d855e0f6f
Diffstat (limited to 'libc')
-rw-r--r-- | libc/arch-arm/arm.mk | 2 | ||||
-rw-r--r-- | libc/arch-arm/scorpion/scorpion.mk | 17 |
2 files changed, 18 insertions, 1 deletions
diff --git a/libc/arch-arm/arm.mk b/libc/arch-arm/arm.mk index d72a160..18a9833 100644 --- a/libc/arch-arm/arm.mk +++ b/libc/arch-arm/arm.mk @@ -52,7 +52,7 @@ ifeq ($(strip $(TARGET_$(my_2nd_arch_prefix)CPU_VARIANT)),) endif cpu_variant_mk := $(LOCAL_PATH)/arch-arm/$(TARGET_$(my_2nd_arch_prefix)CPU_VARIANT)/$(TARGET_$(my_2nd_arch_prefix)CPU_VARIANT).mk ifeq ($(wildcard $(cpu_variant_mk)),) -$(error "TARGET_$(my_2nd_arch_prefix)CPU_VARIANT not set or set to an unknown value. Possible values are cortex-a7, cortex-a8, cortex-a9, cortex-a15, krait, denver. Use generic for devices that do not have a CPU similar to any of the supported cpu variants.") +$(error "TARGET_$(my_2nd_arch_prefix)CPU_VARIANT not set or set to an unknown value. Possible values are cortex-a7, cortex-a8, cortex-a9, cortex-a15, krait, scorpion, denver. Use generic for devices that do not have a CPU similar to any of the supported cpu variants.") endif include $(cpu_variant_mk) libc_common_additional_dependencies += $(cpu_variant_mk) diff --git a/libc/arch-arm/scorpion/scorpion.mk b/libc/arch-arm/scorpion/scorpion.mk new file mode 100644 index 0000000..0a923ed --- /dev/null +++ b/libc/arch-arm/scorpion/scorpion.mk @@ -0,0 +1,17 @@ +# Use krait versions of memset/strcmp/memmove +libc_bionic_src_files_arm += \ + arch-arm/krait/bionic/memset.S \ + arch-arm/krait/bionic/strcmp.S \ + arch-arm/krait/bionic/memmove.S + +libc_bionic_src_files_arm += \ + arch-arm/cortex-a15/bionic/memcpy.S \ + arch-arm/cortex-a15/bionic/stpcpy.S \ + arch-arm/cortex-a15/bionic/strcat.S \ + arch-arm/cortex-a15/bionic/__strcat_chk.S \ + arch-arm/cortex-a15/bionic/strcpy.S \ + arch-arm/cortex-a15/bionic/__strcpy_chk.S \ + arch-arm/cortex-a15/bionic/strlen.S + +libc_bionic_src_files_arm += \ + arch-arm/generic/bionic/memcmp.S |