!20 add loongarch support for grubby

From: @zhangwenlong01 
Reviewed-by: @lvying6 
Signed-off-by: @lvying6
This commit is contained in:
openeuler-ci-bot 2022-11-24 11:27:12 +00:00 committed by Gitee
commit b82a045ea7
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 d62aafe2f5b72dcaae95fa26433eed264fa68f84 Mon Sep 17 00:00:00 2001
From: Wenlong Zhang <zhangwenlong@loongson.cn>
Date: Tue, 25 Oct 2022 01:42:40 +0000
Subject: [PATCH] add loongarch support for grubby, Only EFI startup is supported for loongarch64
---
grubby.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/grubby.c b/grubby.c
index 74befea..ea3a636 100644
--- a/grubby.c
+++ b/grubby.c
@@ -60,7 +60,7 @@ int debug = 0; /* Currently just for template debugging */
int isEfi = 0;
-#if defined(__aarch64__)
+#if defined(__aarch64__) || (__loongarch64)
#define isEfiOnly 1
#else
#define isEfiOnly 0
--
2.33.0

View File

@ -1,6 +1,6 @@
Name: grubby
Version: 8.40
Release: 29
Release: 30
Summary: Update and display information about the configuration files
License: GPLv2+
URL: https://github.com/rhinstaller/grubby
@ -35,6 +35,7 @@ Patch6017: backport-Fix-maybe-uninitialized-warning.patch
Patch9001: fix-make-test-fail-when-no-boot-partition.patch
Patch9002: Fix-make-test-fail-for-g2-1.15.patch
Patch9003: 0001-add-loongarch-support-for-grubby.patch
BuildRequires: gcc pkgconfig glib2-devel popt-devel
BuildRequires: libblkid-devel git-core sed make
@ -109,6 +110,9 @@ sed -e "s,@@LIBEXECDIR@@,%{_libexecdir}/installkernel,g" %{SOURCE3} > %{buildroo
%{_mandir}/man8/*.8*
%changelog
* Tue Nov 01 2022 Wenlong Zhang <zhangwenlong@loongson.cn> - 8.40-30
- add loongarch support for grubby
* Wed Oct 26 2022 yanglongkang <yanglongkang@h-partners.com> - 8.40-29
- rebuild for next release