62 Commits

Author SHA1 Message Date
Chris Johns
00693f913b config: Default _internal_autotools_path to nil when not an internal build. 2014-02-04 18:19:19 +11:00
Chris Johns
b8b0f4452f config: Use ${build_top} to change dir to parent.
On NetBSD with ksh changing into a symlink made PWD the link's
target path so a 'cd ..' returned you to that parent and not
the parent you started from. Record the build top and then
change back to that path.

Change the package names to the actual packages and remove the
extra directory in the build tree. This makes the paths simpler.
2013-09-10 16:19:20 +10:00
Chris Johns
2f4bd55055 config: Fix the empty case of extra gcc options. 2013-08-27 07:47:44 +10:00
Chris Johns
f4e903532d config: Fix the use of the extra options. 2013-08-22 13:24:14 +10:00
Chris Johns
75aa2db1c6 config: Add support for extra GCC configure options. 2013-08-22 11:38:10 +10:00
Chris Johns
27d6ea0dd1 config: Add support for iconv encodings.
Turn off iconv support for the AVR because the arrays are too big.
2013-08-14 14:06:30 +10:00
Chris Johns
76d4899a27 config: Control languages from the command line --with/--without options.
Allow a user to include languages by --with-objc or --without-cxx.
2013-08-14 13:56:24 +10:00
Chris Johns
ff0fc8eed0 config: Check the path for a valid autoconf. 2013-08-08 11:43:52 +10:00
Chris Johns
6d32fe7eb0 CONFIG: PR 2127 - Build fails on Linux.
Fix shell tests where '==' was used rather than '='.
2013-07-21 08:55:11 +10:00
Chris Johns
ebf8a1f0f8 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.
2013-07-16 10:02:41 +10:00
Chris Johns
2626dbae7c Fix the Cxc build configuration for the DTC tool. 2013-07-14 09:11:21 +10:00
Chris Johns
d925ea3c48 Align the 4.8 and 4.5 configurations with the gcc-common. 2013-05-20 17:19:47 +10:00
Chris Johns
db65c6aaf1 Support Canadian cross builds on FreeBSD (and other hosts).
Set up the rules to manage the separate host and build setting to
allow a Canadian cross to complete.

Update the scripts to move the build directory and host/build
flags into the defaults so they are common for all build
configurations.
2013-05-15 12:15:14 +10:00
Chris Johns
1a56a07605 Add bare/config and move the source-builder/config to it.
Rework the RTEMS build set files to point to the new location.

Move the files into devel, this follows the ports naming in
FreeBSD.

Update the macros, defaults, and options to support this.
2013-05-14 11:08:02 +10:00
Chris Johns
a48a4781b6 Updated 4.11 tool versions. 2013-04-30 15:01:30 +10:00
Chris Johns
624954ba0b Add macro include support. Use it for building from head.
This change provides a simple way to build all parts of the tools from
version control.
2013-04-26 12:05:53 +10:00
Chris Johns
8f309979dc Add binutils support for snapshot builds. 2013-04-26 12:05:13 +10:00
Chris Johns
9cf846d2a5 Remove all patches. 2013-04-25 16:50:34 +10:00
Chris Johns
8029c99b40 Undefine all possible patches. 2013-04-25 15:06:44 +10:00
Chris Johns
c65b9eb7ec Change the CVS download path to include the module and tag/date. 2013-04-25 15:06:20 +10:00
Chris Johns
9131a562ee Move the common snapshots to the common config tree. Add gdb. 2013-04-24 17:32:49 +10:00
Chris Johns
86b2b4fe63 Add support to check for a valid autoconf for RTEMS. 2013-04-23 16:03:25 +10:00
Chris Johns
4ce931b413 Add CVS download support.
These changes complete the CVS download support.
2013-04-20 21:47:28 +10:00
Chris Johns
649a64c0af Add download git support.
Add support to use a git cloned repo as the source. Move the download
code out of the build module and into a separate module. Add to this
module support for git.

Update the GCC common configuration to support using a symlinked
git repo.

