From a064672857b6dc7258a470c77b65ee67f22d5f5c Mon Sep 17 00:00:00 2001 From: peng_zou Date: Tue, 25 Jun 2024 14:40:36 +0800 Subject: [PATCH] add support for ppc64le (cherry picked from commit b4e3f33334d50d143781e09d69171aaf786e30a4) --- grub2.spec | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/grub2.spec b/grub2.spec index 3c036e8..7d216e4 100644 --- a/grub2.spec +++ b/grub2.spec @@ -14,7 +14,7 @@ Name: grub2 Epoch: 1 Version: 2.12 -Release: 19 +Release: 20 Summary: Bootloader with support for Linux, Multiboot and more License: GPLv3+ URL: http://www.gnu.org/software/grub/ @@ -182,6 +182,10 @@ git add grub-core/tests/lib/functional_test.c git commit -m "Disable partial grub_func_test cases" %build +%ifarch ppc64le +export CFLAGS="$CFLAGS -fno-stack-protector" +%endif + %if 0%{with_efi_arch} %{expand:%do_primary_efi_build %%{grubefiarch} %%{grubefiname} %%{grubeficdname} %%{_target_platform} %%{efi_target_cflags} %%{efi_host_cflags}} %endif @@ -206,6 +210,9 @@ mv %{_builddir}/grub-%{version}/grub-%{grubefiarch}-%{tarversion}/%{grubeficdnam %endif %check +%ifarch ppc64le +%global grubefiarch powerpc-ieee1275 +%endif pushd %{_builddir}/%{?buildsubdir}/grub-%{grubefiarch}-%{tarversion}/grub-core make check popd @@ -447,6 +454,12 @@ fi %{_datadir}/man/man* %changelog +* Tue Jun 25 2024 peng.zou - 1:2.12-20 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:add support for ppc64le + * Mon Jun 24 2024 zhangqiumiao - 1:2.12-19 - Type:bugfix - CVE:NA -- Gitee