mirror of
https://github.com/apache/nuttx.git
synced 2026-08-02 20:59:02 +00:00
Add back these functions since clang will use them. This reverts "libs/libc/arm: use builtin routines instead of aliases of __aeabi_mem*" and adds source files to cmake. Signed-off-by: chenxiaoyi <chenxiaoyi@xiaomi.com>
83 lines
3.1 KiB
Text
83 lines
3.1 KiB
Text
############################################################################
|
|
# libs/libc/machine/arm/Make.defs
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
# this work for additional information regarding copyright ownership. The
|
|
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
# "License"); you may not use this file except in compliance with the
|
|
# License. You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
#
|
|
############################################################################
|
|
|
|
ifeq ($(CONFIG_ARCH_ARM7TDMI),y) # ARM7TDMI is ARMv4T
|
|
include $(TOPDIR)/libs/libc/machine/arm/arm/Make.defs
|
|
else ifeq ($(CONFIG_ARCH_ARM920T),y) # ARM920T is ARMv4T
|
|
include $(TOPDIR)/libs/libc/machine/arm/arm/Make.defs
|
|
else ifeq ($(CONFIG_ARCH_ARM926EJS),y) # ARM926EJS is ARMv5TEJ
|
|
include $(TOPDIR)/libs/libc/machine/arm/arm/Make.defs
|
|
else ifeq ($(CONFIG_ARCH_ARM1136J),y) # ARM1136J is ARMv6
|
|
include $(TOPDIR)/libs/libc/machine/arm/arm/Make.defs
|
|
else ifeq ($(CONFIG_ARCH_ARM1156T2),y) # ARM1156T2 is ARMv6T2
|
|
include $(TOPDIR)/libs/libc/machine/arm/arm/Make.defs
|
|
else ifeq ($(CONFIG_ARCH_ARM1176JZ),y) # ARM1176JZ is ARMv6Z
|
|
include $(TOPDIR)/libs/libc/machine/arm/arm/Make.defs
|
|
else ifeq ($(CONFIG_ARCH_ARMV7A),y) # All ARMv7-A
|
|
include $(TOPDIR)/libs/libc/machine/arm/armv7-a/Make.defs
|
|
else ifeq ($(CONFIG_ARCH_ARMV7R),y) # All ARMv7-R
|
|
include $(TOPDIR)/libs/libc/machine/arm/armv7-r/Make.defs
|
|
else ifeq ($(CONFIG_ARCH_ARMV6M),y) # All ARMv6-M
|
|
include $(TOPDIR)/libs/libc/machine/arm/armv6-m/Make.defs
|
|
else ifeq ($(CONFIG_ARCH_ARMV7M),y) # All ARMv7-M
|
|
include $(TOPDIR)/libs/libc/machine/arm/armv7-m/Make.defs
|
|
else ifeq ($(CONFIG_ARCH_ARMV8M),y) # All ARMv8-M
|
|
include $(TOPDIR)/libs/libc/machine/arm/armv8-m/Make.defs
|
|
else ifeq ($(CONFIG_ARCH_ARMV8R),y) # All ARMv8-R
|
|
include $(TOPDIR)/libs/libc/machine/arm/armv8-r/Make.defs
|
|
endif
|
|
|
|
CSRCS += aeabi_memclr.c aeabi_memclr4.c aeabi_memclr8.c
|
|
CSRCS += aeabi_memcpy.c aeabi_memcpy4.c aeabi_memcpy8.c
|
|
CSRCS += aeabi_memmove.c aeabi_memmove4.c aeabi_memmove8.c
|
|
CSRCS += aeabi_memset.c aeabi_memset4.c aeabi_memset8.c
|
|
|
|
ifneq ($(CONFIG_LIBSUPCXX_TOOLCHAIN),y)
|
|
CSRCS += arch_atexit.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_ARCH_TOOLCHAIN_GHS),y)
|
|
CMN_CSRCS += arch_dummy.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_CXX_EXCEPTION),y)
|
|
CSRCS += arch_unwind_find_exidx.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_ARCH_SETJMP_H),y)
|
|
ifeq ($(CONFIG_ARCH_CHIP_TLSR82),y)
|
|
ASRCS += tc32_setjmp.S
|
|
else
|
|
ASRCS += arch_setjmp.S
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(CONFIG_PROFILE_MINI),y)
|
|
ASRCS += arch_mcount.S
|
|
endif
|
|
|
|
ifeq ($(CONFIG_LIBC_ARCH_CRC32),y)
|
|
CSRCS += arch_crc32.c
|
|
endif
|
|
|
|
DEPPATH += --dep-path machine/arm
|
|
VPATH += :machine/arm
|