Skip to content

Commit c934196

Browse files
johollAndreasFuchsTPM
authored andcommitted
Add ibmtpm/libtpms/swtpm to all platforms
Swtpm was removed from ubuntu due to a bug. We should not remove dependencies due to the test being broken. Instead, the downstream CI should select another test device (without the dependency being removed). Add libtpms and swtpm back. Also add ibmtpm to all platforms which do not have it installed, yet Signed-off-by: Johannes Holland <johannes.holland@infineon.de>
1 parent 992f789 commit c934196

File tree

6 files changed

+10
-26
lines changed

6 files changed

+10
-26
lines changed

arch-linux.docker.m4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ RUN pacman -Sy --noconfirm \
2727
libltdl \
2828
libusb \
2929
libftdi \
30+
ibm-sw-tpm2 \
3031
swtpm \
3132
pkgfile \
3233
glib2 \

fedora-34-libressl.docker.m4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ ENV PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
7070
include(`libressl.m4')
7171
include(`pip3.m4')
7272
include(`autoconf.m4')
73+
include(`ibmtpm1637.m4')
7374
include(`swtpm.m4')
7475
include(`uthash.m4')
7576
include(`junit.m4')

ubuntu-22.04-mbedtls-3.1.docker.m4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ RUN apt-get update && \
6262
include(`pip3.m4')
6363

6464
include(`autoconf.m4')
65+
include(`ibmtpm1682.m4')
6566
include(`swtpm.m4')
6667
include(`uthash.m4')
6768
include(`junit.m4')

ubuntu-22.04-mbedtls-3.6.docker.m4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ RUN apt-get update && \
6161
include(`pip3.m4')
6262

6363
include(`autoconf.m4')
64+
include(`ibmtpm1682.m4')
6465
include(`swtpm.m4')
6566
include(`uthash.m4')
6667
include(`junit.m4')

ubuntu-22.04.docker.m4

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -58,24 +58,14 @@ RUN apt-get update && \
5858
libjson-glib-dev \
5959
libusb-1.0-0-dev \
6060
libftdi-dev \
61+
libgmp-dev \
6162
uthash-dev
6263

6364
include(`pip3.m4')
6465

65-
ARG ibmtpm_name=ibmtpm1682
66-
RUN cd /tmp \
67-
&& wget $WGET_EXTRA_FLAGS -L "https://downloads.sourceforge.net/project/ibmswtpm2/$ibmtpm_name.tar.gz" \
68-
&& sha256sum $ibmtpm_name.tar.gz | grep ^3cb642f871a17b23d50b046e5f95f449c2287415fc1e7aeb4bdbb8920dbcb38f \
69-
&& mkdir -p $ibmtpm_name \
70-
&& tar xv --no-same-owner -f $ibmtpm_name.tar.gz -C $ibmtpm_name \
71-
&& rm $ibmtpm_name.tar.gz \
72-
&& cd $ibmtpm_name/src \
73-
&& sed -i 's/-DTPM_NUVOTON/-DTPM_NUVOTON $(CFLAGS)/' makefile \
74-
&& CFLAGS="-DNV_MEMORY_SIZE=32768 -DMIN_EVICT_OBJECTS=7" make -j$(nproc) \
75-
&& cp tpm_server /usr/local/bin \
76-
&& rm -fr /tmp/$ibmtpm_name
77-
7866
include(`autoconf.m4')
67+
include(`ibmtpm1682.m4')
68+
include(`swtpm.m4')
7969
include(`junit.m4')
8070

8171
WORKDIR /

ubuntu-24.04.docker.m4

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -61,26 +61,16 @@ RUN apt-get update && \
6161
libjson-glib-dev \
6262
libusb-1.0-0-dev \
6363
libftdi-dev \
64+
libgmp-dev \
6465
uthash-dev \
6566
clang-tidy \
6667
bear
6768

6869
include(`pip3-withoutupgrade.m4')
6970

70-
ARG ibmtpm_name=ibmtpm1682
71-
RUN cd /tmp \
72-
&& wget $WGET_EXTRA_FLAGS -L "https://downloads.sourceforge.net/project/ibmswtpm2/$ibmtpm_name.tar.gz" \
73-
&& sha256sum $ibmtpm_name.tar.gz | grep ^3cb642f871a17b23d50b046e5f95f449c2287415fc1e7aeb4bdbb8920dbcb38f \
74-
&& mkdir -p $ibmtpm_name \
75-
&& tar xv --no-same-owner -f $ibmtpm_name.tar.gz -C $ibmtpm_name \
76-
&& rm $ibmtpm_name.tar.gz \
77-
&& cd $ibmtpm_name/src \
78-
&& sed -i 's/-DTPM_NUVOTON/-DTPM_NUVOTON $(CFLAGS)/' makefile \
79-
&& CFLAGS="-DNV_MEMORY_SIZE=32768 -DMIN_EVICT_OBJECTS=7" make -j$(nproc) \
80-
&& cp tpm_server /usr/local/bin \
81-
&& rm -fr /tmp/$ibmtpm_name
82-
8371
include(`autoconf.m4')
72+
include(`ibmtpm1682.m4')
73+
include(`swtpm.m4')
8474
include(`junit.m4')
8575

8676
WORKDIR /

0 commit comments

Comments
 (0)