diff options
Diffstat (limited to 'rtems/config/tools/rtems-tools-1.cfg')
-rw-r--r-- | rtems/config/tools/rtems-tools-1.cfg | 26 |
1 files changed, 9 insertions, 17 deletions
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. # |