1
0
mirror of https://git.code.sf.net/p/linux-ima/ima-evm-utils synced 2025-04-28 06:33:36 +02:00
ima-evm-utils-mirror/tests/install-swtpm.sh
Mimi Zohar 9cd7edf1e0 travis: download, compile, and install a swTPM
Verifying the "boot_aggregate" requires reading the TPM PCRs for each of
the TPM banks.  In test environments without a physical TPM, a software
TPM may be used.

Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
2020-08-04 13:53:07 -04:00

12 lines
220 B
Bash
Executable File

#!/bin/sh
set -ex
wget https://sourceforge.net/projects/ibmswtpm2/files/ibmtpm1332.tar.gz/download
mkdir ibmtpm1332
cd ibmtpm1332
tar -xvzf ../download
cd src
make -j$(nproc)
sudo cp tpm_server /usr/local/bin/
cd ../..