mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
Update Spike RSB recipe and correct installed permissions
Updates #3802.
This commit is contained in:
@@ -17,8 +17,8 @@ URL: https://github.com/riscv/riscv-isa-sim/
|
||||
#
|
||||
# Source
|
||||
#
|
||||
%source set spike https://github.com/riscv/riscv-isa-sim/archive/01252686902fa30665fbecfc1476d169ad1333d1.zip
|
||||
%source set fesvr https://github.com/riscv/riscv-fesvr/archive/8d108a0a647901550d95925549337c2c3aec9ac8.zip
|
||||
%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,27 +26,37 @@ URL: https://github.com/riscv/riscv-isa-sim/
|
||||
%prep
|
||||
build_top=$(pwd)
|
||||
|
||||
%source setup fesvr -q -n riscv-fesvr-8d108a0a647901550d95925549337c2c3aec9ac8
|
||||
%source setup spike -q -n riscv-isa-sim-01252686902fa30665fbecfc1476d169ad1333d1
|
||||
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)
|
||||
|
||||
cd riscv-fesvr-8d108a0a647901550d95925549337c2c3aec9ac8
|
||||
%{build_directory}
|
||||
|
||||
%{host_build_flags}
|
||||
|
||||
cd ${source_dir_fesvr}
|
||||
|
||||
./configure \
|
||||
--prefix=%{_prefix}
|
||||
|
||||
../riscv-fesvr-8d108a0a647901550d95925549337c2c3aec9ac8/configure \
|
||||
--prefix=%{_prefix}
|
||||
%{__make} %{?_smp_mflags} all$
|
||||
%{__make} install
|
||||
|
||||
cd ../${source_dir_spike}
|
||||
|
||||
cd ../riscv-isa-sim-01252686902fa30665fbecfc1476d169ad1333d1
|
||||
|
||||
../riscv-isa-sim-01252686902fa30665fbecfc1476d169ad1333d1/configure \
|
||||
--prefix=%{_prefix} \
|
||||
--with-fesvr=%{_prefix}
|
||||
./configure \
|
||||
--prefix=%{_prefix} \
|
||||
--with-fesvr=%{_prefix}
|
||||
|
||||
%{__make} %{?_smp_mflags} all$
|
||||
|
||||
|
Reference in New Issue
Block a user