[PATCH rtems-source-builder v3] bare/config: add renode rsb installation config

Muhammad Sulthan Mazaya msulthanmazaya at gmail.com
Mon Apr 29 05:09:05 UTC 2024


Bumping last update of last year's renode porting result. Rebased to
most recent commit on master.

Change file name based on Chris's review here 
https://lists.rtems.org/pipermail/devel/2023-July/075802.html

Plus, fix `cp` so that it also include dotfiles. Because without the 
the `.renode-root` file the command won't work.

---
 bare/config/devel/renode-1.13.3-1.cfg     | 11 ++++++
 bare/config/devel/renode.bset             |  7 ++++
 source-builder/config/renode-1.cfg        |  6 +++
 source-builder/config/renode-common-1.cfg | 45 +++++++++++++++++++++++
 4 files changed, 69 insertions(+)
 create mode 100644 bare/config/devel/renode-1.13.3-1.cfg
 create mode 100644 bare/config/devel/renode.bset
 create mode 100644 source-builder/config/renode-1.cfg
 create mode 100644 source-builder/config/renode-common-1.cfg

diff --git a/bare/config/devel/renode-1.13.3-1.cfg b/bare/config/devel/renode-1.13.3-1.cfg
new file mode 100644
index 0000000..3b0b65f
--- /dev/null
+++ b/bare/config/devel/renode-1.13.3-1.cfg
@@ -0,0 +1,11 @@
+#
+# Renode from git
+#
+
+%if %{release} == %{nil}
+ %define release 1
+%endif
+
+%define renode_version 1.13.3
+
+%include %{_configdir}/renode-1.cfg
diff --git a/bare/config/devel/renode.bset b/bare/config/devel/renode.bset
new file mode 100644
index 0000000..f89168d
--- /dev/null
+++ b/bare/config/devel/renode.bset
@@ -0,0 +1,7 @@
+#
+# Build set for Renode
+#
+
+%define release 1
+
+devel/renode-1.13.3-1
diff --git a/source-builder/config/renode-1.cfg b/source-builder/config/renode-1.cfg
new file mode 100644
index 0000000..b203797
--- /dev/null
+++ b/source-builder/config/renode-1.cfg
@@ -0,0 +1,6 @@
+#
+#
+# This configuration file configure's, make's and install's Renode.
+#
+
+%include %{_configdir}/renode-common-1.cfg
diff --git a/source-builder/config/renode-common-1.cfg b/source-builder/config/renode-common-1.cfg
new file mode 100644
index 0000000..5c50298
--- /dev/null
+++ b/source-builder/config/renode-common-1.cfg
@@ -0,0 +1,45 @@
+#
+# Renode from git
+#
+
+%if %{release} == %{nil}
+ %define release 1
+%endif
+
+Name:      renode-%{renode_version}-%{_host}-%{release}
+Summary:   Renode v%{renode_version}
+Version:   %{renode_version}
+Release:   %{release}
+URL: 	   http://www.renode.io
+
+#
+# Renode source
+# 
+%source set renode https://github.com/renode/renode/releases/download/v%{renode_version}/renode_%{renode_version}_source.tar.xz
+
+#
+# Prepare the source code.
+#
+%prep
+  build_top=$(pwd)
+
+  source_dir_renode="renode_%{renode_version}_source"
+  %source setup renode -q -n renode_%{renode_version}_source
+
+  cd ${build_top}
+
+%build
+  build_top=$(pwd)
+
+  cd ${source_dir_renode}
+  ./build.sh
+
+  cd ${build_top}
+
+%install
+  build_top=$(pwd)
+
+  mkdir -p %{_bindir}
+  cp -r ./${source_dir_renode}/. %{_bindir}
+
+  cd ${build_top}
-- 
2.34.1



More information about the devel mailing list