1 # SPDX-License-Identifier: GPL-2.0-only
3 config INTEL_CBNT_SUPPORT
4 bool "Intel CBnT support"
6 depends on CPU_INTEL_FIRMWARE_INTERFACE_TABLE
7 #depends on PLATFORM_HAS_DRAM_CLEAR
9 # With CBnT the bootblock is set up as a CBnT IBB and needs a fixed size
10 select TPM_MEASURED_BOOT_INIT_BOOTBLOCK if TPM_MEASURED_BOOT
12 Enables Intel Converged Bootguard and Trusted Execution Technology
13 Support. This will enable one to add a Key Manifest (KM) and a Boot
14 Policy Manifest (BPM) to the filesystem. It will also wrap a FIT around
15 the firmware and update appropriate entries.
19 config INTEL_CBNT_LOGGING
20 bool "Enable verbose CBnT logging"
22 Print more CBnT related debug output.
23 Use in pre-production environments only!
25 config INTEL_CBNT_GENERATE_KM
26 bool "Generate Key Manifest (KM)"
28 select INTEL_CBNT_NEED_KM_PUB_KEY
29 select INTEL_CBNT_NEED_KM_PRIV_KEY if !INTEL_CBNT_KM_ONLY_UNSIGNED
30 select INTEL_CBNT_NEED_BPM_PUB_KEY if !INTEL_CBNT_CBNT_PROV_KM_USE_CFG_FILE
32 Select y to generate the Key Manifest (KM).
33 Select n to include a KM binary.
35 config INTEL_CBNT_KM_ONLY_UNSIGNED
36 bool "Only unsigned key manifest (KM)"
37 depends on INTEL_CBNT_GENERATE_KM
40 The resulting unsigned KM will be placed at build/km_unsigned.bin.
41 The resulting coreboot image will not be functional with CBnT.
42 After the unsigned KM is signed externally you can either rebuild
43 coreboot using that binary or add it to cbfs and fit:
44 "$ cbfstool build/coreboot.rom add -f km.bin -n key_manifest.bin -t raw -a 16"
45 "$ ifittool -r COREBOOT -a -n key_manifest.bin -t 11 -s 12 -f build/coreboot.rom"
46 '-s 12' where 12 is CONFIG_CPU_INTEL_NUM_FIT_ENTRIES.
48 config INTEL_CBNT_CBNT_PROV_KM_USE_CFG_FILE
49 bool "KM: use a CBnT json config file"
50 depends on INTEL_CBNT_GENERATE_KM
53 Select y to generate KM from a json config file.
54 Select n to generate KM from Kconfig options
56 config INTEL_CBNT_GENERATE_BPM
57 bool "Generate Boot Policy Manifest (BPM)"
59 select INTEL_CBNT_NEED_BPM_PRIV_KEY if !INTEL_CBNT_BPM_ONLY_UNSIGNED
61 Select y to generate the Boot Policy Manifest (BPM).
62 Select n to include a BPM binary.
64 config INTEL_CBNT_BPM_ONLY_UNSIGNED
65 bool "Only unsigned boot policy manifest (BPM)"
66 depends on INTEL_CBNT_GENERATE_BPM
69 The resulting unsigned BPM will be placed at build/bpm_unsigned.bin.
70 The resulting coreboot image will not be functional with CBnT.
71 After the unsigned BPM is signed externally you can add it to cbfs
73 "$ cbfstool build/coreboot.rom add -f bpm.bin -n boot_policy_manifest.bin -t raw -a 16"
74 "$ ifittool -r COREBOOT -a -n boot_policy_manifest.bin -t 12 -s 12 -f build/coreboot.rom"
75 '-s 12' where 12 is CONFIG_CPU_INTEL_NUM_FIT_ENTRIES.
77 config INTEL_CBNT_CBNT_PROV_BPM_USE_CFG_FILE
78 bool "BPM: use a CBnT json config file"
79 depends on INTEL_CBNT_GENERATE_BPM
82 Select y to generate BPM from a json config file.
83 Select n to generate BPM from Kconfig options
85 config INTEL_CBNT_CBNT_PROV_CFG_FILE
86 string "CBnT json config file"
87 depends on INTEL_CBNT_CBNT_PROV_KM_USE_CFG_FILE || INTEL_CBNT_CBNT_PROV_BPM_USE_CFG_FILE
89 Location of the bg-prov json config file.
90 Either get a sample JSON config file:
92 Or extract it from a working configuration:
95 config INTEL_CBNT_PROV_EXTERNAL_BIN
96 bool "Use an external cbnt-prov binary"
98 depends on INTEL_CBNT_GENERATE_BPM || INTEL_CBNT_GENERATE_KM
100 Building cbnt-prov requires godeps which makes it impossible to build
101 it in an offline environment. A solution is to use an external binary.
103 config INTEL_CBNT_PROV_EXTERNAL_BIN_PATH
104 string "cbnt-prov path"
105 depends on INTEL_CBNT_PROV_EXTERNAL_BIN
107 Path to the cbnt-prov binary.
109 config INTEL_CBNT_NEED_KM_PUB_KEY
112 config INTEL_CBNT_NEED_KM_PRIV_KEY
115 config INTEL_CBNT_KM_PUB_KEY_FILE
116 string "Key manifest (KM) public key"
117 depends on INTEL_CBNT_NEED_KM_PUB_KEY && !INTEL_CBNT_NEED_KM_PRIV_KEY
119 Location of the key manifest (KM) public key file in .pem format.
121 config INTEL_CBNT_KM_PRIV_KEY_FILE
122 string "Key manifest (KM) private key"
123 depends on INTEL_CBNT_NEED_KM_PRIV_KEY
125 Location of the key manifest (KM) private key file in .pem format.
127 config INTEL_CBNT_NEED_BPM_PUB_KEY
130 config INTEL_CBNT_NEED_BPM_PRIV_KEY
133 config INTEL_CBNT_BPM_PUB_KEY_FILE
134 string "Boot policy manifest (BPM) public key"
135 depends on INTEL_CBNT_NEED_BPM_PUB_KEY && !INTEL_CBNT_NEED_BPM_PRIV_KEY
137 Location of the boot policy manifest (BPM) public key file in .pem format.
139 config INTEL_CBNT_BPM_PRIV_KEY_FILE
140 string "Boot policy manifest (BPM) private key"
141 depends on INTEL_CBNT_NEED_BPM_PRIV_KEY
143 Location of the boot policy manifest (BPM) private key file in .pem format.
145 if !INTEL_CBNT_CBNT_PROV_KM_USE_CFG_FILE && INTEL_CBNT_GENERATE_KM
149 config INTEL_CBNT_KM_REVISION
153 Version of the Key Manifest defined by the Platform Manufacturer.
154 The actual value is transparent to Boot Guard and is not processed by Boot Guard.
156 config INTEL_CBNT_KM_SVN
157 int "KM security Version Number"
161 This value is determined by the Platform Manufacturer.
162 Boot Guard uses this to compare it to the Key Manifest
163 Revocation Value (Revocation.KMSVN) in FPF.
165 If KMSVN < Revocation.KMSVN, the KM will be revoked. It will trigger ENF (the
167 IF KMSVN > Revocation.KMSVN, the Revocation.KMSVN will be set to the KMSVN.
169 Note: Once the value reaches 0Fh, revocation saturates and one can no longer
172 config INTEL_CBNT_KM_ID
176 This identifies the Key Manifest to be used for a platform.
177 This must match the Key Manifest Identifier programmed in
178 the field programmable fuses.
182 endif # !INTEL_CBNT_CBNT_PROV_KM_USE_CFG_FILE
184 if !INTEL_CBNT_CBNT_PROV_BPM_USE_CFG_FILE && INTEL_CBNT_GENERATE_BPM
187 config INTEL_CBNT_BPM_REVISION
191 Version of the Key Manifest defined by the Platform Manufacturer.
192 The actual value is transparent to Boot Guard and is not processed by Boot Guard.
194 config INTEL_CBNT_BPM_SVN
195 int "BPM Security Version Number"
198 This value is determined by the Platform Manufacturer.
200 config INTEL_CBNT_ACM_SVN
201 int "S-ACM Security Version Number"
204 This defines the minimum version the S-ACM must have.
206 config INTEL_CBNT_NUM_NEM_PAGES
210 Set the amount of 4K pages of CAR required.
212 config INTEL_CBNT_PBET
213 int "PBET value in s"
216 Protect BIOS Environment Timer (PBET) value.
217 Factor used by CSE to compute PBE timer value.
218 Actual PBE timer value is set by CSE using formula:
219 PBE timer value = 5 sec + PBETValue.
221 config INTEL_CBNT_IBB_FLAGS
226 3: Don't extend PCR 0
229 config INTEL_CBNT_SINIT_SVN
230 int "SINIT ACM security version number"
233 Minimum required version for the SINIT ACM.
235 config INTEL_CBNT_PD_INTERVAL
239 Duration of Power Down in 5 sec increments.
243 endif # !INTEL_CBNT_CBNT_PROV_BPM_USE_CFG_FILE
245 config INTEL_CBNT_KEY_MANIFEST_BINARY
246 string "KM (Key Manifest) binary location"
247 depends on !INTEL_CBNT_GENERATE_KM
249 Location of the Key Manifest (KM)
251 config INTEL_CBNT_BOOT_POLICY_MANIFEST_BINARY
252 string "BPM (Boot Policy Manifest) binary location"
253 depends on !INTEL_CBNT_GENERATE_BPM
255 Location of the Boot Policy Manifest (BPM)
257 config INTEL_CBNT_CMOS_OFFSET
261 Address in RTC CMOS used by CBNT. Uses 2 bytes. If using an option table
262 adapt the cmos.layout accordingly. The bytes should not be checksummed.
264 endif # INTEL_CBNT_SUPPORT