Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

101.4. libtpms-0.10.2

A software TPM 1.2 and 2.0 as a library — the TPM inside swtpm

0.10.2-1 · BSD-3-Clause · 0.8 SBU · 1.3 MiB, 39 files · 41_system, 37 of 1047 · ports/core/crypto/libtpms

Homepage: https://github.com/stefanberger/libtpms

Depends on: openssl, autoconf, automake, libtool, perl, pkgconf.

Required by (2): swtpm, tpm2-tss.

Sources: libtpms-0.10.2.tar.gz (1.3 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install libtpms'

build.sh:

autoreconf -fi
./configure --prefix=/usr --libdir=/usr/lib --disable-static \
	--with-openssl \
	--with-tpm2
make
make DESTDIR=$PKG install

Libraries: libtpms.so.

Directories: /usr/include/libtpms, /usr/share/licenses/libtpms.