2017-01-20 17:53:46 +01:00
|
|
|
############################################################################
|
2018-05-29 21:21:26 +02:00
|
|
|
# libs/libc/machine/arm/Make.defs
|
2017-01-20 17:53:46 +01:00
|
|
|
#
|
2021-03-02 15:54:21 +01:00
|
|
|
# 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
|
2017-01-20 17:53:46 +01:00
|
|
|
#
|
2021-03-02 15:54:21 +01:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2017-01-20 17:53:46 +01:00
|
|
|
#
|
2021-03-02 15:54:21 +01:00
|
|
|
# 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.
|
2017-01-20 17:53:46 +01:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
2017-01-21 22:24:25 +01:00
|
|
|
ifeq ($(CONFIG_ARCH_ARM7TDMI),y) # ARM7TDMI is ARMv4T
|
2020-05-19 16:25:18 +02:00
|
|
|
include $(TOPDIR)/libs/libc/machine/arm/arm/Make.defs
|
2017-01-21 22:24:25 +01:00
|
|
|
else ifeq ($(CONFIG_ARCH_ARM920T),y) # ARM920T is ARMv4T
|
2020-05-19 16:25:18 +02:00
|
|
|
include $(TOPDIR)/libs/libc/machine/arm/arm/Make.defs
|
2020-11-26 12:59:11 +01:00
|
|
|
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
|
2020-05-19 16:25:18 +02:00
|
|
|
include $(TOPDIR)/libs/libc/machine/arm/arm/Make.defs
|
2019-03-19 18:51:29 +01:00
|
|
|
else ifeq ($(CONFIG_ARCH_ARMV7A),y) # All ARMv7-A
|
2020-05-19 16:25:18 +02:00
|
|
|
include $(TOPDIR)/libs/libc/machine/arm/armv7-a/Make.defs
|
2019-03-19 18:51:29 +01:00
|
|
|
else ifeq ($(CONFIG_ARCH_ARMV7R),y) # All ARMv7-R
|
2020-05-19 16:25:18 +02:00
|
|
|
include $(TOPDIR)/libs/libc/machine/arm/armv7-r/Make.defs
|
2020-11-26 12:59:11 +01:00
|
|
|
else ifeq ($(CONFIG_ARCH_ARMV6M),y) # All ARMv6-M
|
2020-05-19 16:25:18 +02:00
|
|
|
include $(TOPDIR)/libs/libc/machine/arm/armv6-m/Make.defs
|
2019-03-19 18:51:29 +01:00
|
|
|
else ifeq ($(CONFIG_ARCH_ARMV7M),y) # All ARMv7-M
|
2020-05-19 16:25:18 +02:00
|
|
|
include $(TOPDIR)/libs/libc/machine/arm/armv7-m/Make.defs
|
2020-11-26 12:59:11 +01:00
|
|
|
else ifeq ($(CONFIG_ARCH_ARMV8M),y) # All ARMv8-M
|
2020-11-26 13:06:21 +01:00
|
|
|
include $(TOPDIR)/libs/libc/machine/arm/armv8-m/Make.defs
|
2017-01-20 17:53:46 +01:00
|
|
|
endif
|
2020-06-28 12:18:34 +02:00
|
|
|
|
2022-05-11 16:21:25 +02:00
|
|
|
ifneq ($(CONFIG_LIBSUPCXX),y)
|
|
|
|
CSRCS += aeabi_atexit.c
|
|
|
|
endif
|
|
|
|
|
2020-06-28 12:18:34 +02:00
|
|
|
ifeq ($(CONFIG_CXX_EXCEPTION),y)
|
|
|
|
CSRCS += gnu_unwind_find_exidx.c
|
|
|
|
endif
|
|
|
|
|
2022-02-25 10:12:21 +01:00
|
|
|
ifeq ($(CONFIG_ARCH_SETJMP_H),y)
|
2022-09-05 09:41:44 +02:00
|
|
|
ifeq ($(CONFIG_ARCH_CHIP_TLSR82),y)
|
|
|
|
ASRCS += tc32_setjmp.S
|
|
|
|
else
|
2022-03-09 09:34:04 +01:00
|
|
|
ASRCS += arch_setjmp.S
|
2022-02-25 10:12:21 +01:00
|
|
|
endif
|
2022-09-05 09:41:44 +02:00
|
|
|
endif
|
2022-02-25 10:12:21 +01:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_ARCH_TOOLCHAIN_GNU),y)
|
|
|
|
DEPPATH += --dep-path machine/arm/gnu
|
|
|
|
VPATH += :machine/arm/gnu
|
|
|
|
endif
|
|
|
|
|
2020-06-28 12:18:34 +02:00
|
|
|
DEPPATH += --dep-path machine/arm
|
|
|
|
VPATH += :machine/arm
|