Build rtems-tools for the host with a Cxc build.

This commit is contained in:
Chris Johns 2015-01-20 08:57:44 +11:00
parent 8197b8ea04
commit db6d3eb83a

View File

@ -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}