RTEMS Source Builder | Draft: rtems/config/tools: Add checks to stdcxx.py install script (!48)
Chris Johns (@chris)
gitlab at rtems.org
Tue Aug 20 10:23:48 UTC 2024
Chris Johns commented on a discussion on rtems/config/tools/rtems-install-stdcxx.cfg: https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/merge_requests/48#note_111347
> +# macro defined in the GCC newlib file.
> +%define rsb_rtems_gcc_version %( \
> + if [ -x %{_bindir}/%{_target}-gcc ]; then \
> + %{_bindir}/%{_target}-gcc --version | head -1 | awk '{print $3}'; \
> + else \
> + echo %{gcc_version}; \
> + fi \
> +)
>
> -# Path to the target location of the script: gdb/python
> -%define stdcxx_script %{_prefix}/share/gdb/python/rtems/stdcxx.py
> +# Path to the target location of the script: gdb/python/rtems
> +%define stdcxx_script_path %{_prefix}/share/gdb/python/rtems
> +
> +# Check if the install directory exists. If not, create it
> +%([ -d %{stdcxx_script_path} ] || mkdir -p %{stdcxx_script_path})
The path should be prefixed with `$DESTDIR`
--
View it on GitLab: https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/merge_requests/48#note_111347
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/20240820/c1060f90/attachment.htm>
More information about the bugs
mailing list