efitools: patch make output parameter name

Patch the Make.rules to use --output-target instead of --target

https://bugs.debian.org/1122408
This commit is contained in:
Conor Knowles
2026-04-28 22:47:28 +01:00
parent be1a18a509
commit 7b4a250d71
2 changed files with 18 additions and 0 deletions
@@ -0,0 +1,15 @@
Use --output-target instead of --target in objcopy invocation.
Newer binutils dropped support for --target as an output format specifier.
Bug-Debian: https://bugs.debian.org/1122408
--- a/Make.rules
+++ b/Make.rules
@@ -26,7 +26,7 @@
LDSCRIPT = elf_$(ARCH)_efi.lds
LDFLAGS += -shared -Bsymbolic $(CRTOBJS) -L $(CRTPATH) -L /usr/lib -L /usr/lib64 -T $(LDSCRIPT)
LOADLIBES = -lefi -lgnuefi $(shell $(CC) $(ARCH3264) -print-libgcc-file-name)
-FORMAT = --target=efi-app-$(ARCH)
+FORMAT = --output-target=efi-app-$(ARCH)
OBJCOPY = objcopy
MYGUID = 11111111-2222-3333-4444-123456789abc
INSTALL = install
+3
View File
@@ -36,6 +36,9 @@ stdenv.mkDerivation (finalAttrs: {
# Fix build with gcc15
./remove-redundant-bool.patch
# https://bugs.debian.org/1122408
./objcopy-output-target.patch
];
postPatch = ''