Add checks for all languages.
2013-04-16 14:28:34 +10:00
Chris Johns
b8ee74d356 Add a %testing section to the configuration files. 2013-04-15 13:26:36 +10:00
Chris Johns
ff91af27c3 Add _forced_static to the default.
This is used in the configuration scripts to specify which
libraries you want to be linked as static. For gdb this is
libexpat which is built as part of most build sets.
2013-04-15 11:45:00 +10:00
Chris Johns
9384fbad86 Add setecting a snapshot package. 2013-04-13 10:42:04 +10:00
Chris Johns
7e48e8fb57 Make the expat library static to make relocatable. 2013-04-10 16:07:21 +10:00
Chris Johns
530a9385a7 Add the GCC version message. 2013-04-09 09:25:56 +10:00
Chris Johns
8dedfc741a PR 2106. Fixed the include name. 2013-04-02 20:53:32 +11:00
Chris Johns
2b069dc82a Merge back in the multi-patch support to the gcc common configuration. 2013-04-02 10:17:57 +11:00
Chris Johns
4f26bdb2f0 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.
2013-04-01 15:19:56 +11:00
Dhananjay Balan
97c4323654 Add version configuration 2013-03-19 14:34:07 +11:00
Chris Johns
3643c48bfb Add RTEMS 4.9 support for i386 and SPARC. 2013-03-15 15:34:24 +11:00
Chris Johns
e39d5e20ab Allow a build set to provide the source0 path. 2013-03-15 15:34:24 +11:00
Chris Johns
ce4759ef17 Add build set patch option support. 2013-03-12 09:22:40 +11:00
Chris Johns
a420a64794 Fix the patch opts logic typo. 2013-03-12 09:22:01 +11:00
Chris Johns
3bab09c8eb Add support for build set patch options.
Remove the hard coded dependency on all patches bring -p1 and allow
a patch to optionally provide a patch option. The ARM EABI patch is
a -p0 patch.
2013-03-11 13:55:56 +11:00
Chris Johns
8301afa027 Switch LM32 to gcc-4.5.3.
This is the reported known working tool set by the Milkymist project.

Currently this does not build on MacOS. It could be a host issue with
the age of the compiler.
2013-03-09 08:12:47 +11:00
Chris Johns
0606a65718 Clean path when building autoconf and automake.
Autoconf hard codes paths into itself. This change is a first
pass at allowing a clean environment to let automake build. The
ability to 'make install DESTDIR=xxx' autoconf then use it to
build automake needs a clean environment. The purpose is to
allow a prefix that needs root without building and packaging
when root.
2013-03-05 19:43:43 +11:00
Chris Johns
9867b1c97a Update the summary to include version number of parts. 2013-03-04 18:02:49 +11:00
Chris Johns
71329cd291 Fix conditional logic. 2013-03-04 18:02:06 +11:00
Chris Johns
bcae849cf1 Cleanup the %setup flags 2013-02-28 16:37:27 +11:00
Chris Johns
d5fa35c806 RTEMS uses 1.12.2. 2013-02-24 18:17:27 +11:00
Chris Johns
4f5321fa65 Fix support for GCC being build as C++. 2013-02-20 16:39:41 +11:00
Chris Johns
a32dcbdda5 Add unstable.
Add a tree of unstable configurations to track recent gcc source.
2013-02-20 14:46:51 +11:00
Chris Johns
9f04b64113 Architecture arm-rtems4.11 uses EABI.
Switch the arm-rtems4.11 to use EABI. The patch do this is taken from
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53325.
2013-02-20 11:18:10 +11:00
Chris Johns
ebc505ccf3 Clean up the configure command for expat. 2013-02-17 11:49:41 +11:00
Chris Johns
b1202fcbc4 Moxie GDB DTC support added
The Moxie GDB simulator uses the DTC (device tree compiler) to
build a device tree. This is added and built before the gdb.
2013-02-14 16:14:38 +11:00
Chris Johns
87fc7e021e Add Moxie support.
Binutils and the compiler build how-ever gdb needs a tool called 'dtc'
to build the simulator. This is not present on my FreeBSD test box.
2013-02-14 12:32:03 +11:00