Jianliang Shen | 710cb95 | 2022-10-08 11:32:35 +0800 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
Jianliang Shen | f57c6a7 | 2023-02-20 14:04:38 +0800 | [diff] [blame] | 2 | # Copyright (c) 2022-2023, Arm Limited. All rights reserved. |
Jianliang Shen | 710cb95 | 2022-10-08 11:32:35 +0800 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | |
Kevin Peng | 5cba61c | 2023-01-06 14:23:15 +0800 | [diff] [blame] | 8 | mainmenu "TF-M Configuration" |
| 9 | |
Jianliang Shen | 710cb95 | 2022-10-08 11:32:35 +0800 | [diff] [blame] | 10 | # Load platform Kconfig file if exists |
| 11 | osource "$(PLATFORM_PATH)/Kconfig" |
Jianliang Shen | 5ec1717 | 2023-02-20 15:10:44 +0800 | [diff] [blame] | 12 | osource "$(TFM_SOURCE_DIR)/config/build_type/Kconfig.$(CMAKE_BUILD_TYPE)" |
Jianliang Shen | 710cb95 | 2022-10-08 11:32:35 +0800 | [diff] [blame] | 13 | |
Jianliang Shen | f6d1fab | 2023-02-20 14:57:53 +0800 | [diff] [blame] | 14 | ################################# System options ############################### |
Jianliang Shen | f57c6a7 | 2023-02-20 14:04:38 +0800 | [diff] [blame] | 15 | |
| 16 | rsource "Kconfig.bl" |
Kevin Peng | 5cba61c | 2023-01-06 14:23:15 +0800 | [diff] [blame] | 17 | rsource "secure_fw/spm/Kconfig" |
Jianliang Shen | f6d1fab | 2023-02-20 14:57:53 +0800 | [diff] [blame] | 18 | rsource "secure_fw/partitions/Kconfig" # These are partition switches. |
Jianliang Shen | 710cb95 | 2022-10-08 11:32:35 +0800 | [diff] [blame] | 19 | rsource "platform/Kconfig" |
Jianliang Shen | f6d1fab | 2023-02-20 14:57:53 +0800 | [diff] [blame] | 20 | rsource "Kconfig.misc" |
Jianliang Shen | 710cb95 | 2022-10-08 11:32:35 +0800 | [diff] [blame] | 21 | |
Jianliang Shen | f6d1fab | 2023-02-20 14:57:53 +0800 | [diff] [blame] | 22 | ################################# Test options ################################# |
Jianliang Shen | 710cb95 | 2022-10-08 11:32:35 +0800 | [diff] [blame] | 23 | |
| 24 | menu "TF-M tests" |
| 25 | rsource "lib/ext/tf-m-tests/Kconfig" |
| 26 | rsource "lib/ext/psa_arch_tests/Kconfig" |
| 27 | endmenu |
| 28 | |
| 29 | ################################# Component #################################### |
| 30 | |
Jianliang Shen | 2b24f25 | 2022-11-25 11:08:54 +0800 | [diff] [blame] | 31 | # These configs in this menu are local to a component or externally referenced |
| 32 | # when components are coupled. Usually, such options are located in C header |
| 33 | # file. The Header File Config System has more details about it. |
Jianliang Shen | 710cb95 | 2022-10-08 11:32:35 +0800 | [diff] [blame] | 34 | |
| 35 | # Other configs above which are not in component menu are TF-M build options to |
| 36 | # select which file or component to include into compilation. These are options, |
| 37 | # usually used by a build system to enable/disable modules, specify location of |
| 38 | # external dependency or other selection, global to a project. These options |
| 39 | # shall be considered while adopting TF-M to other build systems. |
| 40 | |
| 41 | menu "TF-M component configs" |
Jianliang Shen | 5f00ed3 | 2023-02-20 14:55:41 +0800 | [diff] [blame] | 42 | |
| 43 | # Load configurations set by PSA arch test |
| 44 | if TEST_PSA_API != "" |
| 45 | rsource "$(TFM_SOURCE_DIR)/config/tests/Kconfig.test_psa_api" |
| 46 | endif |
| 47 | |
Kevin Peng | 5cba61c | 2023-01-06 14:23:15 +0800 | [diff] [blame] | 48 | rsource "secure_fw/spm/Kconfig.comp" |
Jianliang Shen | 710cb95 | 2022-10-08 11:32:35 +0800 | [diff] [blame] | 49 | |
| 50 | menu "Secure Partitions component configs" |
Kevin Peng | 5cba61c | 2023-01-06 14:23:15 +0800 | [diff] [blame] | 51 | rsource "secure_fw/partitions/*/Kconfig.comp" |
Jianliang Shen | 710cb95 | 2022-10-08 11:32:35 +0800 | [diff] [blame] | 52 | endmenu |
| 53 | endmenu |