#! /bin/sh : << \EOF For importing the hobbled OpenSSL tarball from Fedora, the following steps are necessary. Note that both the "sources" file format and the pkgs.fedoraproject.org directory structure have changed, accommodating SHA512 checksums. # in a separate directory fedpkg clone -a openssl cd openssl fedpkg switch-branch master gitk -- sources # the commit that added the 1.1.0h hobbled tarball is 6eb8f620273 # subject "update to upstream version 1.1.0h" git checkout 6eb8f620273 # fetch the hobbled tarball and verify the checksum ( set -e while read HASH_TYPE FN EQ HASH; do # remove leading and trailing parens FN="${FN#(*}" FN="${FN%*)}" wget \ http://pkgs.fedoraproject.org/repo/pkgs/openssl/$FN/sha512/$HASH/$FN done openssl-${openssl_version}-hobbled.tar.xz cd tianocore-openssl-${openssl_version} git init . git config core.whitespace cr-at-eol git config am.keepcr true git am git archive --format=tar --prefix=tianocore-edk2-${edk2_githash}/ \ HEAD CryptoPkg/Library/OpensslLib/ | \ xz -9ev >&3) < $1 rm -rf tianocore-openssl-${openssl_version}