!57 [sync] PR-56: add riscv64 support
From: @openeuler-sync-bot Reviewed-by: @dillon_chen, @disnight Signed-off-by: @dillon_chen, @disnight
This commit is contained in:
commit
473d0f4ca9
25
0001-add-riscv64-support.patch
Normal file
25
0001-add-riscv64-support.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From 7f09aab493a7b74c4cac9a2f7c51f0da2945a7fb Mon Sep 17 00:00:00 2001
|
||||||
|
From: ouuleilei <wangliu@iscas.ac.cn>
|
||||||
|
Date: Sat, 11 May 2024 14:31:01 +0800
|
||||||
|
Subject: [PATCH] add riscv64 support
|
||||||
|
|
||||||
|
---
|
||||||
|
grubby.c | 2 ++
|
||||||
|
1 file changed, 2 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/grubby.c b/grubby.c
|
||||||
|
index 12db06d..a96eb42 100644
|
||||||
|
--- a/grubby.c
|
||||||
|
+++ b/grubby.c
|
||||||
|
@@ -62,6 +62,8 @@ int isEfi = 0;
|
||||||
|
|
||||||
|
#if defined(__aarch64__) || (__loongarch64)
|
||||||
|
#define isEfiOnly 1
|
||||||
|
+#elif (defined(__riscv) && (__riscv_xlen == 64))
|
||||||
|
+#define isEfiOnly 1
|
||||||
|
#else
|
||||||
|
#define isEfiOnly 0
|
||||||
|
#endif
|
||||||
|
--
|
||||||
|
2.41.0
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: grubby
|
Name: grubby
|
||||||
Version: 8.40
|
Version: 8.40
|
||||||
Release: 32
|
Release: 33
|
||||||
Summary: Update and display information about the configuration files
|
Summary: Update and display information about the configuration files
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: https://github.com/rhinstaller/grubby
|
URL: https://github.com/rhinstaller/grubby
|
||||||
@ -37,6 +37,7 @@ Patch9001: fix-make-test-fail-when-no-boot-partition.patch
|
|||||||
Patch9002: 0001-add-loongarch-support-for-grubby.patch
|
Patch9002: 0001-add-loongarch-support-for-grubby.patch
|
||||||
Patch9003: grubby-aarch64-skip-test-grub2.15.patch
|
Patch9003: grubby-aarch64-skip-test-grub2.15.patch
|
||||||
Patch9004: support-specify-cc.patch
|
Patch9004: support-specify-cc.patch
|
||||||
|
Patch9005: 0001-add-riscv64-support.patch
|
||||||
|
|
||||||
BuildRequires: gcc pkgconfig glib2-devel popt-devel
|
BuildRequires: gcc pkgconfig glib2-devel popt-devel
|
||||||
BuildRequires: libblkid-devel git-core sed make
|
BuildRequires: libblkid-devel git-core sed make
|
||||||
@ -115,6 +116,9 @@ sed -e "s,@@LIBEXECDIR@@,%{_libexecdir}/installkernel,g" %{SOURCE3} > %{buildroo
|
|||||||
%{_mandir}/man8/*.8*
|
%{_mandir}/man8/*.8*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri May 10 2024 ouuleilei <wangliu@iscas.ac.cn> - 8.40-33
|
||||||
|
- add riscv64 support
|
||||||
|
|
||||||
* Fri Apr 14 2023 jammyjellyfish <jammyjellyfish255@outlook.com> - 8.40-32
|
* Fri Apr 14 2023 jammyjellyfish <jammyjellyfish255@outlook.com> - 8.40-32
|
||||||
- Support build with clang
|
- Support build with clang
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user