4.11
Last change
on this file since da1bc8c was
da1bc8c,
checked in by Chris Johns <chrisj@…>, on 12/10/15 at 05:54:40
|
Support released downloading of the RTEMS Tools and RTEMS Kernel.
Add a --without-error-reports flags to reduce the noise on --with-downloading.
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | # |
---|
2 | # RTEMS Tools Version 2. |
---|
3 | # |
---|
4 | # This configuration file configure's, builds and install's RTEMS Tools. |
---|
5 | # |
---|
6 | |
---|
7 | Name: rtems-tools-%{rtems_tools_version}-%{release} |
---|
8 | Summary: RTEMS Tools %{rtems_tools_version} for host %{_host} |
---|
9 | Version: %{rtems_tools_version} |
---|
10 | Release: %{release} |
---|
11 | URL: http://www.rtems.org/ |
---|
12 | BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n) |
---|
13 | License: BSD-2-Caluse + GPL-2.0 |
---|
14 | |
---|
15 | # |
---|
16 | # Prepare the source code. |
---|
17 | # |
---|
18 | %prep |
---|
19 | # save the build top directory and cd back to it rather than |
---|
20 | # using 'cd ..' because some shells change $PWD to a symlink's |
---|
21 | # target location and 'cd ..' fails. |
---|
22 | build_top=$(pwd) |
---|
23 | |
---|
24 | source_dir_rtems_tools="%{name}" |
---|
25 | %source setup rtems-tools -q -D -n %{name} |
---|
26 | %patch setup rtems-tools -p1 |
---|
27 | |
---|
28 | cd ${build_top} |
---|
29 | |
---|
30 | %build |
---|
31 | build_top=$(pwd) |
---|
32 | |
---|
33 | # |
---|
34 | # Provide the host for a Cxc build. |
---|
35 | # |
---|
36 | if test "%{_build}" != "%{_host}" ; then |
---|
37 | RT_HOST="-host=%{_host}" |
---|
38 | else |
---|
39 | RT_HOST= |
---|
40 | fi |
---|
41 | |
---|
42 | cd ${source_dir_rtems_tools} |
---|
43 | ./waf configure ${RT_HOST} --prefix=%{_prefix} |
---|
44 | ./waf |
---|
45 | cd ${build_top} |
---|
46 | |
---|
47 | %install |
---|
48 | build_top=$(pwd) |
---|
49 | |
---|
50 | %{__rmdir} $SB_BUILD_ROOT |
---|
51 | |
---|
52 | cd ${source_dir_rtems_tools} |
---|
53 | ./waf --destdir=$SB_BUILD_ROOT install |
---|
54 | cd ${build_top} |
---|
Note: See
TracBrowser
for help on using the repository browser.