fix build error on loongarch64
This commit is contained in:
parent
2cd841069c
commit
f9b727bd5d
24
fix-build-error-on-loongarch64.patch
Normal file
24
fix-build-error-on-loongarch64.patch
Normal 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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user