diff options
author | Chris Johns <chrisj@rtems.org> | 2015-12-10 16:54:40 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2015-12-11 12:11:54 +1100 |
commit | 40e4222d878ae8be13cf24443838fffeb5d542f5 (patch) | |
tree | 8e701925a9df581982681199096a401e9f8f3e85 /rtems/config/tools/rtems-tools-common-1.cfg | |
parent | Ignore generated XML files. (diff) | |
download | rtems-source-builder-40e4222d878ae8be13cf24443838fffeb5d542f5.tar.bz2 |
Support released downloading of the RTEMS Tools and RTEMS Kernel.
Add a --without-error-reports flags to reduce the noise on --with-downloading.
Diffstat (limited to 'rtems/config/tools/rtems-tools-common-1.cfg')
-rw-r--r-- | rtems/config/tools/rtems-tools-common-1.cfg | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/rtems/config/tools/rtems-tools-common-1.cfg b/rtems/config/tools/rtems-tools-common-1.cfg new file mode 100644 index 0000000..e1921c3 --- /dev/null +++ b/rtems/config/tools/rtems-tools-common-1.cfg @@ -0,0 +1,54 @@ +# +# RTEMS Tools Version 2. +# +# This configuration file configure's, builds and install's RTEMS Tools. +# + +Name: rtems-tools-%{rtems_tools_version}-%{release} +Summary: RTEMS Tools %{rtems_tools_version} for host %{_host} +Version: %{rtems_tools_version} +Release: %{release} +URL: http://www.rtems.org/ +BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n) +License: BSD-2-Caluse + GPL-2.0 + +# +# Prepare the source code. +# +%prep + # save the build top directory and cd back to it rather than + # using 'cd ..' because some shells change $PWD to a symlink's + # target location and 'cd ..' fails. + build_top=$(pwd) + + source_dir_rtems_tools="%{name}" + %source setup rtems-tools -q -D -n %{name} + %patch setup rtems-tools -p1 + + cd ${build_top} + +%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 ${RT_HOST} --prefix=%{_prefix} + ./waf + cd ${build_top} + +%install + build_top=$(pwd) + + %{__rmdir} $SB_BUILD_ROOT + + cd ${source_dir_rtems_tools} + ./waf --destdir=$SB_BUILD_ROOT install + cd ${build_top} |