diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-03-29 10:04:43 +0100 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-03-29 10:04:43 +0100 |
commit | c261c1d39cde7cc9ef391db051d456fbfde2c511 (patch) | |
tree | cc5b2c44a32b8d33153ccd3b22a1d8ca742c27ba /leg-virt-tiancore-edk2-upstream.yaml | |
parent | b04c627f96241bf7210f8679ead8878513a3adc8 (diff) |
leg-virt-tianocore: switch to OpenSSL Git source
Change-Id: Ic9ffd8c0f19aafdc7f604fc236404deaec0f62ea
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.yaml | 13 |
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 |