1#-------------------------------------------------------------------------------
2# Copyright (c) 2023, Arm Limited. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
8menuconfig BL1
9    bool "BL1"
10    default n
11
12if BL1 && PLATFORM_DEFAULT_BL1
13
14config TFM_BL2_ENCRYPTION_KEY_PATH
15    string
16    default "$(TFM_SOURCE_DIR)/bl1/bl1_2/bl2_dummy_encryption_key.bin"
17    help
18      Path to binary key to use for encrypting BL2
19
20config TFM_GUK_PATH
21    string
22    default "$(TFM_SOURCE_DIR)/bl1/bl1_1/dummy_guk.bin"
23    help
24      Path to binary GUK key file to provision
25
26config TFM_BL2_IMAGE_FLASH_AREA_NUM
27    int "Which flash area BL2 is stored in"
28    default 0
29
30config TFM_BL2_SIGNING_KEY_PATH
31    string
32    default "$(TFM_SOURCE_DIR)/bl1/bl1_2/bl1_dummy_rotpk"
33    help
34      Path to binary BL2 signing private key
35
36config TFM_BL1_MEMORY_MAPPED_FLASH
37    bool "BL1 Access flash content"
38    default y
39
40config TFM_BL1_LOGGING
41    bool "BL1 log to uart"
42    default y
43
44config TFM_BL1_DEFAULT_OTP
45    bool
46    default y
47    help
48      Whether BL1_1 will use default OTP memory
49
50config TFM_BL1_DEFAULT_PROVISIONING
51    bool
52    default y
53    help
54      Whether BL1_1 will use default provisioning
55
56config TFM_BL1_SOFTWARE_CRYPTO
57    bool
58    default y
59    help
60      Whether BL1_1 will use software crypto
61
62config TFM_BL1_DUMMY_TRNG
63    bool
64    default y
65    help
66      Whether BL1_1 will use dummy TRNG
67
68config TFM_BL1_PQ_CRYPTO
69    bool "Enable LMS PQ crypto for BL2 verification."
70    default n
71    help
72      Enable LMS PQ crypto for BL2 verification. This is experimental and should
73      not yet be used in production
74
75config TFM_BL1_IMAGE_VERSION_BL2
76    string "Image version of BL2 image"
77    default "1.9.0+0"
78
79config TFM_BL1_IMAGE_SECURITY_COUNTER_BL2
80    int "Security counter value to include with BL2 image"
81    default 1
82
83config TFM_BL1_2_IN_OTP
84    bool "Whether BL1_2 is stored in OTP"
85    default y
86
87config BL1_HEADER_SIZE
88    hex "BL1 Header size"
89    default 0x800
90
91config BL1_TRAILER_SIZE
92    hex "BL1 Trailer size"
93    default 0x000
94
95config TFM_BL1_LOGGING
96    bool "Enable BL1 Logging"
97    default y
98
99endif
100