diff --git a/src/tpm2-setup/meson.build b/src/tpm2-setup/meson.build index 9814fe1005..a862e7239c 100644 --- a/src/tpm2-setup/meson.build +++ b/src/tpm2-setup/meson.build @@ -31,12 +31,12 @@ executables += [ 'HAVE_TPM2', ], }, - ] if conf.get('ENABLE_BOOTLOADER') == 1 and conf.get('HAVE_OPENSSL') == 1 and conf.get('HAVE_TPM2') == 1 nvpcrs = [ 'cryptsetup', - 'hardware' ] + 'hardware', + 'verity'] foreach n : nvpcrs custom_target( input : 'nvpcr/' + n + '.nvpcr.in', diff --git a/src/tpm2-setup/nvpcr/verity.nvpcr.in b/src/tpm2-setup/nvpcr/verity.nvpcr.in new file mode 100644 index 0000000000..b4fb62bd76 --- /dev/null +++ b/src/tpm2-setup/nvpcr/verity.nvpcr.in @@ -0,0 +1,5 @@ +{ + "name" : "verity", + "algorithm" : "sha256", + "nvIndex" : {{TPM2_NVPCR_BASE + 2}} +}