forked from pool/grub2
Accepting request 741725 from home:Andreas_Schwab:Factory
- Enable support for riscv64 - Backports from upstream: * risc-v-fix-computation-of-pc-relative-relocation-offset.patch * risc-v-add-clzdi2-symbol.patch * grub-install-define-default-platform-for-risc-v.patch OBS-URL: https://build.opensuse.org/request/show/741725 OBS-URL: https://build.opensuse.org/package/show/Base:System/grub2?expand=0&rev=341
This commit is contained in:
21
grub2.spec
21
grub2.spec
@@ -101,11 +101,17 @@ BuildRequires: update-bootloader-rpm-macros
|
||||
%define only_efi 1
|
||||
%endif
|
||||
|
||||
%ifarch riscv64
|
||||
%define grubcpu riscv64
|
||||
%define platform efi
|
||||
%define only_efi 1
|
||||
%endif
|
||||
|
||||
%define grubarch %{grubcpu}-%{platform}
|
||||
|
||||
# build efi bootloader on some platforms only:
|
||||
%if ! 0%{?efi:1}
|
||||
%global efi %{ix86} x86_64 ia64 aarch64 %{arm}
|
||||
%global efi %{ix86} x86_64 ia64 aarch64 %{arm} riscv64
|
||||
%endif
|
||||
|
||||
%ifarch %{efi}
|
||||
@@ -277,6 +283,10 @@ Patch501: grub2-btrfs-help-on-snapper-rollback.patch
|
||||
Patch510: grub2-video-limit-the-resolution-for-fixed-bimap-font.patch
|
||||
# Support long menuentries (FATE#325760)
|
||||
Patch511: grub2-gfxmenu-support-scrolling-menu-entry-s-text.patch
|
||||
# RISC-V fixes
|
||||
Patch601: risc-v-fix-computation-of-pc-relative-relocation-offset.patch
|
||||
Patch602: risc-v-add-clzdi2-symbol.patch
|
||||
Patch603: grub-install-define-default-platform-for-risc-v.patch
|
||||
|
||||
Requires: gettext-runtime
|
||||
%if 0%{?suse_version} >= 1140
|
||||
@@ -310,7 +320,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?only_x86_64:1}
|
||||
ExclusiveArch: x86_64
|
||||
%else
|
||||
ExclusiveArch: %{ix86} x86_64 ppc ppc64 ppc64le s390x aarch64 %{arm}
|
||||
ExclusiveArch: %{ix86} x86_64 ppc ppc64 ppc64le s390x aarch64 %{arm} riscv64
|
||||
%endif
|
||||
|
||||
%description
|
||||
@@ -371,10 +381,10 @@ provides support for %{platform} systems.
|
||||
%package %{grubefiarch}
|
||||
|
||||
Summary: Bootloader with support for Linux, Multiboot and more
|
||||
# Require efibootmgr
|
||||
# Without it grub-install is broken so break the package as well if unavailable
|
||||
Group: System/Boot
|
||||
BuildArch: noarch
|
||||
# Require efibootmgr
|
||||
# Without it grub-install is broken so break the package as well if unavailable
|
||||
Requires: efibootmgr
|
||||
Requires(post): efibootmgr
|
||||
Requires: %{name} = %{version}
|
||||
@@ -541,6 +551,9 @@ swap partition while in resuming
|
||||
%patch501 -p1
|
||||
%patch510 -p1
|
||||
%patch511 -p1
|
||||
%patch601 -p1
|
||||
%patch602 -p1
|
||||
%patch603 -p1
|
||||
|
||||
%build
|
||||
# collect evidence to debug spurious build failure on SLE15
|
||||
|
Reference in New Issue
Block a user