aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--leg-virt-tiancore-edk2-upstream.yaml13
1 files changed, 5 insertions, 8 deletions
diff --git a/leg-virt-tiancore-edk2-upstream.yaml b/leg-virt-tiancore-edk2-upstream.yaml
index 646b0566e3..8b3df69edc 100644
--- a/leg-virt-tiancore-edk2-upstream.yaml
+++ b/leg-virt-tiancore-edk2-upstream.yaml
@@ -95,17 +95,14 @@
source edksetup.sh
- # download and unpack the OpenSSL tarball
+ # download and unpack the OpenSSL sources
cd ${WORKSPACE}/CryptoPkg/Library/OpensslLib
- # 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/')
+ # capture the clone command from the HOWTO
+ CLONE_CMD=$(grep 'git clone -b' OpenSSL-HOWTO.txt |sed 's/[ >]*//')
- ( wget -O - -q "http://www.openssl.org/source/openssl-${VERSION}.tar.gz" || \
- wget -O - -q "http://www.openssl.org/source/old/${VERSION%[a-z]*}/openssl-${VERSION}.tar.gz" ) \
- | tar xzf -
- ( cd openssl-${VERSION}; patch -p1 -i ../EDKII_openssl-${VERSION}.patch )
- ./Install.sh
+ # clone the OpenSSL repo
+ eval ${CLONE_CMD} --depth 1
cd ${WORKSPACE}
for type in DEBUG RELEASE