source: rtems-source-builder/rtems/config/tools/rtems-tools-git-1.cfg @ eea3793

Last change on this file since eea3793 was 96c414c, checked in by Chris Johns <chrisj@…>, on 10/22/18 at 00:59:10

windows: Remove BuildRoot? from all configs, add a short tmp path.

Closes #3562.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1#
2# RTEMS Tools GIT Version 1.
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/
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.