summaryrefslogtreecommitdiffstats
path: root/rtems/config
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
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 'rtems/config')
-rw-r--r--rtems/config/4.11/rtems-arm.bset1
-rw-r--r--rtems/config/4.11/rtems-autotools-base.bset23
-rw-r--r--rtems/config/4.11/rtems-autotools-internal.bset13
-rw-r--r--rtems/config/4.11/rtems-autotools.bset27
-rw-r--r--rtems/config/4.11/rtems-avr.bset1
-rw-r--r--rtems/config/4.11/rtems-bfin.bset1
-rw-r--r--rtems/config/4.11/rtems-h8300.bset1
-rw-r--r--rtems/config/4.11/rtems-i386.bset1
-rw-r--r--rtems/config/4.11/rtems-lm32.bset1
-rw-r--r--rtems/config/4.11/rtems-m32c.bset1
-rw-r--r--rtems/config/4.11/rtems-m32r.bset1
-rw-r--r--rtems/config/4.11/rtems-m68k.bset1
-rw-r--r--rtems/config/4.11/rtems-microblaze.bset1
-rw-r--r--rtems/config/4.11/rtems-mips.bset1
-rw-r--r--rtems/config/4.11/rtems-moxie.bset1
-rw-r--r--rtems/config/4.11/rtems-nios2.bset1
-rw-r--r--rtems/config/4.11/rtems-powerpc.bset1
-rw-r--r--rtems/config/4.11/rtems-sh.bset1
-rw-r--r--rtems/config/4.11/rtems-sparc.bset1
-rw-r--r--rtems/config/4.11/rtems-sparc64.bset1
-rw-r--r--rtems/config/4.11/rtems-v850.bset1
-rw-r--r--rtems/config/tools/rtems-autoconf-2.69-1.cfg19
-rw-r--r--rtems/config/tools/rtems-automake-1.12.6-1.cfg19
-rw-r--r--rtems/config/tools/rtems-kernel-4-1.cfg3
-rw-r--r--rtems/config/tools/rtems-kernel-4.11.cfg13
25 files changed, 118 insertions, 17 deletions
diff --git a/rtems/config/4.11/rtems-arm.bset b/rtems/config/4.11/rtems-arm.bset
index 4b90413..41b5e77 100644
--- a/rtems/config/4.11/rtems-arm.bset
+++ b/rtems/config/4.11/rtems-arm.bset
@@ -31,6 +31,7 @@
#
# Tools configuration.
#
+4.11/rtems-autotools
devel/expat-2.1.0-1
tools/rtems-binutils-2.23.2-1
tools/rtems-gcc-4.8.1-newlib-cvs-1
diff --git a/rtems/config/4.11/rtems-autotools-base.bset b/rtems/config/4.11/rtems-autotools-base.bset
new file mode 100644
index 0000000..fb446d4
--- /dev/null
+++ b/rtems/config/4.11/rtems-autotools-base.bset
@@ -0,0 +1,23 @@
+#
+# Tools Set for RTEMS 4.11 Internal Autotools Stable
+#
+
+%define release 1
+
+%define rtems_arch none
+
+#
+# The RTEMS 4.11 base defines.
+#
+%include rtems-4.11-base.bset
+
+#
+# The autotools package.
+#
+package: rtems-%{rtems_version}-autotools-%{release}
+
+#
+# Tools configuration.
+#
+tools/rtems-autoconf-2.69-1
+tools/rtems-automake-1.12.6-1
diff --git a/rtems/config/4.11/rtems-autotools-internal.bset b/rtems/config/4.11/rtems-autotools-internal.bset
new file mode 100644
index 0000000..d70dc80
--- /dev/null
+++ b/rtems/config/4.11/rtems-autotools-internal.bset
@@ -0,0 +1,13 @@
+#
+# Tools Set for RTEMS 4.11 Internal Autotools Stable
+#
+# Do not use via the command line.
+#
+
+%define _internal_autotools yes
+%define _disable_collecting yes
+%define _disable_packaging yes
+%define _disable_reporting yes
+%define _disable_installing yes
+
+%include 4.11/rtems-autotools-base.bset
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
diff --git a/rtems/config/4.11/rtems-avr.bset b/rtems/config/4.11/rtems-avr.bset
index 3ad25e2..735dc92 100644
--- a/rtems/config/4.11/rtems-avr.bset
+++ b/rtems/config/4.11/rtems-avr.bset
@@ -38,6 +38,7 @@
#
# Tools configuration.
#
+4.11/rtems-autotools
devel/expat-2.1.0-1
tools/rtems-binutils-2.23.2-1
tools/rtems-gcc-4.8.1-newlib-cvs-1
diff --git a/rtems/config/4.11/rtems-bfin.bset b/rtems/config/4.11/rtems-bfin.bset
index f9bb5a3..5f883b6 100644
--- a/rtems/config/4.11/rtems-bfin.bset
+++ b/rtems/config/4.11/rtems-bfin.bset
@@ -20,6 +20,7 @@
#
# Tools configuration.
#
+4.11/rtems-autotools
devel/expat-2.1.0-1
tools/rtems-binutils-2.23.2-1
tools/rtems-gcc-4.8.1-newlib-cvs-1
diff --git a/rtems/config/4.11/rtems-h8300.bset b/rtems/config/4.11/rtems-h8300.bset
index 2179bcc..3074181 100644
--- a/rtems/config/4.11/rtems-h8300.bset
+++ b/rtems/config/4.11/rtems-h8300.bset
@@ -20,6 +20,7 @@
#
# Tools configuration.
#
+4.11/rtems-autotools
devel/expat-2.1.0-1
tools/rtems-binutils-2.23.2-1
tools/rtems-gcc-4.8.1-newlib-cvs-1
diff --git a/rtems/config/4.11/rtems-i386.bset b/rtems/config/4.11/rtems-i386.bset
index 77be484..3860fb0 100644
--- a/rtems/config/4.11/rtems-i386.bset
+++ b/rtems/config/4.11/rtems-i386.bset
@@ -24,6 +24,7 @@
#
# Tools configuration.
#
+4.11/rtems-autotools
devel/expat-2.1.0-1
tools/rtems-binutils-2.23.2-1
tools/rtems-gcc-4.8.1-newlib-cvs-1
diff --git a/rtems/config/4.11/rtems-lm32.bset b/rtems/config/4.11/rtems-lm32.bset
index 9f1941c..cbf5524 100644
--- a/rtems/config/4.11/rtems-lm32.bset
+++ b/rtems/config/4.11/rtems-lm32.bset
@@ -25,6 +25,7 @@
#
# Tools configuration.
#
+4.11/rtems-autotools
devel/expat-2.1.0-1
tools/rtems-binutils-2.23.2-1
tools/rtems-gcc-4.5.3-newlib-2.0.0-1
diff --git a/rtems/config/4.11/rtems-m32c.bset b/rtems/config/4.11/rtems-m32c.bset
index 03490b1..765c050 100644
--- a/rtems/config/4.11/rtems-m32c.bset
+++ b/rtems/config/4.11/rtems-m32c.bset
@@ -34,6 +34,7 @@
#
# Tools configuration.
#
+4.11/rtems-autotools
devel/expat-2.1.0-1
tools/rtems-binutils-2.23.2-1
tools/rtems-gcc-4.8.1-newlib-cvs-1
diff --git a/rtems/config/4.11/rtems-m32r.bset b/rtems/config/4.11/rtems-m32r.bset
index 87be740..5991283 100644
--- a/rtems/config/4.11/rtems-m32r.bset
+++ b/rtems/config/4.11/rtems-m32r.bset
@@ -20,6 +20,7 @@
#
# Tools configuration.
#
+4.11/rtems-autotools
devel/expat-2.1.0-1
tools/rtems-binutils-2.23.2-1
tools/rtems-gcc-4.8.1-newlib-cvs-1
diff --git a/rtems/config/4.11/rtems-m68k.bset b/rtems/config/4.11/rtems-m68k.bset
index 148e93a..2f470d0 100644
--- a/rtems/config/4.11/rtems-m68k.bset
+++ b/rtems/config/4.11/rtems-m68k.bset
@@ -21,6 +21,7 @@
#
# Tools configuration.
#
+4.11/rtems-autotools
devel/expat-2.1.0-1
tools/rtems-binutils-2.23.2-1
tools/rtems-gcc-4.8.1-newlib-cvs-1
diff --git a/rtems/config/4.11/rtems-microblaze.bset b/rtems/config/4.11/rtems-microblaze.bset
index da8cd0e..eac2ea1 100644
--- a/rtems/config/4.11/rtems-microblaze.bset
+++ b/rtems/config/4.11/rtems-microblaze.bset
@@ -25,6 +25,7 @@
#
# Tools configuration.
#
+4.11/rtems-autotools
devel/expat-2.1.0-1
tools/rtems-binutils-2.23.2-1
tools/rtems-gcc-4.8.1-newlib-cvs-1
diff --git a/rtems/config/4.11/rtems-mips.bset b/rtems/config/4.11/rtems-mips.bset
index 7fef992..d6cf3d8 100644
--- a/rtems/config/4.11/rtems-mips.bset
+++ b/rtems/config/4.11/rtems-mips.bset
@@ -20,6 +20,7 @@
#
# Tools configuration.
#
+4.11/rtems-autotools
devel/expat-2.1.0-1
tools/rtems-binutils-2.23.2-1
tools/rtems-gcc-4.8.1-newlib-cvs-1
diff --git a/rtems/config/4.11/rtems-moxie.bset b/rtems/config/4.11/rtems-moxie.bset
index b3058df..edaa901 100644
--- a/rtems/config/4.11/rtems-moxie.bset
+++ b/rtems/config/4.11/rtems-moxie.bset
@@ -26,6 +26,7 @@
#
# Tools configuration.
#
+4.11/rtems-autotools
devel/expat-2.1.0-1
devel/dtc-1.2.0
tools/rtems-binutils-2.23.2-1
diff --git a/rtems/config/4.11/rtems-nios2.bset b/rtems/config/4.11/rtems-nios2.bset
index 969fcdc..602a853 100644
--- a/rtems/config/4.11/rtems-nios2.bset
+++ b/rtems/config/4.11/rtems-nios2.bset
@@ -22,6 +22,7 @@
#
# Tools configuration.
#
+4.11/rtems-autotools
devel/expat-2.1.0-1
tools/rtems-nios2-binutils-2.20-1
tools/rtems-nios2-gcc-4.1-newlib-1.19.0-1
diff --git a/rtems/config/4.11/rtems-powerpc.bset b/rtems/config/4.11/rtems-powerpc.bset
index 6355dff..8d0158a 100644
--- a/rtems/config/4.11/rtems-powerpc.bset
+++ b/rtems/config/4.11/rtems-powerpc.bset
@@ -20,6 +20,7 @@
#
# Tools configuration.
#
+4.11/rtems-autotools
devel/expat-2.1.0-1
tools/rtems-binutils-2.23.2-1
tools/rtems-gcc-4.8.1-newlib-cvs-1
diff --git a/rtems/config/4.11/rtems-sh.bset b/rtems/config/4.11/rtems-sh.bset
index b38b12b..bc48b70 100644
--- a/rtems/config/4.11/rtems-sh.bset
+++ b/rtems/config/4.11/rtems-sh.bset
@@ -20,6 +20,7 @@
#
# Tools configuration.
#
+4.11/rtems-autotools
devel/expat-2.1.0-1
tools/rtems-binutils-2.23.2-1
tools/rtems-gcc-4.8.1-newlib-cvs-1
diff --git a/rtems/config/4.11/rtems-sparc.bset b/rtems/config/4.11/rtems-sparc.bset
index bb1a7b7..6824d21 100644
--- a/rtems/config/4.11/rtems-sparc.bset
+++ b/rtems/config/4.11/rtems-sparc.bset
@@ -20,6 +20,7 @@
#
# Tools configuration.
#
+4.11/rtems-autotools
devel/expat-2.1.0-1
tools/rtems-binutils-2.23.2-1
tools/rtems-gcc-4.8.1-newlib-cvs-1
diff --git a/rtems/config/4.11/rtems-sparc64.bset b/rtems/config/4.11/rtems-sparc64.bset
index 9088b97..c2ac589 100644
--- a/rtems/config/4.11/rtems-sparc64.bset
+++ b/rtems/config/4.11/rtems-sparc64.bset
@@ -20,6 +20,7 @@
#
# Tools configuration.
#
+4.11/rtems-autotools
devel/expat-2.1.0-1
tools/rtems-binutils-2.23.2-1
tools/rtems-gcc-4.8.1-newlib-cvs-1
diff --git a/rtems/config/4.11/rtems-v850.bset b/rtems/config/4.11/rtems-v850.bset
index 4fb0aab..e1a9988 100644
--- a/rtems/config/4.11/rtems-v850.bset
+++ b/rtems/config/4.11/rtems-v850.bset
@@ -20,6 +20,7 @@
#
# Tools configuration.
#
+4.11/rtems-autotools
devel/expat-2.1.0-1
tools/rtems-binutils-2.23.2-1
tools/rtems-gcc-4.8.1-newlib-cvs-1
diff --git a/rtems/config/tools/rtems-autoconf-2.69-1.cfg b/rtems/config/tools/rtems-autoconf-2.69-1.cfg
new file mode 100644
index 0000000..1db8746
--- /dev/null
+++ b/rtems/config/tools/rtems-autoconf-2.69-1.cfg
@@ -0,0 +1,19 @@
+#
+# Autoconf 2.69.
+#
+
+%include %{_configdir}/checks.cfg
+%include %{_configdir}/base.cfg
+%include %{_configdir}/versions.cfg
+
+%define rtems_autoconf_version 2.69
+
+#
+# Check the version of autoconf in the path.
+#
+%if %{__autoconf_ver} < %{rtems_autoconf_version}
+ #
+ # Tools configuration.
+ #
+ %include %{_configdir}/devel/autoconf-2.69-1.cfg
+%endif
diff --git a/rtems/config/tools/rtems-automake-1.12.6-1.cfg b/rtems/config/tools/rtems-automake-1.12.6-1.cfg
new file mode 100644
index 0000000..1585cf4
--- /dev/null
+++ b/rtems/config/tools/rtems-automake-1.12.6-1.cfg
@@ -0,0 +1,19 @@
+#
+# Automake 1.12.6
+#
+
+%include %{_configdir}/checks.cfg
+%include %{_configdir}/base.cfg
+%include %{_configdir}/versions.cfg
+
+%define rtems_automake_version 1.12.6
+
+#
+# Check the version of automake in the path.
+#
+%if %{__automake_ver} < %{rtems_automake_version}
+ #
+ # Tools configuration.
+ #
+ %include %{_configdir}/devel/automake-1.12.6-1.cfg
+%endif
diff --git a/rtems/config/tools/rtems-kernel-4-1.cfg b/rtems/config/tools/rtems-kernel-4-1.cfg
index 0cec85d..d22f9c2 100644
--- a/rtems/config/tools/rtems-kernel-4-1.cfg
+++ b/rtems/config/tools/rtems-kernel-4-1.cfg
@@ -74,6 +74,9 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
%{?patch8:%patch8 %{?patch8_opts:%{patch8_opts}}%{!?patch8_opts:-p1}}
%{?patch9:%patch9 %{?patch9_opts:%{patch9_opts}}%{!?patch9_opts:-p1}}
%if %{rtems_bootstrap}
+ %if %{defined _internal_autotools_path}
+ export PATH="%{_internal_autotools_path}/bin:${PATH}"
+ %endif
./bootstrap -c
%{_sbdir}/sb-bootstrap --preinstall
%{_sbdir}/sb-bootstrap
diff --git a/rtems/config/tools/rtems-kernel-4.11.cfg b/rtems/config/tools/rtems-kernel-4.11.cfg
index 0eb6272..dd010e3 100644
--- a/rtems/config/tools/rtems-kernel-4.11.cfg
+++ b/rtems/config/tools/rtems-kernel-4.11.cfg
@@ -9,13 +9,20 @@
%define rtems_kernel_version 4.11
#
-# Check the version of autoconf.
+# Check the version of autoconf. Check autoreconf as it is used.
#
-%if %{__autoconf_ver} <= 2.68
- %error Autoconf version 2.69 or higher is needed.
+%if %{__autoreconf_ver} <= 2.68
+ %if %{__autoreconf_bindir_ver} <= 2.68
+ %error Autoconf (autoreconf) version 2.69 or higher is needed.
+ %endif
%endif
#
+# A magic internal path that would break if changes in the defaults.mc
+# macro file are made.
+#
+%define _internal_autotools_path %{_tmppath}/sb-%{_uid}/${SB_PREFIX_CLEAN}
+#
# Pull the latest changes from git each build. Override if this is not what you
# want.
#