mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
Add Canadian Cross support.
Add support to build MinGW tools using Cygwin. This is a Canadian cross build. Do not expand the directives when parsing a configuration file. Hold in the package object the text as read from the configuration file. Still parse the logic but leave the macros. This allows a configuration to be varied when the build happens. The Canadian cross uses this to build a build compiler used to build a Cxc runtime. Add Cxc support to the build module. In the defaults add rm and rmfile macros, add Cxc paths and pre-build script code. In the setbuilder check for a Cxc build and if so and the package allow Cxc build the build host version then the host target version. Add cygiwn support to the defaults processing and to the Windows module.
This commit is contained in:
@@ -8,6 +8,9 @@
|
||||
%define binutils_version 2.20.1
|
||||
|
||||
Patch0: %{rtems_binutils_patches}/binutils-2.20.1-rtems4.10-20100826.diff
|
||||
%ifos win32 mingw ming32 cygwin
|
||||
Patch1: %{rtems_binutils_patches}/cygwin/binutils-2.20.1-cygwin-w64-20130324.diff
|
||||
%endif
|
||||
|
||||
#
|
||||
# RTEMS Build Set patches.
|
||||
|
@@ -15,14 +15,6 @@
|
||||
%define with_plugin 0
|
||||
%define with_iconv 0
|
||||
|
||||
%ifn %{defined enable_cxx}
|
||||
%define enable_cxx 1
|
||||
%endif
|
||||
|
||||
%ifn %{defined enable_obsolete}
|
||||
%define enable_obsolete 0
|
||||
%endif
|
||||
|
||||
#
|
||||
# The RTEMS 4.9 patches
|
||||
#
|
||||
|
@@ -2,6 +2,14 @@
|
||||
# GCC 4.4.7, Newlib 1.18.0
|
||||
#
|
||||
|
||||
#
|
||||
# M32C C++ does not work.
|
||||
# gcc-4.4.7/libstdc++-v3/src/mt_allocator.cc:76: error: cast from 'void*' to 'size_t' loses precision
|
||||
#
|
||||
%if %{_target} == m32c-rtems4.10
|
||||
%define enable_cxx 0
|
||||
%endif
|
||||
|
||||
%include %{_configdir}/checks.cfg
|
||||
%include %{_configdir}/base.cfg
|
||||
|
||||
@@ -15,18 +23,6 @@
|
||||
%define with_plugin 0
|
||||
%define with_iconv 1
|
||||
|
||||
#
|
||||
# M32C C++ does not work.
|
||||
# gcc-4.4.7/libstdc++-v3/src/mt_allocator.cc:76: error: cast from 'void*' to 'size_t' loses precision
|
||||
#
|
||||
%if %{_target} == m32c-rtems4.10
|
||||
%define enable_cxx 0
|
||||
%endif
|
||||
|
||||
%ifn %{defined enable_cxx}
|
||||
%define enable_cxx 1
|
||||
%endif
|
||||
|
||||
#
|
||||
# The RTEMS 4.10 patches
|
||||
#
|
||||
|
@@ -15,14 +15,6 @@
|
||||
%define with_plugin 0
|
||||
%define with_iconv 1
|
||||
|
||||
%ifn %{defined enable_cxx}
|
||||
%define enable_cxx 1
|
||||
%endif
|
||||
|
||||
%ifn %{defined enable_obsolete}
|
||||
%define enable_obsolete 0
|
||||
%endif
|
||||
|
||||
#
|
||||
# Libiberty strsignal fix
|
||||
#
|
||||
|
@@ -2,19 +2,6 @@
|
||||
# GCC 4.6.3, Newlib 1.20.0
|
||||
#
|
||||
|
||||
%include %{_configdir}/checks.cfg
|
||||
%include %{_configdir}/base.cfg
|
||||
|
||||
%define gcc_version 4.6.3
|
||||
%define newlib_version 1.20.0
|
||||
%define mpfr_version 3.0.1
|
||||
%define mpc_version 0.8.2
|
||||
%define gmp_version 5.0.5
|
||||
|
||||
%define with_threads 1
|
||||
%define with_plugin 0
|
||||
%define with_iconv 1
|
||||
|
||||
#
|
||||
# AVR C++ does not work.
|
||||
# configure: error: unable to detect exception model
|
||||
@@ -31,9 +18,18 @@
|
||||
%define enable_cxx 0
|
||||
%endif
|
||||
|
||||
%ifn %{defined enable_cxx}
|
||||
%define enable_cxx 1
|
||||
%endif
|
||||
%include %{_configdir}/checks.cfg
|
||||
%include %{_configdir}/base.cfg
|
||||
|
||||
%define gcc_version 4.6.3
|
||||
%define newlib_version 1.20.0
|
||||
%define mpfr_version 3.0.1
|
||||
%define mpc_version 0.8.2
|
||||
%define gmp_version 5.0.5
|
||||
|
||||
%define with_threads 1
|
||||
%define with_plugin 0
|
||||
%define with_iconv 1
|
||||
|
||||
#
|
||||
# The RTEMS 4.11 patches
|
||||
|
@@ -2,19 +2,6 @@
|
||||
# GCC 4.7.2., Newlib 1.20.0
|
||||
#
|
||||
|
||||
%include %{_configdir}/checks.cfg
|
||||
%include %{_configdir}/base.cfg
|
||||
|
||||
%define gcc_version 4.7.2
|
||||
%define newlib_version 1.20.0
|
||||
%define mpfr_version 3.0.1
|
||||
%define mpc_version 0.8.2
|
||||
%define gmp_version 5.0.5
|
||||
|
||||
%define with_threads 1
|
||||
%define with_plugin 0
|
||||
%define with_iconv 1
|
||||
|
||||
#
|
||||
# AVR C++ does not work.
|
||||
# configure: error: unable to detect exception model
|
||||
@@ -31,10 +18,6 @@
|
||||
%define enable_cxx 0
|
||||
%endif
|
||||
|
||||
%ifn %{defined enable_cxx}
|
||||
%define enable_cxx 1
|
||||
%endif
|
||||
|
||||
#
|
||||
# If arm-rtems4.11 add --enable-obsolete.
|
||||
#
|
||||
@@ -44,6 +27,19 @@
|
||||
%define enable_obsolete 0
|
||||
%endif
|
||||
|
||||
%include %{_configdir}/checks.cfg
|
||||
%include %{_configdir}/base.cfg
|
||||
|
||||
%define gcc_version 4.7.2
|
||||
%define newlib_version 1.20.0
|
||||
%define mpfr_version 3.0.1
|
||||
%define mpc_version 0.8.2
|
||||
%define gmp_version 5.0.5
|
||||
|
||||
%define with_threads 1
|
||||
%define with_plugin 0
|
||||
%define with_iconv 1
|
||||
|
||||
#
|
||||
# The RTEMS 4.11 patches
|
||||
#
|
||||
|
@@ -16,14 +16,6 @@
|
||||
%define with_plugin 0
|
||||
%define with_iconv 1
|
||||
|
||||
%ifn %{defined enable_cxx}
|
||||
%define enable_cxx 1
|
||||
%endif
|
||||
|
||||
%ifn %{defined enable_obsolete}
|
||||
%define enable_obsolete 0
|
||||
%endif
|
||||
|
||||
#
|
||||
# The RTEMS 4.11 patches
|
||||
#
|
||||
@@ -32,7 +24,7 @@ Patch0: %{rtems_gcc_patches}/gcc-4.7.2-rtems4.11-20121026.diff
|
||||
|
||||
# Incompatible with Texinfo 5
|
||||
%if %{__makeinfo_ver} >= 5.0
|
||||
%error Incomaptible version of makeinfo found!
|
||||
%error Incomaptible version of makeinfo found!
|
||||
%endif
|
||||
|
||||
#
|
||||
|
@@ -15,10 +15,6 @@
|
||||
%define with_plugin 0
|
||||
%define with_iconv 1
|
||||
|
||||
%ifn %{defined enable_cxx}
|
||||
%define enable_cxx 1
|
||||
%endif
|
||||
|
||||
#
|
||||
# The RTEMS 4.11 patches
|
||||
#
|
||||
|
Reference in New Issue
Block a user