Skip to content

Commit

Permalink
Merge pull request #15 from zanebeckwith/use-tpm-simulator-mirror
Browse files Browse the repository at this point in the history
Use my new github mirror of IBM's sourceforge page for the TPM simulator
  • Loading branch information
Zane Beckwith authored Feb 28, 2018
2 parents ea035bb + a70df68 commit 5229e78
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
build/
ibm-tpm-simulator/
ibm-tpm2-simulator-mirror/
29 changes: 13 additions & 16 deletions .travis/install-ibm-tpm2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,22 @@ if [[ $# -ne 1 ]]; then
exit 1
fi

tpm_version=532
tss_version=593
installation_dir="$1"

install_dir="$1"
if [[ ! -d "$installation_dir" ]]; then
git clone https://github.com/zanebeckwith/ibm-tpm2-simulator-mirror "$installation_dir"
fi

mkdir -p ${install_dir}
cd ${install_dir}
pushd $installation_dir

mkdir -p ./tpm
cd ./tpm
wget https://sourceforge.net/projects/ibmswtpm2/files/ibmtpm${tpm_version}.tar
tar xvf ibmtpm${tpm_version}.tar
cd ./src/
pushd ./tpm
make
cd ../../
popd

mkdir -p ./tss
cd ./tss
wget https://sourceforge.net/projects/ibmtpm20tss/files/ibmtss${tss_version}.tar
tar xvf ibmtss${tss_version}.tar
cd ./utils/
pushd ./tss
pushd ./utils/
make
popd
popd

popd
14 changes: 10 additions & 4 deletions .travis/run-ibm-tpm2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,20 @@ if [[ $# -ne 1 ]]; then
exit 1
fi

cd "$1"
installation_dir="$1"

pkill tpm_server
cd ./tpm/src/

pushd $installation_dir

pushd tpm
./tpm_server -rm &
sleep 2
cd ../..
popd

cd ./tss/utils/
pushd tss/utils/
./powerup
./startup
popd

popd

0 comments on commit 5229e78

Please sign in to comment.