2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2017-10-27 21:43:34 +08:00
|
|
|
# Defines a mapping from GCC_M_CPU to FPU
|
|
|
|
|
2019-02-08 21:58:26 +08:00
|
|
|
if(CONFIG_CPU_HAS_FPU_DOUBLE_PRECISION)
|
|
|
|
set(PRECISION_TOKEN)
|
|
|
|
else()
|
|
|
|
set(PRECISION_TOKEN sp-)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(FPU_FOR_cortex-m4 fpv4-${PRECISION_TOKEN}d16)
|
|
|
|
set(FPU_FOR_cortex-m7 fpv5-${PRECISION_TOKEN}d16)
|
|
|
|
set(FPU_FOR_cortex-m33 fpv5-${PRECISION_TOKEN}d16)
|