2021-01-21 09:00:13 -08:00
|
|
|
{ lib, stdenv, buildPackages, fetchurl, fetchpatch, pciutils }:
|
2019-11-03 02:24:57 -08:00
|
|
|
|
2021-01-21 09:00:13 -08:00
|
|
|
with lib;
|
2012-03-13 18:23:31 -07:00
|
|
|
|
2014-06-18 17:39:47 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "gnu-efi";
|
2019-11-01 17:44:50 -07:00
|
|
|
version = "3.0.11";
|
2012-03-13 18:23:31 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 05:41:18 -07:00
|
|
|
url = "mirror://sourceforge/gnu-efi/${pname}-${version}.tar.bz2";
|
2019-11-01 17:44:50 -07:00
|
|
|
sha256 = "1ffnc4xbzfggs37ymrgfx76j56kk2644c081ivhr2bjkla9ag3gj";
|
2012-03-13 18:23:31 -07:00
|
|
|
};
|
|
|
|
|
2019-11-04 21:43:07 -08:00
|
|
|
patches = [
|
|
|
|
# Fix build on armv6l
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://sourceforge.net/p/gnu-efi/patches/_discuss/thread/25bb273a18/9c4d/attachment/0001-Fix-ARCH-on-armv6-and-other-32-bit-ARM-platforms.patch";
|
|
|
|
sha256 = "0pj03h20g2bbz6fr753bj1scry6919h57l1h86z3b6q7hqfj0b4r";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2015-05-20 00:26:12 -07:00
|
|
|
buildInputs = [ pciutils ];
|
2012-03-13 18:23:31 -07:00
|
|
|
|
2016-02-26 09:38:15 -08:00
|
|
|
hardeningDisable = [ "stackprotector" ];
|
2016-03-01 14:20:50 -08:00
|
|
|
|
2014-01-18 08:49:59 -08:00
|
|
|
makeFlags = [
|
2015-05-20 00:26:12 -07:00
|
|
|
"PREFIX=\${out}"
|
2019-11-03 02:24:57 -08:00
|
|
|
"HOSTCC=${buildPackages.stdenv.cc.targetPrefix}cc"
|
|
|
|
"CROSS_COMPILE=${stdenv.cc.targetPrefix}"
|
|
|
|
];
|
2012-03-13 18:23:31 -07:00
|
|
|
|
2021-01-21 09:00:13 -08:00
|
|
|
meta = with lib; {
|
2014-06-18 17:39:47 -07:00
|
|
|
description = "GNU EFI development toolchain";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://sourceforge.net/projects/gnu-efi/";
|
2014-06-18 17:39:47 -07:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2012-03-13 18:23:31 -07:00
|
|
|
}
|