summaryrefslogtreecommitdiffstats
path: root/rtems/config/4.11/rtems-autotools.bset
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2013-07-16 10:02:41 +1000
committerChris Johns <chrisj@rtems.org>2013-07-16 10:02:41 +1000
commitebf8a1f0f82b35235c39b67bde9e6acc2d464dee (patch)
tree584caa96e8ee80998f9754ecf45ae13edf03636e /rtems/config/4.11/rtems-autotools.bset
parentMove newlib to 14-Jul-2013. (diff)
downloadrtems-source-builder-ebf8a1f0f82b35235c39b67bde9e6acc2d464dee.tar.bz2
Automtically build the Autotools to bootstrap RTEMS.
This changes adds support to build the autotools if the host installed version is not a suitable version. Autoconf and automake have hard coded references to the install prefix and host tools and this makes it impossible to relocate, that is use in any path other than the install prefix. To bootstrap automake you need to first build a suitable autoconf and with that you can built automake for the install prefix. The other complication is not referencing the install prefix in the path when building in the RSB. Having the install prefix in the path can result in strange issues appearing such as gcc using a new assembler feature not present in an older assember installed under the install prefix. The process is to build the autotools using an install prefix to an internal path inside the RSB temporary path and to use that autoconf to build the version for the install prefix. The internal install prefix version is also used to bootstrap RTEMS.
Diffstat (limited to '')
-rw-r--r--rtems/config/4.11/rtems-autotools.bset27
1 files changed, 13 insertions, 14 deletions
diff --git a/rtems/config/4.11/rtems-autotools.bset b/rtems/config/4.11/rtems-autotools.bset
index cf71f8d..2eeffb7 100644
--- a/rtems/config/4.11/rtems-autotools.bset
+++ b/rtems/config/4.11/rtems-autotools.bset
@@ -1,23 +1,22 @@
#
# Tools Set for RTEMS 4.11 Autotools Stable
#
-
-%define release 1
-
-%define rtems_arch none
-
+# Autoconf and automake are not relocatable and cannot be cross-compiled.
+# RTEMS uses autoconf and automake and building RTEMS in the RSB requires
+# bootstrapping and this requires a current autoconf and automake. The RSB
+# provides to support by:
#
-# The RTEMS 4.11 base defines.
+# 1. Building and installing autoconf and automake with a prefix to a
+# temporary internal path.
+# 2. Using the temporary internal build, build and install another copy
+# using the final prefix location.
#
-%include rtems-4.11-base.bset
#
-# The autotoolspackage.
+# A magic internal path that would break if changes in the defaults.mc
+# macro file are made.
#
-package: rtems-%{rtems_version}-autotools-%{release}
+%define _internal_autotools_path %{_tmppath}/sb-%{_uid}/${SB_PREFIX_CLEAN}
-#
-# Tools configuration.
-#
-devel/autoconf-2.69-1
-devel/automake-1.12.6-1
+4.11/rtems-autotools-internal
+4.11/rtems-autotools-base