1 %global debug_package %{nil}
3 %global commit 927979c5af6a69360b5dd61d3b17cd06ae73d1ac
4 %global shortcommit 927979c5
8 Release: 0.1.git%{shortcommit}%{?dist}
9 Summary: RISC-V proxy kernel (pk) and boot loader (bbl)
12 URL: https://github.com/lowRISC/riscv-pk
13 Source0: https://github.com/riscv/%{name}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
15 BuildRequires: riscv-gnu-toolchain
19 This is the RISC-V fork of the GNU cross-compiler toolchain. It
20 includes binutils and GCC.
24 %setup -q -n %{name}-%{commit}
30 # Setting RUN to /bin/true prevents pk from looking for the 'spike'
31 # RISC-V cycle-accurate emulator, which would be needed to run tests
32 # but we don't care about here.
33 ../configure --prefix=%{_prefix} \
35 --host=riscv64-unknown-elf RUN=/bin/true
43 make install DESTDIR=$RPM_BUILD_ROOT
48 %doc README.md LICENSE
50 %{_bindir}/dummy_payload
52 %{_includedir}/riscv-pk
53 %{_prefix}/lib/riscv-pk