source: rtems-source-builder/rtems/config/tools/rtems-tools-common-1.cfg @ 00b60d7

4.104.95
Last change on this file since 00b60d7 was 00b60d7, checked in by Chris Johns <chrisj@…>, on 12/13/15 at 04:10:04

Fix the building of the RTEMS Tools from a tar file.

  • 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
7Name:      rtems-tools-%{rtems_tools_version}-%{release}
8Summary:   RTEMS Tools %{rtems_tools_version} for host %{_host}
9Version:   %{rtems_tools_version}
10Release:   %{release}
11URL:       http://www.rtems.org/
12BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
13License:   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  rtems_tools_source="rtems-tools-%{rtems_tools_version}"
25
26  %source setup rtems-tools -q -n ${rtems_tools_source}
27  %patch setup rtems-tools -p1
28
29  source_dir_rtems_tools=${rtems_tools_source}
30
31  cd ${build_top}
32
33%build
34  build_top=$(pwd)
35
36  #
37  # Provide the host for a Cxc build.
38  #
39  if test "%{_build}" != "%{_host}" ; then
40    RT_HOST="-host=%{_host}"
41  else
42    RT_HOST=
43  fi
44
45  cd ${source_dir_rtems_tools}
46  ./waf configure ${RT_HOST} --prefix=%{_prefix}
47  ./waf
48  cd ${build_top}
49
50%install
51  build_top=$(pwd)
52
53  %{__rmdir} $SB_BUILD_ROOT
54
55  cd ${source_dir_rtems_tools}
56  ./waf --destdir=$SB_BUILD_ROOT install
57  cd ${build_top}
Note: See TracBrowser for help on using the repository browser.