Skip to content

Commit

Permalink
vtpm : apply patches in ordered way
Browse files Browse the repository at this point in the history
Signed-off-by: Shahriyar Jalayeri <shahriyar@zededa.com>
  • Loading branch information
shjala authored and OhmSpectator committed Oct 11, 2024
1 parent af9391f commit f93c3b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/vtpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,11 @@ RUN strip --strip-unneeded /out/usr/lib/libtss2*.so*
# build tpm2-tools, it is needed by ptpm
WORKDIR /tpm2-tools
ADD --keep-git-dir=true https://github.com/tpm2-software/tpm2-tools.git#5.5 /tpm2-tools
COPY patch/patch-tpm2-tools.diff .
RUN patch -p1 < patch-tpm2-tools.diff
COPY patches/ /patches/
RUN for patch in /patches/*.patch; do \
echo "Applying $patch"; \
patch -d /tpm2-tools -p1 < "$patch" || exit 1 ; \
done
RUN ./bootstrap && \
./configure && \
make -j$(nproc)
Expand Down
File renamed without changes.

0 comments on commit f93c3b5

Please sign in to comment.