Disable cross compilation for RHEL

This commit is contained in:
Paolo Bonzini 2017-11-17 09:26:03 +01:00
parent a59e184427
commit f842b0976e

View File

@ -1,14 +1,21 @@
%global gittagdate 20170724 %global gittagdate 20170724
%global gittag qemu-slof-%{gittagdate} %global gittag qemu-slof-%{gittagdate}
# Disable debuginfo because it is of no use to us.
%global debug_package %{nil}
%if 0%{?fedora:1}
%define cross 1
%endif
Name: SLOF Name: SLOF
Version: 0.1.git%{gittagdate} Version: 0.1.git%{gittagdate}
Release: 1%{?dist} Release: 2%{?dist}
Summary: Slimline Open Firmware Summary: Slimline Open Firmware
License: BSD License: BSD
URL: http://www.openfirmware.info/SLOF URL: http://www.openfirmware.info/SLOF
BuildArch: noarch
# There are no upstream tarballs. To prepare a tarball, do: # There are no upstream tarballs. To prepare a tarball, do:
# #
@ -18,7 +25,13 @@ BuildArch: noarch
# --prefix=SLOF-%{gittagdate}/ %{gittag} # --prefix=SLOF-%{gittagdate}/ %{gittag}
Source0: SLOF-%{gittagdate}.tar.gz Source0: SLOF-%{gittagdate}.tar.gz
%if 0%{?cross:1}
BuildArch: noarch
BuildRequires: gcc-powerpc64-linux-gnu BuildRequires: gcc-powerpc64-linux-gnu
%else
ExclusiveArch: ppc64le
%endif
BuildRequires: perl(Data::Dumper) BuildRequires: perl(Data::Dumper)
@ -40,7 +53,9 @@ separately. It is a dependency of qemu-system-ppc64.
%build %build
%if 0%{?cross:1}
export CROSS="powerpc64-linux-gnu-" export CROSS="powerpc64-linux-gnu-"
%endif
make qemu %{?_smp_mflags} V=2 make qemu %{?_smp_mflags} V=2
@ -58,6 +73,9 @@ cp -a boot_rom.bin $RPM_BUILD_ROOT%{_datadir}/qemu/slof.bin
%changelog %changelog
* Fri Nov 17 2017 Paolo Bonzini <pbonzini@redhat.com> - 0.1.git120170724-2
- Disable cross compilation for RHEL
* Thu Aug 03 2017 Cole Robinson <crobinso@redhat.com> - 0.1.git120170724-1 * Thu Aug 03 2017 Cole Robinson <crobinso@redhat.com> - 0.1.git120170724-1
- Update to SLOF 20170724 for qemu 2.10 - Update to SLOF 20170724 for qemu 2.10