edk2: re-vendor OpenSSL
This sucks, but 3.0 is too old, 3.5 is too new, and we're not shipping 3.4 just for this.
This commit is contained in:
parent
90ada24a99
commit
ea5785e8c4
@ -61,31 +61,10 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# FIXME: unvendor OpenSSL again once upstream updates
|
||||||
|
# to a compatible version.
|
||||||
|
# Upstream PR: https://github.com/tianocore/edk2/pull/10946
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# de-vendor OpenSSL
|
|
||||||
rm -r CryptoPkg/Library/OpensslLib/openssl
|
|
||||||
mkdir -p CryptoPkg/Library/OpensslLib/openssl
|
|
||||||
(
|
|
||||||
cd CryptoPkg/Library/OpensslLib/openssl
|
|
||||||
tar --strip-components=1 -xf ${buildPackages.openssl_3.src}
|
|
||||||
|
|
||||||
# Apply OpenSSL patches.
|
|
||||||
${lib.pipe buildPackages.openssl_3.patches [
|
|
||||||
(builtins.filter (
|
|
||||||
patch:
|
|
||||||
!builtins.elem (baseNameOf patch) [
|
|
||||||
# Exclude patches not required in this context.
|
|
||||||
"nix-ssl-cert-file.patch"
|
|
||||||
"openssl-disable-kernel-detection.patch"
|
|
||||||
"use-etc-ssl-certs-darwin.patch"
|
|
||||||
"use-etc-ssl-certs.patch"
|
|
||||||
]
|
|
||||||
))
|
|
||||||
(map (patch: "patch -p1 < ${patch}\n"))
|
|
||||||
lib.concatStrings
|
|
||||||
]}
|
|
||||||
)
|
|
||||||
|
|
||||||
# enable compilation using Clang
|
# enable compilation using Clang
|
||||||
# https://bugzilla.tianocore.org/show_bug.cgi?id=4620
|
# https://bugzilla.tianocore.org/show_bug.cgi?id=4620
|
||||||
substituteInPlace BaseTools/Conf/tools_def.template --replace-fail \
|
substituteInPlace BaseTools/Conf/tools_def.template --replace-fail \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user