add support for ppc64le
This commit is contained in:
parent
2529742a62
commit
b4e3f33334
15
grub2.spec
15
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 <peng.zou@shingroup.cn> - 1:2.12-20
|
||||
- Type:bugfix
|
||||
- CVE:NA
|
||||
- SUG:NA
|
||||
- DESC:add support for ppc64le
|
||||
|
||||
* Mon Jun 24 2024 zhangqiumiao <zhangqiumiao1@huawei.com> - 1:2.12-19
|
||||
- Type:bugfix
|
||||
- CVE:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user