From 3396b3a12e49877869d943a3d32893519c69d1e7 Mon Sep 17 00:00:00 2001 From: maqi Date: Tue, 4 Mar 2025 14:12:43 +0800 Subject: [PATCH] add sw_64 support (cherry picked from commit 726c29769255c04555f276d4f21dfe5360c7f8bc) --- 0001-add-sw_64-support-for-grubby.patch | 12 ++++++++++++ grubby.spec | 6 +++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 0001-add-sw_64-support-for-grubby.patch diff --git a/0001-add-sw_64-support-for-grubby.patch b/0001-add-sw_64-support-for-grubby.patch new file mode 100644 index 0000000..2926e18 --- /dev/null +++ b/0001-add-sw_64-support-for-grubby.patch @@ -0,0 +1,12 @@ +diff -Nuar grubby-8.40-1/grubby.c grubby-8.40-1-new/grubby.c +--- grubby-8.40-1/grubby.c 2024-09-09 17:52:12.702785049 +0800 ++++ grubby-8.40-1-new/grubby.c 2024-09-09 17:51:22.062183169 +0800 +@@ -60,7 +60,7 @@ + + int isEfi = 0; + +-#if defined(__aarch64__) || (__loongarch64) ++#if defined(__aarch64__) || (__loongarch64) || defined(__sw_64__) + #define isEfiOnly 1 + #elif (defined(__riscv) && (__riscv_xlen == 64)) + #define isEfiOnly 1 diff --git a/grubby.spec b/grubby.spec index a587829..cf48489 100644 --- a/grubby.spec +++ b/grubby.spec @@ -1,6 +1,6 @@ Name: grubby Version: 8.40 -Release: 34 +Release: 35 Summary: Update and display information about the configuration files License: GPLv2+ URL: https://github.com/rhinstaller/grubby @@ -39,6 +39,7 @@ Patch9003: grubby-aarch64-skip-test-grub2.15.patch Patch9004: support-specify-cc.patch Patch9005: 0001-add-riscv64-support.patch Patch9006: grubby-8.40-After-opening-the-manual-through-man-the-symbol-cann.patch +Patch9007: 0001-add-sw_64-support-for-grubby.patch BuildRequires: gcc pkgconfig glib2-devel popt-devel BuildRequires: libblkid-devel git-core sed make @@ -117,6 +118,9 @@ sed -e "s,@@LIBEXECDIR@@,%{_libexecdir}/installkernel,g" %{SOURCE3} > %{buildroo %{_mandir}/man8/*.8* %changelog +* Tue Mar 04 2025 maqi - 8.40-35 +- add sw_64 support + * Thu Sep 19 2024 yueyuankun - 8.40-34 - Fix man manual unable to recognize '-'