Feder Liang | d4dbaa9 | 2021-09-07 15:34:46 +0800 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
Feder Liang | 5519438 | 2021-11-22 16:45:33 +0800 | [diff] [blame] | 2 | # Copyright (c) 2022, Arm Limited. All rights reserved. |
Feder Liang | d4dbaa9 | 2021-09-07 15:34:46 +0800 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | |
| 8 | ################################### FP ######################################## |
| 9 | |
| 10 | if (NOT DEFINED CONFIG_TFM_FP_ARCH) |
| 11 | set(CONFIG_TFM_FP_ARCH "") |
| 12 | return() |
| 13 | endif() |
| 14 | |
Feder Liang | 5519438 | 2021-11-22 16:45:33 +0800 | [diff] [blame] | 15 | if (CONFIG_TFM_FP STREQUAL "hard") |
| 16 | set(CONFIG_TFM_LAZY_STACKING ON CACHE BOOL "Enable lazy stacking") |
Lingkai Dong | 181c00c | 2022-04-25 11:36:34 +0100 | [diff] [blame] | 17 | set(CONFIG_TFM_ENABLE_FPU ON CACHE BOOL "Permit TrustZone NSPE access to FPU") |
Feder Liang | d4dbaa9 | 2021-09-07 15:34:46 +0800 | [diff] [blame] | 18 | endif() |