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