2019-03-20 21:31:06 +00:00
|
|
|
# Disable debug packages, we don't need them.
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
Name: opensbi-unstable
|
|
|
|
# The last part is short hash
|
2019-09-24 05:45:33 +00:00
|
|
|
# Format: <TAG>.<NUMBER_OF_COMMITS_AFTER_TAG>.<YEAR>.<MONTH>.<DAY>.<SHORT_COMMIT>
|
2021-04-21 05:37:54 +00:00
|
|
|
Version: v0.9.35.2021.04.21.f41196a
|
2020-01-07 08:35:14 +00:00
|
|
|
Release: 1%{?dist}
|
2019-03-20 21:31:06 +00:00
|
|
|
Summary: RISC-V Open Source Supervisor Binary Interface
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
URL: https://github.com/riscv/opensbi
|
|
|
|
|
|
|
|
# Download tarball, e.g.:
|
|
|
|
# https://github.com/riscv/opensbi/archive/%full_commit.tar.gz
|
2021-04-21 05:37:54 +00:00
|
|
|
%global full_commit f41196a9d245f024a87a08e7d159ca6dc0a6c298
|
2019-03-30 21:13:23 +00:00
|
|
|
Source0: https://github.com/riscv/opensbi/archive/%{full_commit}.tar.gz
|
2019-03-20 21:31:06 +00:00
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: binutils
|
|
|
|
BuildRequires: findutils
|
|
|
|
BuildRequires: grep
|
|
|
|
BuildRequires: coreutils
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: dtc
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
RISC-V Open Source Supervisor Binary Interface compiled in jump variant.
|
|
|
|
This is only for QEMU RISC-V virt machine.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2021-01-06 14:01:48 +00:00
|
|
|
%autosetup -n opensbi-%{full_commit}
|
2019-03-20 21:31:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2021-01-06 16:00:29 +00:00
|
|
|
make \
|
|
|
|
PLATFORM=generic
|
|
|
|
|
2019-03-20 21:31:06 +00:00
|
|
|
|
|
|
|
%install
|
2021-01-06 16:00:29 +00:00
|
|
|
make \
|
|
|
|
PLATFORM=generic \
|
|
|
|
I=%{buildroot} \
|
|
|
|
INSTALL_LIB_PATH=lib64 \
|
|
|
|
INSTALL_FIRMWARE_PATH=%{_datadir}/%{name} \
|
|
|
|
install
|
2019-03-20 21:31:06 +00:00
|
|
|
|
2021-01-06 15:13:22 +00:00
|
|
|
|
2021-01-06 14:01:48 +00:00
|
|
|
rm -rfv %{buildroot}/lib64
|
|
|
|
rm -rfv %{buildroot}/include
|
|
|
|
rm -rfv %{buildroot}%{_datadir}/%{name}/*/firmware/payloads
|
2019-08-24 22:33:06 +00:00
|
|
|
|
|
|
|
|
2019-03-20 21:31:06 +00:00
|
|
|
%files
|
|
|
|
%license COPYING.BSD
|
|
|
|
%doc README.md
|
2021-01-06 14:01:48 +00:00
|
|
|
%dir %{_datadir}/%{name}
|
|
|
|
%{_datadir}/%{name}/*
|
2019-03-20 21:31:06 +00:00
|
|
|
|
2019-03-30 21:13:23 +00:00
|
|
|
|
2019-03-20 21:31:06 +00:00
|
|
|
%changelog
|
2021-04-21 05:37:54 +00:00
|
|
|
* Wed Apr 21 2021 David Abdurachmanov <david.abdurachmanov@gmail.com> v0.9.35.2021.04.21.f41196a
|
|
|
|
- Update to v0.9+
|
|
|
|
|
2021-01-06 14:01:48 +00:00
|
|
|
* Wed Jan 06 2021 David Abdurachmanov <david.abdurachmanov@sifive.com> v0.8.81.2021.01.06.7dcb1e1
|
|
|
|
- New version
|
|
|
|
- Switch to generic platform
|
|
|
|
- Remove all others special Fedora variants of firmware
|
|
|
|
- Remove development library and documentation (not needed)
|
|
|
|
- Remove example payloads
|