summaryrefslogtreecommitdiff
path: root/tpm2_install
blob: 6f79207338ddda9583863c210fc5f05e109e3137 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash

build() {
    add_module "tpm_tis"
    add_module "tpm_crb"

    add_binary "/usr/bin/tpm2_unseal"
    add_binary "/usr/bin/tpm2_policypcr"
    add_binary "/usr/bin/tpm2_policyauthorize"
    add_binary "/usr/bin/tpm2_flushcontext"
    add_binary "/usr/bin/tpm2_startauthsession"
    add_binary "/usr/bin/tpm2_load"
    add_binary "/usr/bin/tpm2_loadexternal"
    add_binary "/usr/bin/tpm2_verifysignature"

    add_binary "/usr/lib/libtss2-tcti-device.so.0"

    add_file "/etc/tpm2/policy"
    add_file "/etc/tpm2/rsaname"
    add_file "/etc/tpm2/rsactx"
    add_file "/etc/tpm2/rsapub"
    add_file "/etc/tpm2/rsasig"
    add_file "/etc/tpm2/pcr"
    add_file "/etc/tpm2/keyloc"

    add_runscript
}

help() {
    cat <<EOF
todo
EOF
}

# vim: set ft=sh ts=4 sw=4 et: