edk2 add short-circuit-the-transfer-of-an-empty-S3_CONTEXT.patch

as requested by @lukeadams in
https://github.com/NixOS/nixpkgs/pull/32724#issuecomment-352140119
This commit is contained in:
Orivej Desh 2017-12-16 03:07:05 +00:00
parent 237cf9e21f
commit 08ff5462ed

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, libuuid, python2, iasl }:
{ stdenv, fetchFromGitHub, fetchpatch, libuuid, python2, iasl }:
let
pythonEnv = python2.withPackages(ps: [ps.tkinter]);
@ -20,7 +20,15 @@ edk2 = stdenv.mkDerivation {
sha256 = "0k48xfwxcgcim1bhkggc19hilvsxsf5axvvcpmld0ng1fcfg0cr6";
};
buildInputs = [ libuuid pythonEnv];
patches = [
(fetchpatch {
name = "short-circuit-the-transfer-of-an-empty-S3_CONTEXT.patch";
url = "https://github.com/tianocore/edk2/commit/9e2a8e928995c3b1bb664b73fd59785055c6b5f6";
sha256 = "0mdqa9w1p6cmli6976v4wi0sw9r4p5prkj7lzfd1877wk11c9c73";
})
];
buildInputs = [ libuuid pythonEnv ];
makeFlags = "-C BaseTools";
@ -33,6 +41,8 @@ edk2 = stdenv.mkDerivation {
mv -v edksetup.sh $out
'';
enableParallelBuilding = true;
meta = {
description = "Intel EFI development kit";
homepage = https://sourceforge.net/projects/edk2/;