[PATCH rtems-source-builder v2] bare/config: add renode rsb installation config
Muhammad Sulthan Mazaya
msulthanmazaya at gmail.com
Tue Jul 18 01:33:48 UTC 2023
Thanks Gedare,
I will write a blog about it and work on the documentation.
- Mazaya
On Tue, Jul 18, 2023 at 7:28 AM Gedare Bloom <gedare at rtems.org> wrote:
> This patch applies cleanly and builds renode for me. Thanks for making
> the changes, this recipe should be much easier to maintain for version
> updates of renode. i will push it if no one complains soon.
>
> We will definitely need some documentation for building this. At the
> least you should start with a blog post, but in general we should find
> a good place for documenting RSB build dependencies. Maybe a new
> section in https://docs.rtems.org/branches/master/user/rsb/index.html
>
> On Ubuntu, in addition to whatever "typical" development tools I
> already have installed, I had to add mono-devel and gtk-sharp2
>
> On Wed, Jul 12, 2023 at 2:43 AM Muhammad Sulthan Mazaya
> <msulthanmazaya at gmail.com> wrote:
> >
> > Use the design of how qemu handle config files + add version number to
> > the config file name.
> >
> > ---
> > bare/config/devel/renode-1.13.3-1.cfg | 11 ++++++
> > bare/config/devel/renode.bset | 7 ++++
> > source-builder/config/renode-1.13.3.cfg | 7 ++++
> > source-builder/config/renode-common-1.cfg | 45 +++++++++++++++++++++++
> > 4 files changed, 70 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.13.3.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..ad9b0ad
> > --- /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.13.3.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.13.3.cfg
> b/source-builder/config/renode-1.13.3.cfg
> > new file mode 100644
> > index 0000000..5aff341
> > --- /dev/null
> > +++ b/source-builder/config/renode-1.13.3.cfg
> > @@ -0,0 +1,7 @@
> > +#
> > +# Renode 1.13.3 Version 1.
> > +#
> > +# 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..65be946
> > --- /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
> >
> > _______________________________________________
> > devel mailing list
> > devel at rtems.org
> > http://lists.rtems.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20230718/61c1c875/attachment-0001.htm>
More information about the devel
mailing list