From f842b0976ebdd47adb3570121fa64830d864ff51 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Nov 17 2017 08:27:35 +0000 Subject: Disable cross compilation for RHEL --- diff --git a/SLOF.spec b/SLOF.spec index 7d9aa69..44798e9 100644 --- a/SLOF.spec +++ b/SLOF.spec @@ -1,14 +1,21 @@ %global gittagdate 20170724 %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 Version: 0.1.git%{gittagdate} -Release: 1%{?dist} +Release: 2%{?dist} Summary: Slimline Open Firmware License: BSD URL: http://www.openfirmware.info/SLOF -BuildArch: noarch + # There are no upstream tarballs. To prepare a tarball, do: # @@ -18,7 +25,13 @@ BuildArch: noarch # --prefix=SLOF-%{gittagdate}/ %{gittag} Source0: SLOF-%{gittagdate}.tar.gz +%if 0%{?cross:1} +BuildArch: noarch BuildRequires: gcc-powerpc64-linux-gnu +%else +ExclusiveArch: ppc64le +%endif + BuildRequires: perl(Data::Dumper) @@ -40,7 +53,9 @@ separately. It is a dependency of qemu-system-ppc64. %build +%if 0%{?cross:1} export CROSS="powerpc64-linux-gnu-" +%endif make qemu %{?_smp_mflags} V=2 @@ -58,6 +73,9 @@ cp -a boot_rom.bin $RPM_BUILD_ROOT%{_datadir}/qemu/slof.bin %changelog +* Fri Nov 17 2017 Paolo Bonzini - 0.1.git120170724-2 +- Disable cross compilation for RHEL + * Thu Aug 03 2017 Cole Robinson - 0.1.git120170724-1 - Update to SLOF 20170724 for qemu 2.10