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 #3293
This commit is contained in:
Chris Johns 2018-02-07 15:22:16 +11:00
parent 70159fb9e3
commit f75dd49ce8
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
#
%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.

View File

@ -41,6 +41,15 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
#
%define disable_MAKEINFO 1
#
# 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.
#