!41 fix build error on loongarch64

From: @zhangwenlong01 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
This commit is contained in:
openeuler-ci-bot 2024-10-30 03:12:32 +00:00 committed by Gitee
commit b574829474
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 29 additions and 1 deletions

View File

@ -0,0 +1,24 @@
From f3c15c5709b8addce307f534725ab7e127e6b990 Mon Sep 17 00:00:00 2001
From: Wenlong Zhang <zhangwenlong@loongson.cn>
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

View File

@ -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 <zhangwenlong@loongson.cn> - 1:3.0.17-8
- fix build error on loongarch64
* Mon Apr 08 2024 wulei <wu_lei@hoperun.com> - 1:3.0.17-7
- Remove ia32 architecture