Files
nixpkgs/pkgs/by-name/ef/efitools/objcopy-output-target.patch
Conor Knowles 7b4a250d71 efitools: patch make output parameter name
Patch the Make.rules to use --output-target instead of --target

https://bugs.debian.org/1122408
2026-05-01 21:52:46 +01:00

16 lines
611 B
Diff

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