From: Quirin Gylstorff <
quirin.g...@siemens.com>
This fixes an build error due to:
* Internal changes to plugin support, and stricter target checking may result
in some errors being exposed in user options passed to the various binutils.
For example objcopy --target=TARGET now will only work if the input file is
for TARGET whereas prior versions of objcopy accepted other target input
files and produced a TARGET output. If you do in fact want the old
behaviour the correct usage is objcopy --output-target=TARGET.
See also Debian bug #1122406.
Signed-off-by: Quirin Gylstorff <
quirin.g...@siemens.com>
---
Makefile.am | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index c7aed67..bfe5753 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -299,13 +299,13 @@ efi_ldflags = \
$(GNUEFI_LIB_DIR)/crt0-efi-$(ARCH).o
if ARCH_IS_X86
-objcopy_format = --target=efi-app-$(ARCH)
+objcopy_format = --output-target=efi-app-$(ARCH)
else
if OBJCOPY_USE_BINARY_COPY
objcopy_format = -O binary
efi_ldflags += --defsym=EFI_SUBSYSTEM=0xa
else
-objcopy_format = --target=efi-app-$(ARCH)
+objcopy_format = --output-target=efi-app-$(ARCH)
endif
endif
--
2.51.2