libc/machine/: Move all ARM subdirectories under a common arm/ sub-directory
This commit is contained in:
parent
7578382890
commit
49c39f0999
@ -113,18 +113,6 @@ config LIBM_ARCH_TRUNCF
|
||||
|
||||
# One or more the of above may be selected by architecture specific logic
|
||||
|
||||
if ARCH_CORTEXA5 || ARCH_CORTEXA8 || ARCH_CORTEXA9
|
||||
source libc/machine/armv7-a/Kconfig
|
||||
endif
|
||||
|
||||
if ARCH_CORTEXR4 || ARCH_CORTEXR4F || ARCH_CORTEXR5 || ARCH_CORTEXR5F || ARCH_CORTEXR7 || ARCH_CORTEXR7F
|
||||
source libc/machine/armv7-r/Kconfig
|
||||
endif
|
||||
|
||||
if ARCH_CORTEXM3 || ARCH_CORTEXM4 || ARCH_CORTEXM7
|
||||
source libc/machine/armv7-m/Kconfig
|
||||
endif
|
||||
|
||||
if ARCH_CORTEXM33
|
||||
source libc/machine/armv8/Kconfig
|
||||
if ARCH_ARM
|
||||
source libc/machine/arm/Kconfig
|
||||
endif
|
||||
|
@ -33,30 +33,6 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
ifeq ($(CONFIG_ARCH_CORTEXA5),y) # Cortex-A5 is ARMv7-A
|
||||
include ${TOPDIR}/libc/machine/armv7-a/Make.defs
|
||||
else ifeq ($(CONFIG_ARCH_CORTEXA8),y) # Cortex-A8 is ARMv7-A
|
||||
include ${TOPDIR}/libc/machine/armv7-a/Make.defs
|
||||
else ifeq ($(CONFIG_ARCH_CORTEXA9),y) # Cortex-A9 is ARMv7-A
|
||||
include ${TOPDIR}/libc/machine/armv7-a/Make.defs
|
||||
else ifeq ($(CONFIG_ARCH_CORTEXR4),y) # Cortex-R4 is ARMv7-R
|
||||
include ${TOPDIR}/libc/machine/armv7-r/Make.defs
|
||||
else ifeq ($(CONFIG_ARCH_CORTEXR4F),y) # Cortex-R4F is ARMv7-R
|
||||
include ${TOPDIR}/libc/machine/armv7-r/Make.defs
|
||||
else ifeq ($(CONFIG_ARCH_CORTEXR5),y) # Cortex-R5 is ARMv7-R
|
||||
include ${TOPDIR}/libc/machine/armv7-r/Make.defs
|
||||
else ifeq ($(CONFIG_ARCH_CORTEXR5F),y) # Cortex-R5F is ARMv7-R
|
||||
include ${TOPDIR}/libc/machine/armv7-r/Make.defs
|
||||
else ifeq ($(CONFIG_ARCH_CORTEXR7),y) # Cortex-R7 is ARMv7-R
|
||||
include ${TOPDIR}/libc/machine/armv7-r/Make.defs
|
||||
else ifeq ($(CONFIG_ARCH_CORTEXR7F),y) # Cortex-R7F is ARMv7-R
|
||||
include ${TOPDIR}/libc/machine/armv7-r/Make.defs
|
||||
else ifeq ($(CONFIG_ARCH_CORTEXM3),y) # Cortex-M3 is ARMv7-M
|
||||
include ${TOPDIR}/libc/machine/armv7-m/Make.defs
|
||||
else ifeq ($(CONFIG_ARCH_CORTEXM33),y) # Cortex-M33 is ARMv8-M
|
||||
include ${TOPDIR}/libc/machine/armv8/Make.defs
|
||||
else ifeq ($(CONFIG_ARCH_CORTEXM4),y) # Cortex-M4 is ARMv7E-M
|
||||
include ${TOPDIR}/libc/machine/armv7-m/Make.defs
|
||||
else ifeq ($(CONFIG_ARCH_CORTEXM7),y) # Cortex-M4 is ARMv7E-M
|
||||
include ${TOPDIR}/libc/machine/armv7-m/Make.defs
|
||||
ifeq ($(CONFIG_ARCH_ARM),y)
|
||||
include ${TOPDIR}/libc/machine/arm/Make.defs
|
||||
endif
|
||||
|
20
libc/machine/arm/Kconfig
Normal file
20
libc/machine/arm/Kconfig
Normal file
@ -0,0 +1,20 @@
|
||||
#
|
||||
# For a description of the syntax of this configuration file,
|
||||
# see the file kconfig-language.txt in the NuttX tools repository.
|
||||
#
|
||||
|
||||
if ARCH_CORTEXA5 || ARCH_CORTEXA8 || ARCH_CORTEXA9
|
||||
source libc/machine/arm/armv7-a/Kconfig
|
||||
endif
|
||||
|
||||
if ARCH_CORTEXR4 || ARCH_CORTEXR4F || ARCH_CORTEXR5 || ARCH_CORTEXR5F || ARCH_CORTEXR7 || ARCH_CORTEXR7F
|
||||
source libc/machine/arm/armv7-r/Kconfig
|
||||
endif
|
||||
|
||||
if ARCH_CORTEXM3 || ARCH_CORTEXM4 || ARCH_CORTEXM7
|
||||
source libc/machine/arm/armv7-m/Kconfig
|
||||
endif
|
||||
|
||||
if ARCH_CORTEXM33
|
||||
source libc/machine/arm/armv8/Kconfig
|
||||
endif
|
62
libc/machine/arm/Make.defs
Normal file
62
libc/machine/arm/Make.defs
Normal file
@ -0,0 +1,62 @@
|
||||
############################################################################
|
||||
# libc/machine/arm/Make.defs
|
||||
#
|
||||
# Copyright (C) 2017 Gregory Nutt. All rights reserved.
|
||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
#
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in
|
||||
# the documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
||||
# used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
############################################################################
|
||||
|
||||
ifeq ($(CONFIG_ARCH_CORTEXA5),y) # Cortex-A5 is ARMv7-A
|
||||
include ${TOPDIR}/libc/machine/arm/armv7-a/Make.defs
|
||||
else ifeq ($(CONFIG_ARCH_CORTEXA8),y) # Cortex-A8 is ARMv7-A
|
||||
include ${TOPDIR}/libc/machine/arm/armv7-a/Make.defs
|
||||
else ifeq ($(CONFIG_ARCH_CORTEXA9),y) # Cortex-A9 is ARMv7-A
|
||||
include ${TOPDIR}/libc/machine/arm/armv7-a/Make.defs
|
||||
else ifeq ($(CONFIG_ARCH_CORTEXR4),y) # Cortex-R4 is ARMv7-R
|
||||
include ${TOPDIR}/libc/machine/arm/armv7-r/Make.defs
|
||||
else ifeq ($(CONFIG_ARCH_CORTEXR4F),y) # Cortex-R4F is ARMv7-R
|
||||
include ${TOPDIR}/libc/machine/arm/armv7-r/Make.defs
|
||||
else ifeq ($(CONFIG_ARCH_CORTEXR5),y) # Cortex-R5 is ARMv7-R
|
||||
include ${TOPDIR}/libc/machine/arm/armv7-r/Make.defs
|
||||
else ifeq ($(CONFIG_ARCH_CORTEXR5F),y) # Cortex-R5F is ARMv7-R
|
||||
include ${TOPDIR}/libc/machine/arm/armv7-r/Make.defs
|
||||
else ifeq ($(CONFIG_ARCH_CORTEXR7),y) # Cortex-R7 is ARMv7-R
|
||||
include ${TOPDIR}/libc/machine/arm/armv7-r/Make.defs
|
||||
else ifeq ($(CONFIG_ARCH_CORTEXR7F),y) # Cortex-R7F is ARMv7-R
|
||||
include ${TOPDIR}/libc/machine/arm/armv7-r/Make.defs
|
||||
else ifeq ($(CONFIG_ARCH_CORTEXM3),y) # Cortex-M3 is ARMv7-M
|
||||
include ${TOPDIR}/libc/machine/arm/armv7-m/Make.defs
|
||||
else ifeq ($(CONFIG_ARCH_CORTEXM33),y) # Cortex-M33 is ARMv8-M
|
||||
include ${TOPDIR}/libc/machine/arm/armv8/Make.defs
|
||||
else ifeq ($(CONFIG_ARCH_CORTEXM4),y) # Cortex-M4 is ARMv7E-M
|
||||
include ${TOPDIR}/libc/machine/arm/armv7-m/Make.defs
|
||||
else ifeq ($(CONFIG_ARCH_CORTEXM7),y) # Cortex-M4 is ARMv7E-M
|
||||
include ${TOPDIR}/libc/machine/arm/armv7-m/Make.defs
|
||||
endif
|
@ -1,5 +1,5 @@
|
||||
############################################################################
|
||||
# libc/machine/armv7-a/Make.defs
|
||||
# libc/machine/arm/armv7-a/Make.defs
|
||||
#
|
||||
# Copyright (C) 2017 Gregory Nutt. All rights reserved.
|
||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -37,7 +37,7 @@ ifeq ($(CONFIG_ARMV7A_MEMCPY),y)
|
||||
|
||||
ASRCS += arch_memcpy.S
|
||||
|
||||
DEPPATH += --dep-path machine/armv7-a/gnu
|
||||
VPATH += :machine/armv7-a/gnu
|
||||
DEPPATH += --dep-path machine/arm/armv7-a/gnu
|
||||
VPATH += :machine/arm/armv7-a/gnu
|
||||
|
||||
endif
|
@ -1,5 +1,5 @@
|
||||
/************************************************************************************
|
||||
* nuttx/arch/arm/src/armv7-a/arm_memcpy.S
|
||||
* libc/machine/arm/armv7-a/arm_memcpy.S
|
||||
* ARMv7-A optimized memcpy.
|
||||
*
|
||||
* Adapted for use with ARMv7-A and NuttX by:
|
@ -1,5 +1,5 @@
|
||||
############################################################################
|
||||
# libc/machine/armv7-m/Make.defs
|
||||
# libc/machine/arm/armv7-m/Make.defs
|
||||
#
|
||||
# Copyright (C) 2017 Gregory Nutt. All rights reserved.
|
||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -37,7 +37,7 @@ ifeq ($(CONFIG_ARMV7M_MEMCPY),y)
|
||||
|
||||
ASRCS += arch_memcpy.S
|
||||
|
||||
DEPPATH += --dep-path machine/armv7-m/gnu
|
||||
VPATH += :machine/armv7-m/gnu
|
||||
DEPPATH += --dep-path machine/arm/armv7-m/gnu
|
||||
VPATH += :machine/arm/armv7-m/gnu
|
||||
|
||||
endif
|
@ -1,5 +1,5 @@
|
||||
/************************************************************************************
|
||||
* nuttx/arch/arm/src/armv7-m/gnu/up_memcpy.S
|
||||
* libc/machine/arm/armv7-m/gnu/up_memcpy.S
|
||||
*
|
||||
* armv7m-optimized memcpy, contributed by Mike Smith. Apparently in the public
|
||||
* domain and is re-released here under the modified BSD license:
|
@ -1,5 +1,5 @@
|
||||
############################################################################
|
||||
# libc/machine/armv7-r/Make.defs
|
||||
# libc/machine/arm/armv7-r/Make.defs
|
||||
#
|
||||
# Copyright (C) 2017 Gregory Nutt. All rights reserved.
|
||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -37,7 +37,7 @@ ifeq ($(CONFIG_ARMV7R_MEMCPY),y)
|
||||
|
||||
ASRCS += arch_memcpy.S
|
||||
|
||||
DEPPATH += --dep-path machine/armv7-r/gnu
|
||||
VPATH += :machine/armv7-r/gnu
|
||||
DEPPATH += --dep-path machine/arm/armv7-r/gnu
|
||||
VPATH += :machine/arm/armv7-r/gnu
|
||||
|
||||
endif
|
@ -1,5 +1,5 @@
|
||||
/************************************************************************************
|
||||
* nuttx/arch/arm/src/armv7-r/arm_memcpy.S
|
||||
* libc/marchine/arm/armv7-r/arm_memcpy.S
|
||||
* ARMv7-R optimized memcpy.
|
||||
*
|
||||
* Adapted for use with ARMv7-R and NuttX by:
|
@ -1,5 +1,5 @@
|
||||
############################################################################
|
||||
# libc/machine/armv8/Make.defs
|
||||
# libc/machine/arm/armv8/Make.defs
|
||||
#
|
||||
# Copyright (C) 2017 Gregory Nutt. All rights reserved.
|
||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@ -83,7 +83,7 @@ ifeq ($(LIBM_ARCH_TRUNC),y)
|
||||
CSRCS += arch_trunc.c
|
||||
endif
|
||||
|
||||
DEPPATH += --dep-path machine/armv8
|
||||
VPATH += :machine/armv8
|
||||
DEPPATH += --dep-path machine/arm/armv8
|
||||
VPATH += :machine/arm/armv8
|
||||
|
||||
endif # CONFIG_ARMV8_LIBM
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* libc/machine/armv8/arch_ceil.c
|
||||
* libc/machine/arm/armv8/arch_ceil.c
|
||||
*
|
||||
* Copyright (C) 2017 Gregory Nutt. All rights reserved.
|
||||
*
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* libc/machine/armv8/arch_ceilf.c
|
||||
* libc/machine/arm/armv8/arch_ceilf.c
|
||||
*
|
||||
* Copyright (C) 2017 Gregory Nutt. All rights reserved.
|
||||
*
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* libc/machine/armv8/arch_floor.c
|
||||
* libc/machine/arm/armv8/arch_floor.c
|
||||
*
|
||||
* Copyright (C) 2017 Gregory Nutt. All rights reserved.
|
||||
*
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* libc/machine/armv8/arch_floorf.c
|
||||
* libc/machine/arm/armv8/arch_floorf.c
|
||||
*
|
||||
* Copyright (C) 2017 Gregory Nutt. All rights reserved.
|
||||
*
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* libc/machine/armv8/arch_nearbyint.c
|
||||
* libc/machine/arm/armv8/arch_nearbyint.c
|
||||
*
|
||||
* Copyright (C) 2017 Gregory Nutt. All rights reserved.
|
||||
*
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* libc/machine/armv8/arch_nearbyintf.c
|
||||
* libc/machine/arm/armv8/arch_nearbyintf.c
|
||||
*
|
||||
* Copyright (C) 2017 Gregory Nutt. All rights reserved.
|
||||
*
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* libc/machine/armv8/arch_rint.c
|
||||
* libc/machine/arm/armv8/arch_rint.c
|
||||
*
|
||||
* Copyright (C) 2017 Gregory Nutt. All rights reserved.
|
||||
*
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* libc/machine/armv8/arch_rintf.c
|
||||
* libc/machine/arm/armv8/arch_rintf.c
|
||||
*
|
||||
* Copyright (C) 2017 Gregory Nutt. All rights reserved.
|
||||
*
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* libc/machine/armv8/arch_round.c
|
||||
* libc/machine/arm/armv8/arch_round.c
|
||||
*
|
||||
* Copyright (C) 2017 Gregory Nutt. All rights reserved.
|
||||
*
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* libc/machine/armv8/arch_roundf.c
|
||||
* libc/machine/arm/armv8/arch_roundf.c
|
||||
*
|
||||
* Copyright (C) 2017 Gregory Nutt. All rights reserved.
|
||||
*
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* libc/machine/armv8/arch_trunc.c
|
||||
* libc/machine/arm/armv8/arch_trunc.c
|
||||
*
|
||||
* Copyright (C) 2017 Gregory Nutt. All rights reserved.
|
||||
*
|
@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* libc/machine/armv8/arch_truncf.c
|
||||
* libc/machine/arm/armv8/arch_truncf.c
|
||||
*
|
||||
* Copyright (C) 2017 Gregory Nutt. All rights reserved.
|
||||
*
|
Loading…
Reference in New Issue
Block a user