This is a simple project to build the great software tpm emulator https://github.com/stefanberger/swtpm.git in a container. This eliminates all of the complexities of setting up the build environment and just leaves you with compiled libraries and binaries.
Prerequisites:
- docker
- git
Clone this repository:
git clone https://github.com/deitch/swtpm-build.git
Simple:
make build
This will:
- Create an image with everything built into it:
swtpmbuild:latest
- Create a subdirectory in the current directory
./dist/
- Copy all of the libraries and binaries for libtpms and swtpm into
./dist/
in the right structure
From there, you can install them as is to your preferred path: /usr
, /usr/local
, whatever suits you.
make clean