aboutsummaryrefslogtreecommitdiff
path: root/leg-virt-tiancore-edk2-upstream.yaml
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2015-09-01 13:01:05 +0200
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2015-09-01 13:02:07 +0200
commit27e24d77b70b221b91427999748e5c2b52a3eb29 (patch)
treee09d7dc89cf451eb0bace99db6c7cdb8b843c7d2 /leg-virt-tiancore-edk2-upstream.yaml
parent1c45f22f7f89eb4a9ab98faa8fbbc181d09359a8 (diff)
leg-virt-tianocore: grab OpenSSL version from patch file instead of howto
Change-Id: I692fc333e05573f9bbcf77d214d46d572d46e60d Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Diffstat (limited to 'leg-virt-tiancore-edk2-upstream.yaml')
-rw-r--r--leg-virt-tiancore-edk2-upstream.yaml4
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 )