!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:
openeuler-ci-bot 2024-05-13 08:52:01 +00:00 committed by Gitee
commit 473d0f4ca9
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 30 additions and 1 deletions

View 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

View File

@ -1,6 +1,6 @@
Name: grubby
Version: 8.40
Release: 32
Release: 33
Summary: Update and display information about the configuration files
License: GPLv2+
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
Patch9003: grubby-aarch64-skip-test-grub2.15.patch
Patch9004: support-specify-cc.patch
Patch9005: 0001-add-riscv64-support.patch
BuildRequires: gcc pkgconfig glib2-devel popt-devel
BuildRequires: libblkid-devel git-core sed make
@ -115,6 +116,9 @@ sed -e "s,@@LIBEXECDIR@@,%{_libexecdir}/installkernel,g" %{SOURCE3} > %{buildroo
%{_mandir}/man8/*.8*
%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
- Support build with clang