commit fa19aadde6e907f92d6687d76ed283470973c56e Author: David Abdurachmanov Date: Tue Feb 19 17:42:31 2019 +0100 Add initial version This is BBL without a payload for TinyEMU. Signed-off-by: David Abdurachmanov diff --git a/a26a565cb89b9292e400363fe00e75f3eb4cf99c.tar.gz b/a26a565cb89b9292e400363fe00e75f3eb4cf99c.tar.gz new file mode 100644 index 0000000..7cf21b1 Binary files /dev/null and b/a26a565cb89b9292e400363fe00e75f3eb4cf99c.tar.gz differ diff --git a/fedora-bbl-nopayload.spec b/fedora-bbl-nopayload.spec new file mode 100644 index 0000000..14c4ecf --- /dev/null +++ b/fedora-bbl-nopayload.spec @@ -0,0 +1,56 @@ +# Disable debug packages, we don't need them. +%global debug_package %{nil} + +Name: fedora-bbl-nopayload +# The last part is short hash +Version: 2019.02.19.a26a565 +Release: 1%{?dist} +Summary: Berkeley Boot Loader (BBL) without a payload + +License: BSD +URL: https://github.com/riscv/riscv-pk + +# Download tarball, e.g.: +# https://github.com/riscv/riscv-pk/archive/%full_commit.tar.gz +%global full_commit a26a565cb89b9292e400363fe00e75f3eb4cf99c +Source0: https://github.com/riscv/riscv-pk/archive/%{full_commit}.tar.gz + +BuildRequires: gcc +BuildRequires: binutils +BuildRequires: findutils +BuildRequires: grep +BuildRequires: coreutils + + +%description +Berkeley Boot Loader (BBL) without a payload (useful for TinyEMU). +It is used for booting on RISC-V 64-bit (riscv64) systems. + +%prep +%autosetup -n riscv-pk-%{full_commit} + + +%build +mkdir -p build +pushd build +../configure \ + --enable-logo +%make_build +popd + + +%install +pushd build +mkdir -p %{buildroot}/boot +cp bbl %{buildroot}/boot/bbl-%{version} +popd + + +%files +%license LICENSE LICENSE.Batten LICENSE.riscv_logo.txt +%doc README.md +/boot/bbl-* + +%changelog +* Tue Feb 19 2019 David Abdurachmanov 2019.02.19.a26a565-1 +- Add new package