summaryrefslogtreecommitdiffstats
path: root/rtems/config/tools/rtems-tools-git-1.cfg
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2015-01-20 08:57:44 +1100
committerChris Johns <chrisj@rtems.org>2015-01-20 08:57:44 +1100
commitdb6d3eb83ad928b058bc56c2ebb7c2086bf22188 (patch)
tree1ece47c28229eeaca25a313bb752bda1358075d5 /rtems/config/tools/rtems-tools-git-1.cfg
parentAdd the host name to the package name. (diff)
downloadrtems-source-builder-db6d3eb83ad928b058bc56c2ebb7c2086bf22188.tar.bz2
Build rtems-tools for the host with a Cxc build.
Diffstat (limited to 'rtems/config/tools/rtems-tools-git-1.cfg')
-rw-r--r--rtems/config/tools/rtems-tools-git-1.cfg11
1 files changed, 10 insertions, 1 deletions
diff --git a/rtems/config/tools/rtems-tools-git-1.cfg b/rtems/config/tools/rtems-tools-git-1.cfg
index dc9bdae..0adeb6a 100644
--- a/rtems/config/tools/rtems-tools-git-1.cfg
+++ b/rtems/config/tools/rtems-tools-git-1.cfg
@@ -29,8 +29,17 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
%build
build_top=$(pwd)
+ #
+ # Provide the host for a Cxc build.
+ #
+ if test "%{_build}" != "%{_host}" ; then
+ RT_HOST="-host=%{_host}"
+ else
+ RT_HOST=
+ fi
+
cd ${source_dir_rtems_tools}
- ./waf configure --prefix=%{_prefix}
+ ./waf configure ${RT_HOST} --prefix=%{_prefix}
./waf
cd ${build_top}