aboutsummaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rw-r--r--build.sh30
1 files changed, 30 insertions, 0 deletions
diff --git a/build.sh b/build.sh
new file mode 100644
index 0000000..2e0da1d
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,30 @@
+#!/etc/bash
+
+set -e
+sudo kill -9 $(ps -ef | grep "apt" | grep -v grep | awk '{print $2}')
+
+sudo rm /var/lib/dpkg/lock
+sudo rm /var/lib/apt/lists/lock
+sudo rm /var/cache/apt/archives/lock
+
+sudo dpkg --configure -a
+
+sudo apt -y install autoconf
+sudo apt -y install automake
+sudo apt -y install libtool
+sudo apt -y install autotools-dev
+sudo apt -y install tpm2-tools
+
+echo "Build SoftHSMv2..."
+cd SoftHSMv2
+sh autogen.sh
+./configure
+make
+cd ..
+
+#echo "Build TPM2_plugin..."
+#cd TPM2-Plugin
+#./bootstrap
+#./configure
+#make
+#cd ..