source: rtems-source-builder/source-builder/config/spike-1-1.cfg @ 693e6b5

5
Last change on this file since 693e6b5 was 693e6b5, checked in by Hesham Almatary <Hesham.Almatary@…>, on 11/09/18 at 10:21:08

rsb: Update RISC-V's Spike revision

  • Property mode set to 100644
File size: 1.5 KB
Line 
1#
2# RISC-V's spike (01252686902fa30665fbecfc1476d169ad1333d1) 1.x.x Version 1.
3#
4# This configuration file configure's, make's and install's RISC-V's spike simulator.
5#
6
7%if %{release} == %{nil}
8%define release 1
9%endif
10
11Name:      spike-%{spike_version}-%{_host}-%{release}
12Summary:   spike-github
13Version:   %{spike_version}
14Release:   %{release}
15URL:       https://github.com/riscv/riscv-isa-sim/
16
17#
18# Source
19#
20%source set spike https://github.com/riscv/riscv-isa-sim/archive/01252686902fa30665fbecfc1476d169ad1333d1.zip
21%source set fesvr https://github.com/riscv/riscv-fesvr/archive/8d108a0a647901550d95925549337c2c3aec9ac8.zip
22
23#
24# Prepare the source code.
25#
26%prep
27  build_top=$(pwd)
28
29  %source setup fesvr -q -n riscv-fesvr-8d108a0a647901550d95925549337c2c3aec9ac8
30  %source setup spike -q -n riscv-isa-sim-01252686902fa30665fbecfc1476d169ad1333d1
31
32  cd ${build_top}
33
34%build
35  build_top=$(pwd)
36
37  cd riscv-fesvr-8d108a0a647901550d95925549337c2c3aec9ac8
38
39  ../riscv-fesvr-8d108a0a647901550d95925549337c2c3aec9ac8/configure \
40  --prefix=%{_prefix}
41  %{__make} %{?_smp_mflags} all$
42  %{__make} install
43
44
45  cd ../riscv-isa-sim-01252686902fa30665fbecfc1476d169ad1333d1
46
47  ../riscv-isa-sim-01252686902fa30665fbecfc1476d169ad1333d1/configure \
48  --prefix=%{_prefix} \
49  --with-fesvr=%{_prefix}
50
51  %{__make} %{?_smp_mflags} all$
52
53  cd ${build_top}
54
55%install
56  build_top=$(pwd)
57
58  rm -rf $SB_BUILD_ROOT
59
60  cd riscv-isa-sim-01252686902fa30665fbecfc1476d169ad1333d1
61  %{__make} DESTDIR=$SB_BUILD_ROOT PREFIX=%{_prefix} install
62
63  cd ${build_top}
Note: See TracBrowser for help on using the repository browser.