blob: 652a463176017d15ae8e3f657b58065b100669cb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#
# RTEMS Tools from git://git.rtems.org/rtems-tools.git
#
#
# Optionally enable/disable building the RTEMS Tools via the command line.
#
%if %{defined with_rtems_tools}
%define rtems_tools_build 1
%endif
%if %{defined without_rtems_tools}
%define rtems_tools_build 0
%endif
#
# Build by default.
#
%if ! %{defined rtems_tools_build}
%define rtems_tools_build 1
%endif
%if %{rtems_tools_build}
#
# If the RSB is released look for a release tarball else use git.
#
%if %{rsb_released}
%source set rtems-tools %{rtems_release_url}/%{rtems_tools_version}/rtems-tools-%{rtems_tools_version}.tar.xz
%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?branch=%{rtems_tools_version}?pull%{rtems_tools_git_checkout}
%endif
#
# The RTEMS Tools build instructions. We use GIT Release 1.
#
%include tools/rtems-tools-common-1.cfg
%endif
|