| 1 |
cmds = ['tpm2_createprimary', ['tpm2_pcrread', 'tpm2_pcrlist'], |
| 2 |
'tpm2_createpolicy', 'tpm2_create', 'tpm2_flushcontext', 'tpm2_load', |
| 3 |
'tpm2_unseal'] |
| 4 |
|
| 5 |
all = true |
| 6 |
foreach cmd : cmds |
| 7 |
all = all and find_program(cmd, required: false).found() |
| 8 |
endforeach |
| 9 |
|
| 10 |
if all |
| 11 |
bins += join_paths(meson.current_source_dir(), 'clevis-decrypt-tpm2') |
| 12 |
bins += join_paths(meson.current_source_dir(), 'clevis-encrypt-tpm2') |
| 13 |
mans += join_paths(meson.current_source_dir(), 'clevis-encrypt-tpm2.1') |
| 14 |
subdir('tests') |
| 15 |
else |
| 16 |
warning('Will not install tpm2 pin due to missing dependencies!') |
| 17 |
endif |