For testing the TPM drivers and the EFI_TCG2_PROTOCOL we need the tool
swtpm.
Once we move to Ubuntu Impish we can take libtpms from package libtpms-dev.
Signed-off-by: Heinrich Schuchardt <[email protected]>
dosfstools \
e2fsprogs \
efitools \
dosfstools \
e2fsprogs \
efitools \
graphviz \
grub-efi-amd64-bin \
grub-efi-ia32-bin \
graphviz \
grub-efi-amd64-bin \
grub-efi-ia32-bin \
iputils-ping \
libconfuse-dev \
libgit2-dev \
iputils-ping \
libconfuse-dev \
libgit2-dev \
libguestfs-tools \
liblz4-tool \
libpixman-1-dev \
libpython3-dev \
libsdl1.2-dev \
libsdl2-dev \
libguestfs-tools \
liblz4-tool \
libpixman-1-dev \
libpython3-dev \
libsdl1.2-dev \
libsdl2-dev \
libudev-dev \
libusb-1.0-0-dev \
linux-image-kvm \
libudev-dev \
libusb-1.0-0-dev \
linux-image-kvm \
mount \
mtd-utils \
mtools \
mount \
mtd-utils \
mtools \
ninja-build \
openssl \
picocom \
ninja-build \
openssl \
picocom \
rpm2cpio \
sbsigntool \
sloccount \
rpm2cpio \
sbsigntool \
sloccount \
sparse \
srecord \
sudo \
sparse \
srecord \
sudo \
make install && \
rm -rf /tmp/genimage-14
make install && \
rm -rf /tmp/genimage-14
+# Build libtpms
+RUN git clone https://github.com/stefanberger/libtpms /tmp/libtpms && \
+ cd /tmp/libtpms && \
+ ./autogen.sh && \
+ ./configure && \
+ make -j$(nproc) && \
+ make install && \
+ ldconfig && \
+ rm -rf /tmp/libtpms
+
+# Build swtpm
+RUN git clone https://github.com/stefanberger/swtpm /tmp/swtpm && \
+ cd /tmp/swtpm && \
+ ./autogen.sh && \
+ ./configure && \
+ make -j$(nproc) && \
+ make install && \
+ rm -rf /tmp/swtpm
+
# Create our user/group
RUN echo uboot ALL=NOPASSWD: ALL > /etc/sudoers.d/uboot
RUN useradd -m -U uboot
# Create our user/group
RUN echo uboot ALL=NOPASSWD: ALL > /etc/sudoers.d/uboot
RUN useradd -m -U uboot