5
Line | |
---|
1 | # |
---|
2 | # RTEMS Tools GIT Version 1. |
---|
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 | |
---|
13 | # |
---|
14 | # Prepare the source code. |
---|
15 | # |
---|
16 | %prep |
---|
17 | # save the build top directory and cd back to it rather than |
---|
18 | # using 'cd ..' because some shells change $PWD to a symlink's |
---|
19 | # target location and 'cd ..' fails. |
---|
20 | build_top=$(pwd) |
---|
21 | |
---|
22 | source_dir_rtems_tools="%{name}" |
---|
23 | %source setup rtems-tools -q -D -n %{name} |
---|
24 | %patch setup rtems-tools -p1 |
---|
25 | |
---|
26 | cd ${build_top} |
---|
27 | |
---|
28 | %build |
---|
29 | build_top=$(pwd) |
---|
30 | |
---|
31 | # |
---|
32 | # Provide the host for a Cxc build. |
---|
33 | # |
---|
34 | if test "%{_build}" != "%{_host}" ; then |
---|
35 | RT_HOST="-host=%{_host}" |
---|
36 | else |
---|
37 | RT_HOST= |
---|
38 | fi |
---|
39 | |
---|
40 | cd ${source_dir_rtems_tools} |
---|
41 | ./waf configure ${RT_HOST} --prefix=%{_prefix} |
---|
42 | ./waf |
---|
43 | cd ${build_top} |
---|
44 | |
---|
45 | %install |
---|
46 | build_top=$(pwd) |
---|
47 | |
---|
48 | %{__rmdir} $SB_BUILD_ROOT |
---|
49 | |
---|
50 | cd ${source_dir_rtems_tools} |
---|
51 | ./waf --destdir=$SB_BUILD_ROOT install |
---|
52 | cd ${build_top} |
---|
Note: See
TracBrowser
for help on using the repository browser.