Merge pull request #313431 from wegank/gnu-efi-bump
gnu-efi: 3.0.15 -> 3.0.18
This commit is contained in:
commit
652e207126
@ -1,13 +1,15 @@
|
||||
{ lib, stdenv, buildPackages, fetchurl, pciutils
|
||||
{ lib, stdenv, buildPackages, fetchFromGitHub, pciutils
|
||||
, gitUpdater }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gnu-efi";
|
||||
version = "3.0.15";
|
||||
version = "3.0.18";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/gnu-efi/${pname}-${version}.tar.bz2";
|
||||
hash = "sha256-kxole5xcG6Zf9Rnxg3PEOKJoJfLbeGaxY+ltGxaPIOo=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "ncroxon";
|
||||
repo = "gnu-efi";
|
||||
rev = version;
|
||||
hash = "sha256-xtiKglLXm9m4li/8tqbOsyM6ThwGhyu/g4kw5sC4URY=";
|
||||
};
|
||||
|
||||
buildInputs = [ pciutils ];
|
||||
|
@ -19,14 +19,6 @@ stdenv.mkDerivation rec {
|
||||
hash = "sha256-r9CAWirQgafK/y71vABM46AUe1OAFejsqWY0FxaxJg4=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/fwupd/fwupd-efi/commit/26c6ec5c1e7765fb5dc6a4df511ab21ee6c6e67a.patch";
|
||||
revert = true;
|
||||
hash = "sha256-vTdYExd7OlrrZ/LhlEO1zcvpKzeT5OeOeosD8/LUkMg=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
|
16
pkgs/tools/security/efitools/aarch64.patch
Normal file
16
pkgs/tools/security/efitools/aarch64.patch
Normal file
@ -0,0 +1,16 @@
|
||||
diff --git a/Make.rules b/Make.rules
|
||||
index 903a5a4..59eca2f 100644
|
||||
--- a/Make.rules
|
||||
+++ b/Make.rules
|
||||
@@ -51,11 +51,6 @@ ifeq ($(ARCH),arm)
|
||||
FORMAT = -O binary
|
||||
endif
|
||||
|
||||
-ifeq ($(ARCH),aarch64)
|
||||
- LDFLAGS += --defsym=EFI_SUBSYSTEM=0x0a
|
||||
- FORMAT = -O binary
|
||||
-endif
|
||||
-
|
||||
%.efi: %.so
|
||||
$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic -j .dynsym \
|
||||
-j .rel -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* \
|
@ -21,6 +21,11 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0jabgl2pxvfl780yvghq131ylpf82k7banjz0ksjhlm66ik8gb1i";
|
||||
};
|
||||
|
||||
# https://github.com/ncroxon/gnu-efi/issues/7#issuecomment-2122741592
|
||||
patches = [
|
||||
./aarch64.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
sed -i -e 's#/usr/include/efi#${gnu-efi}/include/efi/#g' Make.rules
|
||||
sed -i -e 's#/usr/lib64/gnuefi#${gnu-efi}/lib/#g' Make.rules
|
||||
|
Loading…
Reference in New Issue
Block a user