diff --git a/.gitignore b/.gitignore index e69de29..9a9f33a 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/SLOF-20120217.tar.gz diff --git a/SLOF.spec b/SLOF.spec new file mode 100644 index 0000000..d143e7d --- /dev/null +++ b/SLOF.spec @@ -0,0 +1,62 @@ +%global gittagdate 20120217 +%global gittag qemu-slof-%{gittagdate} + +Name: SLOF +Version: 0 +Release: 0.1.git%{gittagdate}%{?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: +# +# git clone git://github.com/dgibson/SLOF.git +# cd SLOF +# git archive -o ../SLOF-%{gittagdate}.tar.gz \ +# --prefix=SLOF-%{gittagdate}/ %{gittag} +Source0: SLOF-%{gittagdate}.tar.gz + +BuildRequires: gcc-powerpc64-linux-gnu +BuildRequires: perl(Data::Dumper) + + +%description +Slimline Open Firmware (SLOF) is initialization and boot source code +based on the IEEE-1275 (Open Firmware) standard, developed by +engineers of the IBM Corporation. + +The SLOF source code provides illustrates what's needed to initialize +and boot Linux or a hypervisor on the industry Open Firmware boot +standard. + +Note that you normally wouldn't need to install this package +separately. It is a dependency of qemu-system-ppc64. + + +%prep +%setup -q -n SLOF-%{gittagdate} + + +%build +export CROSS="powerpc64-linux-gnu-" +make js2x %{?_smp_mflags} + + +%install +mkdir -p $RPM_BUILD_ROOT%{_datadir}/qemu +cp -a boot_rom.bin $RPM_BUILD_ROOT%{_datadir}/qemu/slof.bin + + +%files +%doc FlashingSLOF.pdf +%doc LICENSE +%doc README +%dir %{_datadir}/qemu +%{_datadir}/qemu/slof.bin + + +%changelog +* Tue Jul 31 2012 Richard W.M. Jones - 0-0.1.git20120217 +- Initial release in Fedora. diff --git a/sources b/sources index e69de29..e39a8c6 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +33afaf2333e319c65551757232cacb69 SLOF-20120217.tar.gz