Skip to content

Commit 2945ee7

Browse files
committed
ubuntu22.04/24.04: add libtpms/swtpm
Swtpm was remove 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. Signed-off-by: Johannes Holland <johannes.holland@infineon.de>
1 parent 992f789 commit 2945ee7

File tree

4 files changed

+6
-26
lines changed

4 files changed

+6
-26
lines changed

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: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -62,20 +62,9 @@ RUN apt-get update && \
6262

6363
include(`pip3.m4')
6464

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-
7865
include(`autoconf.m4')
66+
include(`ibmtpm1682.m4')
67+
include(`swtpm.m4`)
7968
include(`junit.m4')
8069

8170
WORKDIR /

ubuntu-24.04.docker.m4

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -67,20 +67,9 @@ RUN apt-get update && \
6767

6868
include(`pip3-withoutupgrade.m4')
6969

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-
8370
include(`autoconf.m4')
71+
include(`ibmtpm1682.m4')
72+
include(`swtpm.m4`)
8473
include(`junit.m4')
8574

8675
WORKDIR /

0 commit comments

Comments
 (0)