9d9b498
%undefine _auto_set_build_flags
9d9b498
e799439
%global gittagdate 20210217
e799439
%global gittagcommit 33a7322d
8accd3f
f842b09
# Disable debuginfo because it is of no use to us.
f842b09
%global debug_package %{nil}
f842b09
f842b09
%if 0%{?fedora:1}
f842b09
%define cross 1
4f91164
%define targetdir qemu
4f91164
%else
4f91164
%define targetdir qemu-kvm
f842b09
%endif
f842b09
d97ef7e
%global gittag qemu-slof-%{gittagdate}
d97ef7e
8accd3f
Name:           SLOF
4f91164
Version:        %{gittagdate}
998957b
Release:        6.git%{gittagcommit}%{?dist}
8accd3f
Summary:        Slimline Open Firmware
8accd3f
8accd3f
License:        BSD
8accd3f
URL:            http://www.openfirmware.info/SLOF
f842b09
4f91164
Source0:        https://github.com/aik/SLOF/archive/qemu-slof-%{gittagdate}.tar.gz
8aa2672
8accd3f
f842b09
%if 0%{?cross:1}
f842b09
BuildArch:      noarch
8accd3f
BuildRequires:  gcc-powerpc64-linux-gnu
f842b09
%else
f842b09
ExclusiveArch:  ppc64le
4f91164
BuildArch: noarch
f842b09
%endif
f842b09
16a0386
BuildRequires:  make
7171c47
BuildRequires:  gcc
5a886ab
BuildRequires:  perl-interpreter
5a886ab
BuildRequires:  perl(Getopt::Std)
8accd3f
BuildRequires:  perl(Data::Dumper)
8accd3f
8accd3f
%description
8accd3f
Slimline Open Firmware (SLOF) is initialization and boot source code
8accd3f
based on the IEEE-1275 (Open Firmware) standard, developed by
8accd3f
engineers of the IBM Corporation.
8accd3f
8accd3f
The SLOF source code provides illustrates what's needed to initialize
8accd3f
and boot Linux or a hypervisor on the industry Open Firmware boot
8accd3f
standard.
8accd3f
8accd3f
Note that you normally wouldn't need to install this package
8accd3f
separately.  It is a dependency of qemu-system-ppc64.
8accd3f
8accd3f
8accd3f
%prep
4f91164
%setup -q -n SLOF-qemu-slof-%{gittagdate}
fbdec52
%autopatch -p1
8accd3f
8accd3f
%build
f842b09
%if 0%{?cross:1}
8accd3f
export CROSS="powerpc64-linux-gnu-"
4f91164
%else
4f91164
export CROSS=""
4f91164
%endif
4f91164
4f91164
%if 0%{?rhel:1}
4f91164
# Workaround for problems on the TPS machines.  They have a
4f91164
# environment variable called "RELEASE" which somehow confuses the
4f91164
# SLOF Makefiles which also use a variable named RELEASE.
4f91164
unset RELEASE
f842b09
%endif
8accd3f
1c26978
%make_build qemu V=2
8accd3f
8accd3f
%install
4f91164
mkdir -p %{buildroot}%{_datadir}/%{targetdir}
4f91164
install -c -m 0644 boot_rom.bin %{buildroot}%{_datadir}/%{targetdir}/slof.bin
8accd3f
8accd3f
8accd3f
%files
8accd3f
%doc LICENSE
8accd3f
%doc README
4f91164
%dir %{_datadir}/%{targetdir}
4f91164
%{_datadir}/%{targetdir}/slof.bin
8accd3f
8accd3f
8accd3f
%changelog
998957b
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 20210217-6.git33a7322d
998957b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
998957b
37d98fc
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 20210217-5.git33a7322d
37d98fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
37d98fc
9d9b498
* Fri Jan 21 2022 Richard W.M. Jones <rjones@redhat.com> - 20210217-4.git33a7322d
9d9b498
- Unbreak build by undefining _auto_set_build_flags
9d9b498
  See: https://fedoraproject.org/wiki/Changes/SetBuildFlagsBuildCheck
