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:20:40 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_111346
> +# 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})
If `-p`is portable it is a nice solution.
--
View it on GitLab: https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/merge_requests/48#note_111346
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/d6011c7b/attachment-0001.htm>
More information about the bugs
mailing list