RTEMS Source Builder | Draft: RSB modifications to install stdcxx.py in gdb/python/rtems (!35)
Suraj Kumar (@the.m3chanic)
gitlab at rtems.org
Mon Aug 12 22:02:58 UTC 2024
Suraj Kumar commented on a discussion on source-builder/config/gcc-common-1.cfg: https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/merge_requests/35#note_110905
> + # be cut with ':' because _configdir contains 4 copies of
> + # the same path
> + %define rtems_configdir %(echo %{_configdir} | cut -d':' -f1)
> +
> + # Path to the location of the template script.
> + %define stdcxx_template %{rtems_configdir}/stdcxx-template.py
> +
> + # Get the current GCC version of the target being built.
> + %define rsb_rtems_gcc_version %(%{_bindir}/%{_target}-gcc --version | head -1 | awk '{print $3}')
> +
> + # Path to the target location of the script: gdb/python
> + %define stdcxx_script %{_prefix}/share/gdb/python/rtems/stdcxx.py
> +
> + # Modify the template script and update the current GCC version
> + # and place it in the target location.
> + cat %{stdcxx_template} | sed "s/@RSB_GCC_VERSION@/%{rsb_rtems_gcc_version}/g" > %{stdcxx_script}
`gcc_pre_installer` is defined as `%include %{_configdir}/rtems/tools/gcc-pre-install.cfg`, which would handle the include after the check.
I thought about adding it in `rtems-gcc-13.3-newlib-head.cfg` as well, but wouldn't that make it version dependent? (Or at least I think so)
Yep sure, I'll change the filename to reflect what it does, I was just wondering about the version update part fo the change. If that is not an issue then we can consider this issue as solved. :)
--
View it on GitLab: https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/merge_requests/35#note_110905
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20240812/53f9b4ea/attachment-0001.htm>
More information about the bugs
mailing list