xref: /aosp_15_r20/external/trusty/lk/lib/libc/string/arch/arm/rules.mk
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1LOCAL_DIR := $(GET_LOCAL_DIR)
2
3ifeq ($(SUBARCH),arm)
4
5ASM_STRING_OPS := bcopy bzero memcpy memmove memset
6
7MODULE_SRCS += \
8	$(LOCAL_DIR)/arm/memcpy.S \
9	$(LOCAL_DIR)/arm/memset.S
10
11# filter out the C implementation
12C_STRING_OPS := $(filter-out $(ASM_STRING_OPS),$(C_STRING_OPS))
13endif
14
15ifeq ($(SUBARCH),arm-m)
16ifeq ($(ARM_CPU),cortex-m0)
17
18ASM_STRING_OPS :=
19
20MODULE_SRCS += \
21
22else ifeq ($(ARM_CPU),cortex-m0plus)
23
24ASM_STRING_OPS :=
25
26MODULE_SRCS += \
27
28else
29
30ASM_STRING_OPS := bcopy bzero memcpy memset
31
32MODULE_SRCS += \
33	$(LOCAL_DIR)/arm-m/memcpy.S \
34	$(LOCAL_DIR)/arm-m/memset.S
35endif
36
37# filter out the C implementation
38C_STRING_OPS := $(filter-out $(ASM_STRING_OPS),$(C_STRING_OPS))
39endif
40
41
42

served by {OpenGrok

Last Index Update: Mon Apr 28 06:57:04 CEST 2025