gcc: Use the RSB release for released tools.

Using the RSB release version for the gcc version string means the
tools have a version string that matches the release.

Close #3294
This commit is contained in:
Chris Johns 2018-02-07 15:27:47 +11:00
parent 18e1ba6a40
commit 858b6488e4
2 changed files with 11 additions and 1 deletions

View File

@ -20,7 +20,8 @@ package: rtems-%{rtems_version}-%{_target}-%{_host}-%{release}
# #
# Project custom message # Project custom message
# #
%define gcc_version_message RTEMS %{rtems_version}, RSB %{_sbgit_id}, Newlib %{newlib_version} %define rtems_gcc_version %{rtems_version}
%define gcc_version_message RTEMS %{rtems_gcc_version}, RSB %{_sbgit_id}, Newlib %{newlib_version}
# #
# Pick up the RTEMS URLs. # Pick up the RTEMS URLs.

View File

@ -38,6 +38,15 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
%define with_lto 0 %define with_lto 0
%endif %endif
#
# The GCC version depends on the type of build we are doing.
#
%if %{rsb_released}
%define rtems_gcc_version %{rsb_version}
%else
%define rtems_gcc_version %{rtems_version}
%endif
# #
# Prepare the source code. # Prepare the source code.
# #