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

Muhammad Sulthan Mazaya msulthanmazaya at gmail.com
Mon Jul 10 11:12:16 UTC 2023


An implementation of renode rsb installation config. It uses renode's
github release as source and build the package using their build script.

---
 bare/config/devel/renode-git-1.cfg | 47 ++++++++++++++++++++++++++++++
 bare/config/devel/renode.bset      |  9 ++++++
 2 files changed, 56 insertions(+)
 create mode 100644 bare/config/devel/renode-git-1.cfg
 create mode 100644 bare/config/devel/renode.bset

diff --git a/bare/config/devel/renode-git-1.cfg b/bare/config/devel/renode-git-1.cfg
new file mode 100644
index 0000000..df424a6
--- /dev/null
+++ b/bare/config/devel/renode-git-1.cfg
@@ -0,0 +1,47 @@
+#
+# Renode from github
+#
+
+%if %{release} == %{nil}
+ %define release 1
+%endif
+
+%define renode_version 1.13.3
+
+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}
diff --git a/bare/config/devel/renode.bset b/bare/config/devel/renode.bset
new file mode 100644
index 0000000..d64a2a2
--- /dev/null
+++ b/bare/config/devel/renode.bset
@@ -0,0 +1,9 @@
+#
+# Build set for Renode
+#
+
+%if %{release} == %{nil}
+    %define release 1
+%endif
+
+devel/renode-git-1
-- 
2.34.1



More information about the devel mailing list