RTEMS Tools | Provide an RTEMS STD C++ script in Python (#5)
Suraj Kumar (@the.m3chanic)
gitlab at rtems.org
Sun Jul 7 21:51:28 UTC 2024
Suraj Kumar commented: https://gitlab.rtems.org/rtems/tools/rtems-tools/-/issues/5#note_108826
@chris
Here are the modifications I have in mind for making this change. Please let me know if they are in line with what you have in mind as well
## To `stdcxx.py`
```diff
- gcc_version = "13.3.0"
+ gcc_version = "@RSB_GCC_VERSION@"
```
## To `gcc-common-1.cfg`
### We can add the following lines to define the additional variables we would need
```
%define gcc_version %{_target}-%{rtems_version}-gcc --version | grep %{_target}-%{rtems_version}-gcc | awk '{print $3}'
%define stdcxx_script stdcxx.py
%define gcc_install_dir lib/gcc/%{_target}/%{gcc_version}/python
```
### To replace the placeholder in `stdcxx.py`
```
sed "s/@RSB_GCC_VERSION@/${gcc_version}/g" %{stdcxx_script} > ${DESTDIR}/%{gcc_install_dir}/%{stdcxx_script}
```
I am not very familiar with config script editing, so there might be silly mistakes. I just wanted to make sure we were both thinking the same thing(s) when it came to RSB modifications.
--
View it on GitLab: https://gitlab.rtems.org/rtems/tools/rtems-tools/-/issues/5#note_108826
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/20240707/be891059/attachment-0001.htm>
More information about the bugs
mailing list