aports/main/efitools/fix-build-on-aarch64.patch
Kevin Daudt c20e819e70 main/efitools: fix build on aarch64 with gnu-efi >= 3.0.17
Fails to build with: "Invalid DOS header magic". This fix was suggested
in https://github.com/ncroxon/gnu-efi/issues/7#issuecomment-2122741592.

> Removing the aarch64 section will fix the issue as it defaults to
> objcopy
2024-10-17 12:56:36 +00:00

20 lines
571 B
Diff

Description: build fails on aarch64 with: "Invalid DOS header magic". Project is
not maintained anymore, but this fix was suggested in
https://github.com/ncroxon/gnu-efi/issues/7#issuecomment-2122741592
Upstream: no
diff --git a/Make.rules b/Make.rules
index c8a3ddc..2711cc6 100644
--- a/Make.rules
+++ b/Make.rules
@@ -53,11 +53,6 @@ ifeq ($(ARCH),arm)
FORMAT = -O binary
endif
-ifeq ($(ARCH),aarch64)
- LDFLAGS += --defsym=EFI_SUBSYSTEM=0x0a
- FORMAT = -O binary
-endif
-
ifeq ($(ARCH),riscv64)
LDFLAGS += --defsym=EFI_SUBSYSTEM=0x0a
FORMAT = -O binary