forked from pool/grub2
Accepting request 286283 from home:michael-chang:boo891043
- enable i386-xen (boo#891043) OBS-URL: https://build.opensuse.org/request/show/286283 OBS-URL: https://build.opensuse.org/package/show/Base:System/grub2?expand=0&rev=141
This commit is contained in:
parent
cbda9231ca
commit
798b8c25e4
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 5 09:37:46 UTC 2015 - mchang@suse.com
|
||||||
|
|
||||||
|
- enable i386-xen (boo#891043)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Feb 4 07:43:27 UTC 2015 - mchang@suse.com
|
Wed Feb 4 07:43:27 UTC 2015 - mchang@suse.com
|
||||||
|
|
||||||
|
34
grub2.spec
34
grub2.spec
@ -55,6 +55,8 @@ BuildRequires: xz-devel
|
|||||||
BuildRequires: openssl >= 0.9.8
|
BuildRequires: openssl >= 0.9.8
|
||||||
BuildRequires: pesign-obs-integration
|
BuildRequires: pesign-obs-integration
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
|
%ifarch %{ix86} x86_64
|
||||||
BuildRequires: xen-devel
|
BuildRequires: xen-devel
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -107,6 +109,14 @@ BuildRequires: xen-devel
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%ifarch %{ix86}
|
||||||
|
%define grubxenarch i386-xen
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%ifarch x86_64
|
||||||
|
%define grubxenarch x86_64-xen
|
||||||
|
%endif
|
||||||
|
|
||||||
%if 0%{?suse_version} == 1110
|
%if 0%{?suse_version} == 1110
|
||||||
%define only_efi %{nil}
|
%define only_efi %{nil}
|
||||||
%define only_x86_64 %{nil}
|
%define only_x86_64 %{nil}
|
||||||
@ -306,16 +316,16 @@ provides support for EFI systems.
|
|||||||
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%ifarch x86_64
|
%ifarch %{ix86} x86_64
|
||||||
|
|
||||||
%package %{_target_cpu}-xen
|
%package %{grubxenarch}
|
||||||
|
|
||||||
Summary: Bootloader with support for Linux, Multiboot and more
|
Summary: Bootloader with support for Linux, Multiboot and more
|
||||||
Group: System/Boot
|
Group: System/Boot
|
||||||
Provides: %{name}-xen = %{version}-%{release}
|
Provides: %{name}-xen = %{version}-%{release}
|
||||||
Obsoletes: %{name}-xen < %{version}-%{release}
|
Obsoletes: %{name}-xen < %{version}-%{release}
|
||||||
|
|
||||||
%description %{_target_cpu}-xen
|
%description %{grubxenarch}
|
||||||
The GRand Unified Bootloader (GRUB) is a highly configurable and customizable
|
The GRand Unified Bootloader (GRUB) is a highly configurable and customizable
|
||||||
bootloader with modular architecture. It supports rich variety of kernel formats,
|
bootloader with modular architecture. It supports rich variety of kernel formats,
|
||||||
file systems, computer architectures and hardware devices. This subpackage
|
file systems, computer architectures and hardware devices. This subpackage
|
||||||
@ -433,7 +443,7 @@ mkdir build
|
|||||||
%ifarch %{efi}
|
%ifarch %{efi}
|
||||||
mkdir build-efi
|
mkdir build-efi
|
||||||
%endif
|
%endif
|
||||||
%ifarch x86_64
|
%ifarch %{ix86} x86_64
|
||||||
mkdir build-xen
|
mkdir build-xen
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -452,7 +462,7 @@ FFLAGS=" "
|
|||||||
export CFLAGS CXXFLAGS FFLAGS
|
export CFLAGS CXXFLAGS FFLAGS
|
||||||
export HOST_CFLAGS=$RPM_OPT_FLAGS
|
export HOST_CFLAGS=$RPM_OPT_FLAGS
|
||||||
|
|
||||||
%ifarch x86_64
|
%ifarch %{ix86} x86_64
|
||||||
cd build-xen
|
cd build-xen
|
||||||
../configure \
|
../configure \
|
||||||
TARGET_LDFLAGS=-static \
|
TARGET_LDFLAGS=-static \
|
||||||
@ -478,7 +488,7 @@ elif search -s root -f /boot/grub/menu.lst ; then
|
|||||||
legacy_configfile /boot/grub/menu.lst
|
legacy_configfile /boot/grub/menu.lst
|
||||||
fi
|
fi
|
||||||
EOF
|
EOF
|
||||||
./grub-mkstandalone --grub-mkimage=./grub-mkimage -o grub.xen -O %{_target_cpu}-xen -d grub-core/ "/boot/grub/grub.cfg=./grub.cfg"
|
./grub-mkstandalone --grub-mkimage=./grub-mkimage -o grub.xen -O %{grubxenarch} -d grub-core/ "/boot/grub/grub.cfg=./grub.cfg"
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
%endif
|
%endif
|
||||||
@ -576,10 +586,10 @@ make %{?_smp_mflags}
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
|
|
||||||
%ifarch x86_64
|
%ifarch %{ix86} x86_64
|
||||||
cd build-xen
|
cd build-xen
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||||||
install -m 644 grub.xen $RPM_BUILD_ROOT%{_libdir}/%{name}/%{_target_cpu}-xen/.
|
install -m 644 grub.xen $RPM_BUILD_ROOT%{_libdir}/%{name}/%{grubxenarch}/.
|
||||||
cd ..
|
cd ..
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -943,10 +953,10 @@ fi
|
|||||||
%config %{_sysconfdir}/grub.d/80_suse_btrfs_snapshot
|
%config %{_sysconfdir}/grub.d/80_suse_btrfs_snapshot
|
||||||
%{_libdir}/snapper/plugins/grub
|
%{_libdir}/snapper/plugins/grub
|
||||||
|
|
||||||
%ifarch x86_64
|
%ifarch %{ix86} x86_64
|
||||||
%files %{_target_cpu}-xen
|
%files %{grubxenarch}
|
||||||
%dir %{_libdir}/%{name}/%{_target_cpu}-xen
|
%dir %{_libdir}/%{name}/%{grubxenarch}
|
||||||
%{_libdir}/%{name}/%{_target_cpu}-xen/*
|
%{_libdir}/%{name}/%{grubxenarch}/*
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user