summaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
authorPramod Raghavendra Jayathirth <pramod.raghavendra.jayathirth@intel.com>2019-02-26 08:41:02 -0800
committerPramod <pramod.raghavendra.jayathirth@intel.com>2019-04-03 22:56:57 +0000
commit627d269bcc8761058b2d14a9be2a6fe706f065a8 (patch)
treeb0b07f4410d6fff7e50d6013a5d88bb3e2712f98 /build.sh
parent7626b75b3c71173ba62c2f92d22bab8f4291e44a (diff)
Upgrade Duplicate utility to the latest tss
This patch updates the Duplicate utility to match with the latest tss stack Issue-ID: AAF-763 Change-Id: I08a01b193e8cf550fa1cfcbe0781672b3051eb96 Signed-off-by: Pramod Raghavendra Jayathirth <pramod.raghavendra.jayathirth@intel.com>
Diffstat (limited to 'build.sh')
-rw-r--r--build.sh18
1 files changed, 16 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 6365435..8cb1efa 100644
--- a/build.sh
+++ b/build.sh
@@ -32,12 +32,21 @@ sudo apt-get -y install \
default-jdk \
libgcrypt20-dev
-export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/
+wget https://www.openssl.org/source/openssl-1.1.0.tar.gz
+gzip -d openssl-1.1.0.tar.gz
+tar -xvf openssl-1.1.0.tar
+cd openssl-1.1.0 && \
+ ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl && \
+ make && \
+sudo make install
+cd ..
+
+export LD_LIBRARY_PATH=/usr/local/ssl/lib
echo "Build SoftHSMv2..."
cd SoftHSMv2
sh autogen.sh
-./configure --disable-gost --with-openssl=/usr/local/
+./configure --disable-gost --with-openssl=/usr/local/ssl
make
make check
sudo make install
@@ -88,3 +97,8 @@ cd TPM2-Plugin
sudo make install
cd ..
sudo ldconfig
+
+echo "Build Duplicate Utility tool"
+cd tpm-util/duplicate
+make -f sampleMakefile
+