summaryrefslogtreecommitdiffstats
path: root/source-builder/config
diff options
context:
space:
mode:
authorHesham Almatary <heshamelmatary@gmail.com>2017-10-28 16:04:14 +1100
committerHesham Almatary <heshamelmatary@gmail.com>2017-10-28 18:00:42 +1100
commite274bdfe104876cb92f145e848c057250225f84a (patch)
tree128a7b4cf61b4fa669860bd9a4b2de2f0c0f1cbc /source-builder/config
parentsb: Remove debug print left in by mistake. (diff)
downloadrtems-source-builder-e274bdfe104876cb92f145e848c057250225f84a.tar.bz2
RSB - RISC-V: Add scripts to build RISC-V's simulator
Update #3109
Diffstat (limited to 'source-builder/config')
-rw-r--r--source-builder/config/spike-1-1.cfg64
1 files changed, 64 insertions, 0 deletions
diff --git a/source-builder/config/spike-1-1.cfg b/source-builder/config/spike-1-1.cfg
new file mode 100644
index 0000000..54e4915
--- /dev/null
+++ b/source-builder/config/spike-1-1.cfg
@@ -0,0 +1,64 @@
+#
+# RISC-V's spike (priv-1.10) 1.x.x Version 1.
+#
+# This configuration file configure's, make's and install's RISC-V's spike simulator.
+#
+
+%if %{release} == %{nil}
+%define release 1
+%endif
+
+Name: spike-%{spike_version}-%{_host}-%{release}
+Summary: spike-github
+Version: %{spike_version}
+Release: %{release}
+URL: https://github.com/riscv/riscv-isa-sim/
+BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
+
+#
+# Source
+#
+%source set spike https://github.com/riscv/riscv-isa-sim/archive/priv-1.10.zip
+%source set fesvr https://github.com/riscv/riscv-fesvr/archive/f683e01542acf60e50774d061bcb396b628e3e67.zip
+
+#
+# Prepare the source code.
+#
+%prep
+ build_top=$(pwd)
+
+ %source setup fesvr -q -n riscv-fesvr-f683e01542acf60e50774d061bcb396b628e3e67
+ %source setup spike -q -n riscv-isa-sim-priv-1.10
+
+ cd ${build_top}
+
+%build
+ build_top=$(pwd)
+
+ cd riscv-fesvr-f683e01542acf60e50774d061bcb396b628e3e67
+
+ ../riscv-fesvr-f683e01542acf60e50774d061bcb396b628e3e67/configure \
+ --prefix=%{_prefix}
+ %{__make} %{?_smp_mflags} all$
+ %{__make} install
+
+
+ cd ../riscv-isa-sim-priv-1.10
+
+ ../riscv-isa-sim-priv-1.10/configure \
+ --prefix=%{_prefix} \
+ --with-fesvr=%{_prefix}
+
+ %{__make} %{?_smp_mflags} all$
+
+ cd ${build_top}
+
+%install
+ build_top=$(pwd)
+
+ rm -rf $SB_BUILD_ROOT
+
+ cd riscv-isa-sim-priv-1.10
+ %{__make} DESTDIR=$SB_BUILD_ROOT PREFIX=%{_prefix} install
+
+ cd ${build_top}