4.104.95
Last change
on this file since 6e490ae was
6e490ae,
checked in by Chris Johns <chrisj@…>, on 03/14/16 at 05:23:19
|
sb: Update download to check the config file for release URL control.
Provide without_release_url support in the configuration file so
the release tarball download of the kernel and tools uses the
release's top level directory and not the sources directory.
Closes #2481.
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[1b11d05] | 1 | # |
---|
[00b60d7] | 2 | # RTEMS Tools from git for a release. |
---|
[1b11d05] | 3 | # |
---|
| 4 | |
---|
| 5 | # |
---|
| 6 | # Optionally enable/disable building the RTEMS Tools via the command line. |
---|
| 7 | # |
---|
| 8 | %if %{defined with_rtems_tools} |
---|
| 9 | %define rtems_tools_build 1 |
---|
| 10 | %endif |
---|
| 11 | %if %{defined without_rtems_tools} |
---|
| 12 | %define rtems_tools_build 0 |
---|
| 13 | %endif |
---|
| 14 | |
---|
| 15 | # |
---|
| 16 | # Build by default. |
---|
| 17 | # |
---|
| 18 | %if ! %{defined rtems_tools_build} |
---|
| 19 | %define rtems_tools_build 1 |
---|
| 20 | %endif |
---|
| 21 | |
---|
| 22 | %if %{rtems_tools_build} |
---|
| 23 | # |
---|
[40e4222] | 24 | # If the RSB is released look for a release tarball else use git. |
---|
[1b11d05] | 25 | # |
---|
[40e4222] | 26 | %if %{rsb_released} |
---|
| 27 | %source set rtems-tools %{rtems_release_url}/%{rtems_tools_version}/rtems-tools-%{rtems_tools_version}.tar.xz |
---|
[6e490ae] | 28 | %define without_release_url |
---|
[1b11d05] | 29 | %else |
---|
[40e4222] | 30 | # |
---|
| 31 | # rtems_git_commit_hash : The commit hash else the branch is tracked. |
---|
| 32 | # |
---|
| 33 | %if ! %{defined rtems_tools_version} |
---|
| 34 | %define rtems_tools_version HEAD |
---|
| 35 | %endif |
---|
| 36 | %if %{defined rtems_tools_git_commit_hash} |
---|
| 37 | %define rtems_tools_git_checkout ?checkout=%{defined rtems_tools_git_commit_hash} |
---|
| 38 | %else |
---|
| 39 | %define rtems_tools_git_checkout %{nil} |
---|
| 40 | %endif |
---|
| 41 | |
---|
[318e0c3] | 42 | %source set rtems-tools git://git.rtems.org/rtems-tools.git?reset=hard?fetch?branch=%{rtems_tools_version}?pull%{rtems_tools_git_checkout} |
---|
[1b11d05] | 43 | %endif |
---|
| 44 | |
---|
| 45 | # |
---|
[00b60d7] | 46 | # The RTEMS Tools build instructions. |
---|
[1b11d05] | 47 | # |
---|
[40e4222] | 48 | %include tools/rtems-tools-common-1.cfg |
---|
[1b11d05] | 49 | %endif |
---|
Note: See
TracBrowser
for help on using the repository browser.