9d9b498
30fcec1
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 20210217-3.git33a7322d
30fcec1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
30fcec1
9a29832
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20210217-2.git33a7322d
9a29832
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
9a29832
e799439
* Wed Jun 23 2021 Eduardo Lima (Etrunko) <etrunko@redhat.com> - 0.1-git20210217-1
e799439
- Update to SLOF 20210217
e799439
56ee882
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.git20200717-2
56ee882
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
56ee882
5a886ab
* Mon Aug 03 2020 Cole Robinson <aintdiscole@gmail.com> - 0.1.git20200717-1
5a886ab
- Update to SLOF 20200717
5a886ab
fb28b7b
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.git20200327-2
fb28b7b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
fb28b7b
812490c
* Mon Mar 30 2020 Cole Robinson <aintdiscole@gmail.com> - 0.1.git20200327-1
812490c
- Update to SLOF 20200327
812490c
c96c111
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.git20191022-2
c96c111
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
c96c111
d97ef7e
* Tue Nov 12 2019 Cole Robinson <aintdiscole@gmail.com> - 0.1.git20191022-1
d97ef7e
- Update to SLOF 20191022 for qemu-4.2
d97ef7e
720f1ac
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.git20190114-2
720f1ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
720f1ac
f60a532
* Wed Mar 27 2019 Cole Robinson <aintdiscole@gmail.com> - 0.1.git20190114-1
f60a532
- Update to SLOF 20190114 for qemu-4.0
f60a532
18fd1d7
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.git20180702-3
18fd1d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
18fd1d7
8bc6b11
* Wed Dec 12 2018 Cole Robinson <crobinso@redhat.com> - 0.1.git20180702-2
8bc6b11
- Fix gcc 8.1 build compat (bz #1653655)
8bc6b11
2e5a794
* Thu Nov 15 2018 Cole Robinson <crobinso@redhat.com> - 0.1.git20180702-1
2e5a794
- Update to SLOF 20180702 for qemu-3.1
2e5a794
d7b530f
* Tue Jul 31 2018 Cole Robinson <crobinso@redhat.com> - 0.1.git20180621-1
d7b530f
- Update to SLOF 20180621 for qemu-3.0
d7b530f
7171c47
* Thu Jul 19 2018 Richard W.M. Jones <rjones@redhat.com> - 0.1.git20171214-4
7171c47
- BR gcc, needed even when cross-compiling to make a build tool.
7171c47
9e48681
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.git20171214-3
9e48681
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
9e48681
d074bf1
* Mon Mar 26 2018 Cole Robinson <crobinso@redhat.com> - 0.1.git20171214-2
d074bf1
- Drop documentation patch
d074bf1
8666223
* Thu Mar 22 2018 Cole Robinson <crobinso@redhat.com> - 0.1.git20171214-1
8666223
- Update to SLOF 20171214 for qemu-2.12
8666223
ac64cf6
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.git20170724-4
ac64cf6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ac64cf6
fbdec52
* Wed Nov 22 2017 Paolo Bonzini <pbonzini@redhat.com> - 0.1.git120170724-3
fbdec52
- Add two patches from RHEL
fbdec52
f842b09
* Fri Nov 17 2017 Paolo Bonzini <pbonzini@redhat.com> - 0.1.git120170724-2
f842b09
- Disable cross compilation for RHEL
f842b09
a59e184
* Thu Aug 03 2017 Cole Robinson <crobinso@redhat.com> - 0.1.git120170724-1
a59e184
- Update to SLOF 20170724 for qemu 2.10
a59e184
af49684
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.git20170303-2
af49684
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
af49684
ffb5a0d
* Wed Mar 15 2017 Cole Robinson <crobinso@redhat.com> - 0.1.git20170303-1
ffb5a0d
- Update to SLOF 20170303 for qemu 2.9
ffb5a0d
2d54eca
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.git20161019-2
2d54eca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2d54eca
e5b9aa8
* Sun Dec 04 2016 Cole Robinson <crobinso@redhat.com> 0.1.git20161019-1
e5b9aa8
- Update to SLOF 20161019 for qemu 2.8
e5b9aa8
c38bda6
* Thu Apr 07 2016 Cole Robinson <crobinso@redhat.com> 0.1.git20160223-1
c38bda6
- Update to SLOF 20160223 for qemu 2.6
c38bda6
8c0ae35
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.git20151103-2
8c0ae35
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8c0ae35
0bce0cc
* Tue Nov 17 2015 Cole Robinson <crobinso@redhat.com> 0.1.git20151103-1
0bce0cc
- Update to SLOF 20151103 for qemu 2.5
0bce0cc
eb2ddc3
* Tue Jul 14 2015 Cole Robinson <crobinso@redhat.com> 0.1.git20150429-1
eb2ddc3
- Update to SLOF 20150429 for qemu 2.4
eb2ddc3
6fc1890
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.git20150313-2
6fc1890
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
6fc1890
e19823b
* Wed Mar 18 2015 Cole Robinson <crobinso@redhat.com> 0.1.git20150313-1
e19823b
- Update to SLOF 20150313 for qemu 2.3
e19823b
e71c744
* Tue Dec 02 2014 Cole Robinson <crobinso@redhat.com> - 0.1.git20141202-1
e71c744
- Update to SLOF 20141202
e71c744
7b281b2
* Fri Jul 04 2014 Cole Robinson <crobinso@redhat.com> - 0.1.git20140630-1
7b281b2
- Update to tag qemu-slof-20140630, queued for qemu 2.1
7b281b2
da39b36
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.git20140304-2
da39b36
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
da39b36
eb45d2b
* Sun Mar 16 2014 Cole Robinson <crobinso@redhat.com> - 0.1.git20140304-1
eb45d2b
- Update to qemu 2.0 version of SLOF
eb45d2b
be5c723
* Tue Nov 19 2013 Cole Robinson <crobinso@redhat.com> - 0.1.git20130827-1
be5c723
- Update to version intended for qemu 1.7
be5c723
059762b
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.git20130430-2
059762b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
059762b
91f32de
* Tue May 21 2013 Cole Robinson <crobinso@redhat.com> - 0.1.git20130430-1
91f32de
- Update to version shipped with qemu 1.5
91f32de
4d88c27
* Tue Feb 19 2013 Cole Robinson <crobinso@redhat.com> 0.1.git20121018-1
4d88c27
- Update to version shipped with qemu 1.4
4d88c27
6c70266
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.git20120731-2
6c70266
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
6c70266
4d2a8ac
* Tue Oct 16 2012 Paolo Bonzini <pbonzini@redhat.com> - 0.1.git20120731-1
4d2a8ac
- Move date from release to version.
4d2a8ac
6bdc3bd
* Fri Sep 14 2012 Paolo Bonzini <pbonzini@redhat.com> - 0-0.1.git20120731
6bdc3bd
- SLOF packages is very out of date with respect to what qemu expects (bug #855246)
6bdc3bd
- SLOF package builds wrong version of SLOF (bug #855236)
6bdc3bd
- build verbosely
6bdc3bd
8accd3f
* Tue Jul 31 2012 Richard W.M. Jones <rjones@redhat.com> - 0-0.1.git20120217
8accd3f
- Initial release in Fedora.