From f9b727bd5deb473390a9047254290e9d858aa84f Mon Sep 17 00:00:00 2001 From: Wenlong Zhang Date: Tue, 29 Oct 2024 15:55:13 +0800 Subject: [PATCH] fix build error on loongarch64 --- fix-build-error-on-loongarch64.patch | 24 ++++++++++++++++++++++++ gnu-efi.spec | 6 +++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 fix-build-error-on-loongarch64.patch diff --git a/fix-build-error-on-loongarch64.patch b/fix-build-error-on-loongarch64.patch new file mode 100644 index 0000000..06071e9 --- /dev/null +++ b/fix-build-error-on-loongarch64.patch @@ -0,0 +1,24 @@ +From f3c15c5709b8addce307f534725ab7e127e6b990 Mon Sep 17 00:00:00 2001 +From: Wenlong Zhang +Date: Tue, 29 Oct 2024 15:49:54 +0800 +Subject: [PATCH] fix build error on loongarch64 + +--- + Make.defaults | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/Make.defaults b/Make.defaults +index 434a44e..68c4a7e 100755 +--- a/Make.defaults ++++ b/Make.defaults +@@ -152,6 +152,7 @@ endif + ifeq ($(ARCH),loongarch64) + CFLAGS += -march=loongarch64 + ARCH3264 = -mabi=lp64d ++ LDFLAGS += --no-warn-rwx-segments + endif + + # +-- +2.43.0 + diff --git a/gnu-efi.spec b/gnu-efi.spec index 7006c40..3ac89d4 100644 --- a/gnu-efi.spec +++ b/gnu-efi.spec @@ -1,7 +1,7 @@ %define debug_package %{nil} Name: gnu-efi Version: 3.0.17 -Release: 7 +Release: 8 Summary: Development Libraries and headers for EFI Epoch: 1 License: BSD @@ -15,6 +15,7 @@ Patch1: 0001-gnu-efi-add-CHAR16-for-loongarch64.patch %ifarch riscv64 Patch2: riscv64-fix-efibind.h-missing-duplicate-types.patch %endif +Patch3: fix-build-error-on-loongarch64.patch %global efidir %(eval echo $(grep ^ID= /etc/os-release | sed 's/^ID=//')) @@ -78,6 +79,9 @@ mv %{efiarch}/apps/{route80h.efi,modelist.efi} %{buildroot}/boot/efi/EFI/%{efidi %{_includedir}/efi %changelog +* Tue Oct 29 2024 Wenlong Zhang - 1:3.0.17-8 +- fix build error on loongarch64 + * Mon Apr 08 2024 wulei - 1:3.0.17-7 - Remove ia32 architecture -- Gitee