diff options
author | Stefan Berger <stefanb@linux.ibm.com> | 2020-01-21 15:01:46 -0500 |
---|---|---|
committer | Alexey Kardashevskiy <aik@ozlabs.ru> | 2020-02-21 14:03:07 +1100 |
commit | 8a6b0d7061c5e504be2e378bd691a762307a1805 (patch) | |
tree | f54824d7e940d210d312230c590d959a231fd4a7 /board-qemu/slof | |
parent | ae2e38c3ad59bfebfd35f1f5c1f4636147d67999 (diff) | |
download | SLOF-8a6b0d7061c5e504be2e378bd691a762307a1805.zip SLOF-8a6b0d7061c5e504be2e378bd691a762307a1805.tar.gz SLOF-8a6b0d7061c5e504be2e378bd691a762307a1805.tar.bz2 |
tcgbios: Implement menu to clear TPM 2 and activate its PCR banks
Implement a TPM 2 menu and enable the user to clear the TPM
and its activate PCR banks.
The main TPM menu is activated by pressing the 't' key during
firmware startup.
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'board-qemu/slof')
-rw-r--r-- | board-qemu/slof/OF.fs | 3 | ||||
-rw-r--r-- | board-qemu/slof/vtpm-sml.fs | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/board-qemu/slof/OF.fs b/board-qemu/slof/OF.fs index 3e117ad..f0fc9c6 100644 --- a/board-qemu/slof/OF.fs +++ b/board-qemu/slof/OF.fs @@ -175,6 +175,9 @@ CREATE version-str 10 ALLOT version-str 8 + @ \ end over - dump-display-write " Press 's' to enter Open Firmware." dump-display-write + s" /ibm,vtpm" find-node IF + " Press 't' to enter TPM menu." dump-display-write + THEN cr cr temp-ptr disp-size > IF temp-ptr disp-size MOD diff --git a/board-qemu/slof/vtpm-sml.fs b/board-qemu/slof/vtpm-sml.fs index a1fb8ec..fd888fb 100644 --- a/board-qemu/slof/vtpm-sml.fs +++ b/board-qemu/slof/vtpm-sml.fs @@ -56,6 +56,12 @@ s" ibm,vtpm" 2dup device-name device-type THEN ; +: vtpm-menu + tpm-is-working IF + tpm20-menu + THEN +; + : open true ; : close ; |