From db6d3eb83ad928b058bc56c2ebb7c2086bf22188 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Tue, 20 Jan 2015 08:57:44 +1100 Subject: Build rtems-tools for the host with a Cxc build. --- rtems/config/tools/rtems-tools-git-1.cfg | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'rtems/config/tools/rtems-tools-git-1.cfg') 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} -- cgit v1.2.3