1 %global debug_package %{nil}
5 Release: 0.2.git@SHORTCOMMIT@%{?dist}
6 Summary: RISC-V proxy kernel (pk) and boot loader (bbl)
9 URL: https://github.com/lowRISC/riscv-pk
10 Source0: https://github.com/riscv/%{name}/archive/@COMMIT@/%{name}-@SHORTCOMMIT@.tar.gz
12 BuildRequires: riscv-gnu-toolchain
16 This is the RISC-V fork of the GNU cross-compiler toolchain. It
17 includes binutils and GCC.
21 %setup -q -n %{name}-@COMMIT@
27 # Setting RUN to /bin/true prevents pk from looking for the 'spike'
28 # RISC-V cycle-accurate emulator, which would be needed to run tests
29 # but we don't care about here.
30 ../configure --prefix=%{_prefix} \
32 --host=riscv64-unknown-elf RUN=/bin/true
40 make install DESTDIR=$RPM_BUILD_ROOT
45 %doc README.md LICENSE
48 %{_includedir}/riscv-pk
49 %{_prefix}/lib/riscv-pk