blob: 3f7049b31db40b8bf501ee5eb6b8e9ac2ac63d33 [file] [log] [blame]
Jianliang Shen710cb952022-10-08 11:32:35 +08001#-------------------------------------------------------------------------------
Jianliang Shenf57c6a72023-02-20 14:04:38 +08002# Copyright (c) 2022-2023, Arm Limited. All rights reserved.
Jianliang Shen710cb952022-10-08 11:32:35 +08003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
Kevin Peng5cba61c2023-01-06 14:23:15 +08008mainmenu "TF-M Configuration"
9
Jianliang Shen710cb952022-10-08 11:32:35 +080010# Load platform Kconfig file if exists
11osource "$(PLATFORM_PATH)/Kconfig"
12
Jianliang Shenf6d1fab2023-02-20 14:57:53 +080013################################# System options ###############################
Jianliang Shenf57c6a72023-02-20 14:04:38 +080014
15rsource "Kconfig.bl"
Kevin Peng5cba61c2023-01-06 14:23:15 +080016rsource "secure_fw/spm/Kconfig"
Jianliang Shenf6d1fab2023-02-20 14:57:53 +080017rsource "secure_fw/partitions/Kconfig" # These are partition switches.
Jianliang Shen710cb952022-10-08 11:32:35 +080018rsource "platform/Kconfig"
Jianliang Shenf6d1fab2023-02-20 14:57:53 +080019rsource "Kconfig.misc"
Jianliang Shen710cb952022-10-08 11:32:35 +080020
Jianliang Shenf6d1fab2023-02-20 14:57:53 +080021################################# Test options #################################
Jianliang Shen710cb952022-10-08 11:32:35 +080022
23menu "TF-M tests"
24rsource "lib/ext/tf-m-tests/Kconfig"
25rsource "lib/ext/psa_arch_tests/Kconfig"
26endmenu
27
28################################# Component ####################################
29
Jianliang Shen2b24f252022-11-25 11:08:54 +080030# These configs in this menu are local to a component or externally referenced
31# when components are coupled. Usually, such options are located in C header
32# file. The Header File Config System has more details about it.
Jianliang Shen710cb952022-10-08 11:32:35 +080033
34# Other configs above which are not in component menu are TF-M build options to
35# select which file or component to include into compilation. These are options,
36# usually used by a build system to enable/disable modules, specify location of
37# external dependency or other selection, global to a project. These options
38# shall be considered while adopting TF-M to other build systems.
39
40menu "TF-M component configs"
Jianliang Shen5f00ed32023-02-20 14:55:41 +080041
42# Load configurations set by PSA arch test
43if TEST_PSA_API != ""
44 rsource "$(TFM_SOURCE_DIR)/config/tests/Kconfig.test_psa_api"
45endif
46
Kevin Peng5cba61c2023-01-06 14:23:15 +080047rsource "secure_fw/spm/Kconfig.comp"
Jianliang Shen710cb952022-10-08 11:32:35 +080048
49menu "Secure Partitions component configs"
Kevin Peng5cba61c2023-01-06 14:23:15 +080050 rsource "secure_fw/partitions/*/Kconfig.comp"
Jianliang Shen710cb952022-10-08 11:32:35 +080051endmenu
52endmenu