summaryrefslogtreecommitdiff
path: root/src/security/intel/cbnt/Kconfig
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2021-03-17 12:23:20 +0100
committerArthur Heymans <arthur@aheymans.xyz>2021-03-30 11:46:13 +0000
commit6362df3f5ef6ebe4e1228962bcd09273cd57ce57 (patch)
treec994511367637a9daea9f796097883fc6b81f885 /src/security/intel/cbnt/Kconfig
parent15412c0681970e49ea34715a6efbfc43dfc87e60 (diff)
security/intel/cbnt: Add option to generate an unsigned BPM
Change-Id: Ic1b941f06b44bd3067e5b071af8f7a02499d7827 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/51573 Reviewed-by: Christian Walter <christian.walter@9elements.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/security/intel/cbnt/Kconfig')
-rw-r--r--src/security/intel/cbnt/Kconfig15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/security/intel/cbnt/Kconfig b/src/security/intel/cbnt/Kconfig
index 7df09b4b1b..c018212311 100644
--- a/src/security/intel/cbnt/Kconfig
+++ b/src/security/intel/cbnt/Kconfig
@@ -50,11 +50,24 @@ config INTEL_CBNT_BG_PROV_KM_USE_CFG_FILE
config INTEL_CBNT_GENERATE_BPM
bool "Generate Boot Policy Manifest (BPM)"
default y
- select INTEL_CBNT_NEED_BPM_PRIV_KEY
+ select INTEL_CBNT_NEED_BPM_PRIV_KEY if !INTEL_CBNT_BPM_ONLY_UNSIGNED
help
Select y to generate the Boot Policy Manifest (BPM).
Select n to include a BPM binary.
+config INTEL_CBNT_BPM_ONLY_UNSIGNED
+ bool "Only unsigned boot policy manifest (BPM)"
+ depends on INTEL_CBNT_GENERATE_BPM
+ help
+ Skip signing the BPM.
+ The resulting unsigned BPM will be placed at build/bpm_unsigned.bin.
+ The resulting coreboot image will not be functional with CBnT.
+ After the unsigned BPM is signed externally you can add it to cbfs
+ and fit:
+ "$ cbfstool build/coreboot.rom add -f bpm.bin -n boot_policy_manifest.bin -t raw -a 16"
+ "$ ifittool -r COREBOOT -a -n boot_policy_manifest.bin -t 12 -s 12 -f build/coreboot.rom"
+ '-s 12' where 12 is CONFIG_CPU_INTEL_NUM_FIT_ENTRIES.
+
config INTEL_CBNT_BG_PROV_CFG_FILE
string "CBnT json config file"
depends on INTEL_CBNT_BG_PROV_KM_USE_CFG_FILE || INTEL_CBNT_GENERATE_BPM