tss2: gating test deal with openssl 3
Fixup tpm emulator build for openssl 3 resolves: rhbz#1972900 Signed-off-by: Jerry Snitselaar <jsnitsel@redhat.com>
This commit is contained in:
parent
b122768bc6
commit
7f760c573b
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# get tpm simulator code
|
# get tpm simulator code
|
||||||
IBMTPM_VERSION=1637
|
IBMTPM_VERSION=1661
|
||||||
wget --no-check-certificate https://downloads.sourceforge.net/project/ibmswtpm2/ibmtpm$IBMTPM_VERSION.tar.gz
|
wget --no-check-certificate https://downloads.sourceforge.net/project/ibmswtpm2/ibmtpm$IBMTPM_VERSION.tar.gz
|
||||||
|
|
||||||
res="$?"
|
res="$?"
|
||||||
@ -16,6 +16,9 @@ mkdir ibmtpm
|
|||||||
pushd ibmtpm
|
pushd ibmtpm
|
||||||
tar xf ../ibmtpm$IBMTPM_VERSION.tar.gz
|
tar xf ../ibmtpm$IBMTPM_VERSION.tar.gz
|
||||||
pushd src
|
pushd src
|
||||||
|
# fixup for openssl 3
|
||||||
|
sed -i -e "s|OPENSSL_VERSION_NUMBER >= 0x10200000L|OPENSSL_VERSION_NUMBER > 0x30000000L|" TpmToOsslMath.h
|
||||||
|
sed -i -e "s|CCFLAGS = -Wall|CCFLAGS = -Wall -Wno-error=deprecated-declarations|" makefile
|
||||||
make
|
make
|
||||||
|
|
||||||
res="$?"
|
res="$?"
|
||||||
|
Loading…
Reference in New Issue
Block a user