[rtems-source-builder commit] Fix the tools and kernel source URL when released to use `sources`.

Chris Johns chrisj at rtems.org
Mon Apr 10 07:34:25 UTC 2017


Module:    rtems-source-builder
Branch:    master
Commit:    44ebcc517794a1634239cd2a5ccd387e86421669
Changeset: http://git.rtems.org/rtems-source-builder/commit/?id=44ebcc517794a1634239cd2a5ccd387e86421669

Author:    Chris Johns <chrisj at rtems.org>
Date:      Mon Apr 10 17:30:06 2017 +1000

Fix the tools and kernel source URL when released to use `sources`.

Remove `%define without_release_url` so the standard release URL processing
is used. This requires the tools and kernel source is available in the
releases `sources` directory.

Updates #2952.

---

 rtems/config/tools/rtems-kernel-4-1.cfg |  2 --
 rtems/config/tools/rtems-tools-1.cfg    | 26 +++++++++-----------------
 2 files changed, 9 insertions(+), 19 deletions(-)

diff --git a/rtems/config/tools/rtems-kernel-4-1.cfg b/rtems/config/tools/rtems-kernel-4-1.cfg
index 33e8020..8047474 100644
--- a/rtems/config/tools/rtems-kernel-4-1.cfg
+++ b/rtems/config/tools/rtems-kernel-4-1.cfg
@@ -62,9 +62,7 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
   %if ! %{defined rtems_kernel_compression}
    %define rtems_kernel_compression xz
   %endif
-  %source set rtems %{rtems_release_url}/%{rtems_kernel_version}/rtems-%{rtems_kernel_version}.tar.%{rtems_kernel_compression}
   %define rtems_bootstrap 0
-  %define without_release_url
  %else
   %if ! %{defined rtems_kernel_version}
    %define rtems_kernel_version HEAD
diff --git a/rtems/config/tools/rtems-tools-1.cfg b/rtems/config/tools/rtems-tools-1.cfg
index bde2ce5..15b6ac8 100644
--- a/rtems/config/tools/rtems-tools-1.cfg
+++ b/rtems/config/tools/rtems-tools-1.cfg
@@ -21,27 +21,19 @@
 
 %if %{rtems_tools_build}
  #
- # If the RSB is released look for a release tarball else use git.
+ # rtems_git_commit_hash : The commit hash else the branch is tracked.
  #
- %if %{rsb_released}
-  %source set rtems-tools %{rtems_release_url}/%{rtems_tools_version}/rtems-tools-%{rtems_tools_version}.tar.xz
-  %define without_release_url
+ %if ! %{defined rtems_tools_version}
+  %define rtems_tools_version HEAD
+ %endif
+ %if %{defined rtems_tools_git_commit_hash}
+  %define rtems_tools_git_checkout ?checkout=%{defined rtems_tools_git_commit_hash}
  %else
-  #
-  # rtems_git_commit_hash : The commit hash else the branch is tracked.
-  #
-  %if ! %{defined rtems_tools_version}
-   %define rtems_tools_version HEAD
-  %endif
-  %if %{defined rtems_tools_git_commit_hash}
-   %define rtems_tools_git_checkout ?checkout=%{defined rtems_tools_git_commit_hash}
-  %else
-   %define rtems_tools_git_checkout %{nil}
-  %endif
-
-  %source set rtems-tools git://git.rtems.org/rtems-tools.git?reset=hard?fetch?branch=%{rtems_tools_version}?pull%{rtems_tools_git_checkout}
+  %define rtems_tools_git_checkout %{nil}
  %endif
 
+ %source set rtems-tools git://git.rtems.org/rtems-tools.git?reset=hard?fetch?branch=%{rtems_tools_version}?pull%{rtems_tools_git_checkout}
+
  #
  # The RTEMS Tools build instructions.
  #




More information about the vc mailing list