Feder Liang | 5519438 | 2021-11-22 16:45:33 +0800 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
Dávid Házi | cc45a7b | 2024-04-15 22:30:28 +0200 | [diff] [blame] | 2 | # Copyright (c) 2022-2024, Arm Limited. All rights reserved. |
Feder Liang | 5519438 | 2021-11-22 16:45:33 +0800 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | |
David Hu | 9522351 | 2023-12-04 23:07:46 +0800 | [diff] [blame] | 8 | cmake_minimum_required(VERSION 3.21) |
Jianliang Shen | bd624ed | 2023-10-24 15:42:59 +0800 | [diff] [blame] | 9 | |
Gabor Toth | 4d41411 | 2021-11-10 17:44:50 +0100 | [diff] [blame] | 10 | ########################## FPU and MVE ######################################### |
| 11 | |
Gergely Kovacs | 1024dac | 2024-12-05 13:51:23 +0000 | [diff] [blame] | 12 | tfm_invalid_config(CMAKE_C_COMPILER_ID STREQUAL "IAR" AND (CONFIG_TFM_ENABLE_MVE OR CONFIG_TFM_ENABLE_MVE_FP)) |
Gabor Toth | 4d41411 | 2021-11-10 17:44:50 +0100 | [diff] [blame] | 13 | tfm_invalid_config((NOT CONFIG_TFM_FP_ARCH) AND (CONFIG_TFM_ENABLE_FP OR CONFIG_TFM_ENABLE_MVE_FP)) |
chesun01 | a94a9c7 | 2023-02-14 16:19:51 +0800 | [diff] [blame] | 14 | tfm_invalid_config((CMAKE_C_COMPILER_ID STREQUAL "ARMClang") AND (NOT CONFIG_TFM_FP_ARCH_ASM) AND CONFIG_TFM_ENABLE_FP) |
Gabor Toth | 4d41411 | 2021-11-10 17:44:50 +0100 | [diff] [blame] | 15 | tfm_invalid_config((NOT CONFIG_TFM_ENABLE_FP AND NOT CONFIG_TFM_ENABLE_MVE AND NOT CONFIG_TFM_ENABLE_MVE_FP) AND CONFIG_TFM_LAZY_STACKING) |
| 16 | tfm_invalid_config((CONFIG_TFM_ENABLE_FP OR CONFIG_TFM_ENABLE_MVE OR CONFIG_TFM_ENABLE_MVE_FP) AND NOT CONFIG_TFM_ENABLE_CP10CP11) |
Roman Mazurak | 0a79e67 | 2024-08-14 16:48:13 +0300 | [diff] [blame] | 17 | tfm_invalid_config(CONFIG_TFM_ENABLE_CP10CP11 AND CONFIG_TFM_DISABLE_CP10CP11) |