!427 add support for ppc64le
From: @peng_zou Reviewed-by: @t_feng Signed-off-by: @t_feng
This commit is contained in:
commit
bd39ff1c37
15
grub2.spec
15
grub2.spec
@ -14,7 +14,7 @@
|
|||||||
Name: grub2
|
Name: grub2
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 2.12
|
Version: 2.12
|
||||||
Release: 19
|
Release: 20
|
||||||
Summary: Bootloader with support for Linux, Multiboot and more
|
Summary: Bootloader with support for Linux, Multiboot and more
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: http://www.gnu.org/software/grub/
|
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"
|
git commit -m "Disable partial grub_func_test cases"
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%ifarch ppc64le
|
||||||
|
export CFLAGS="$CFLAGS -fno-stack-protector"
|
||||||
|
%endif
|
||||||
|
|
||||||
%if 0%{with_efi_arch}
|
%if 0%{with_efi_arch}
|
||||||
%{expand:%do_primary_efi_build %%{grubefiarch} %%{grubefiname} %%{grubeficdname} %%{_target_platform} %%{efi_target_cflags} %%{efi_host_cflags}}
|
%{expand:%do_primary_efi_build %%{grubefiarch} %%{grubefiname} %%{grubeficdname} %%{_target_platform} %%{efi_target_cflags} %%{efi_host_cflags}}
|
||||||
%endif
|
%endif
|
||||||
@ -206,6 +210,9 @@ mv %{_builddir}/grub-%{version}/grub-%{grubefiarch}-%{tarversion}/%{grubeficdnam
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%ifarch ppc64le
|
||||||
|
%global grubefiarch powerpc-ieee1275
|
||||||
|
%endif
|
||||||
pushd %{_builddir}/%{?buildsubdir}/grub-%{grubefiarch}-%{tarversion}/grub-core
|
pushd %{_builddir}/%{?buildsubdir}/grub-%{grubefiarch}-%{tarversion}/grub-core
|
||||||
make check
|
make check
|
||||||
popd
|
popd
|
||||||
@ -447,6 +454,12 @@ fi
|
|||||||
%{_datadir}/man/man*
|
%{_datadir}/man/man*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Jun 24 2024 zhangqiumiao <zhangqiumiao1@huawei.com> - 1:2.12-19
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- CVE:NA
|
- CVE:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user