diff options
-rw-r--r-- | leg-virt-tiancore-edk2-upstream.yaml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/leg-virt-tiancore-edk2-upstream.yaml b/leg-virt-tiancore-edk2-upstream.yaml index 1493bcdf49..a238b6dfd5 100644 --- a/leg-virt-tiancore-edk2-upstream.yaml +++ b/leg-virt-tiancore-edk2-upstream.yaml @@ -93,8 +93,8 @@ # download and unpack the OpenSSL tarball cd ${WORKSPACE}/CryptoPkg/Library/OpensslLib - # capture OpenSSL version number from the HOWTO - VERSION=$(grep 'Current supported OpenSSL version' Patch-HOWTO.txt |sed 's/^[^0-9]\+\([0-9]\(\.[0-9]\)\+[a-z]*\).*\r\?$/\1/') + # capture OpenSSL version number from the patch file against the most recent version + VERSION=$(ls -rv EDKII_openssl-*.patch|head -1|sed 's/^.*-\([0-9.a-z]*\).patch/\1/') wget -O - -q "http://www.openssl.org/source/openssl-${VERSION}.tar.gz" | tar xzf - ( cd openssl-${VERSION}; patch -p0 -i ../EDKII_openssl-${VERSION}.patch ) |