mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
rsb: Update RISC-V's Spike revision
Latest Spike integrated fesvr in its source directory, so there is no separate fesvr anymore. Also use a revision of Spike that fixes the file permissions when getting installed.
This commit is contained in:
@@ -18,7 +18,6 @@ URL: https://github.com/riscv/riscv-isa-sim/
|
||||
# Source
|
||||
#
|
||||
%source set spike --rsb-file=spike-%{spike_version}.tar.gz https://github.com/riscv/riscv-isa-sim/archive/%{spike_version}.tar.gz
|
||||
%source set fesvr --rsb-file=fesvr-%{fesvr_version}.tar.gz https://github.com/riscv/riscv-fesvr/archive/%{fesvr_version}.tar.gz
|
||||
|
||||
#
|
||||
# Prepare the source code.
|
||||
@@ -26,33 +25,16 @@ URL: https://github.com/riscv/riscv-isa-sim/
|
||||
%prep
|
||||
build_top=$(pwd)
|
||||
|
||||
source_dir_fesvr="riscv-fesvr-%{fesvr_version}"
|
||||
source_dir_spike="riscv-isa-sim-%{spike_version}"
|
||||
|
||||
%source setup fesvr -q -n riscv-fesvr-%{fesvr_version}
|
||||
%source setup spike -q -n riscv-isa-sim-%{spike_version}
|
||||
|
||||
%patch setup fesvr -p1
|
||||
%patch setup spike -p1
|
||||
|
||||
cd ${build_top}
|
||||
|
||||
%build
|
||||
build_top=$(pwd)
|
||||
|
||||
%{build_directory}
|
||||
|
||||
%{host_build_flags}
|
||||
|
||||
cd ${source_dir_fesvr}
|
||||
|
||||
./configure \
|
||||
--prefix=%{_prefix}
|
||||
|
||||
%{__make} %{?_smp_mflags} all$
|
||||
%{__make} install
|
||||
|
||||
cd ../${source_dir_spike}
|
||||
cd ${source_dir_spike}
|
||||
|
||||
./configure \
|
||||
--prefix=%{_prefix} \
|
||||
@@ -67,7 +49,7 @@ URL: https://github.com/riscv/riscv-isa-sim/
|
||||
|
||||
rm -rf $SB_BUILD_ROOT
|
||||
|
||||
cd riscv-isa-sim-01252686902fa30665fbecfc1476d169ad1333d1
|
||||
cd ${source_dir_spike}
|
||||
%{__make} DESTDIR=$SB_BUILD_ROOT PREFIX=%{_prefix} install
|
||||
|
||||
cd ${build_top}
|
||||
|
Reference in New Issue
Block a user