231 Commits

Author SHA1 Message Date
Chris Johns
d4fa10150a sb: Fixed the errors as found by Gedare. 2013-08-27 12:21:14 +10:00
Chris Johns
5e536f822d sb: Import log for the copytree warnings. 2013-08-27 07:48:10 +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
85007c35d1 sb: Fix copy_tree coping links on Linux
Overwriting symlinks did not work on Linux. This change manages the
coping of links with special code. The copy worked on FreeBSD.
2013-08-22 11:38:44 +10:00
Chris Johns
75aa2db1c6 config: Add support for extra GCC configure options. 2013-08-22 11:38:10 +10:00
Chris Johns
869b8a6bd3 sb: Fix the copy tree.
Python's distutil's copy tree code maintains a cache of directories
created so deleting a tree a different way then coping the same
tree results in an error because the destination folders in the
tree are not present because distutils thinks they exist. The
solution is to implement a copy tree function.
2013-08-15 12:20:29 +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
6201a0dd88 config: Add the iconv encodings to the defaults. 2013-08-14 13:55:33 +10:00
Chris Johns
ff0fc8eed0 config: Check the path for a valid autoconf. 2013-08-08 11:43:52 +10:00
Chris Johns
01b28157ff SB: Fix internal build and mailing. Output errors to the log. 2013-07-21 10:22:03 +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
80d5fde1ba Remove /usr/local from build flags. They cause problems with BFD etc. 2013-06-17 10:09:24 +10:00
Dhananjay Balan
54a2a5f304 distro_ver fails on Non-LSB distros. 2013-06-04 08:39:46 +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
54d142615c Clean the paths passed as args. 2013-05-17 12:52:22 +10:00
Chris Johns
b83b596ba0 Fix the core detection on Linux. 2013-05-16 15:34:00 +10:00
Chris Johns
1b40c77e7b Make outputing errors optional. 2013-05-15 13:23:41 +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
8a1e7a0ab0 Add better error messages. 2013-05-14 11:12:54 +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
04f447f979 Show a trace message on copy when with --dry-run. 2013-05-13 14:47:14 +10:00
Chris Johns
ca047f1e12 Better error message on rmdir failure. 2013-05-13 14:46:30 +10:00
Chris Johns
5237f1ccb7 Fix support for Windows (MinGW) native builds using MSYS.
Fix paths that need to be coverted to host format.

The shell expansion needs to invoke a shell on Windows as cmd.exe
will not work.

Munch the paths into smaller sizes for Windows due to the limited
path size.
2013-05-13 14:44:49 +10:00
Chris Johns
e2266055bc Add an RTEMS config wrapper around Makefile.inc.
This is an internal command that wraps the Makefile.inc file in
a BSP so you can get at the configuration values from the
command line without knowing anything about Makefile.inc.

To use:

 $ ../source-builder/sb-rtems-config \
     --rtems=$HOME/development/rtems/4.11 \
     --rtems-bsp=sis \
      rtems_cpu_cflags

The option '--list' lists all available configuration values.
The configuration values are match case insensitive and you can
list a number with each printed on a separate line.

The --rtems-bsp can be in new coming standard of arch/bsp such as
'sparc/sis' or you can just supply the bsp, eg 'sis'.
2013-05-13 12:22:18 +10:00
Chris Johns
e191ce83ac Match output with the bootstrap script. 2013-05-10 18:13:38 +10:00
Chris Johns
8ee84604b0 Add check_output if on Python 2.6, ie CentOS. 2013-05-10 11:18:41 +10:00
Chris Johns
c8c60e526f Add svn in /usr/local for FreeBSD. 2013-05-08 09:55:33 +10:00
Chris Johns
df56f7ee09 Improve the email reporter. 2013-05-01 10:42:08 +10:00
Chris Johns
c914e1d306 Add tail support to the log. Email the log tail in a failure. 2013-05-01 10:08:36 +10:00
Chris Johns
3c69de0831 Add the missing Windows versions or MinGW. 2013-05-01 08:34:09 +10:00
Chris Johns
84924e4e52 Fix the open calls to use a host path. 2013-05-01 06:29:12 +10:00
Chris Johns
2edd4c9f28 Produce a better error message if the host support code does not load. 2013-05-01 05:30:22 +10:00
Chris Johns
a128418655 Use float for version number such as CentOS 6.3. 2013-05-01 05:17:11 +10:00
Chris Johns
9815f5ffd2 CVS is required. The newlib version is based on cvs for 4.11. 2013-04-30 17:55:33 +10:00
Chris Johns
cb5fc2c4df The dist version is index 1 not 2. 2013-04-30 17:27:40 +10:00
Chris Johns
49c668c3bf Fix the dist_ver bug. Covert the string to an int. 2013-04-30 17:23:18 +10:00
Chris Johns
a48a4781b6 Updated 4.11 tool versions. 2013-04-30 15:01:30 +10:00
Chris Johns
fbb39e70c3 Add options help. 2013-04-30 13:22:28 +10:00
Chris Johns
97a685fae3 Add mail support to mail reports. 2013-04-30 11:20:54 +10:00
Chris Johns
dfdc129a08 Add user private macro loading. 2013-04-30 11:19:09 +10:00
Chris Johns
1c44f1c24f Add a get value call for macros. 2013-04-30 11:18:46 +10:00
Chris Johns
adf09460a2 Report from the setbuilder's build config.
Refactor the reporter to allow the setbuilder to use its build config
rather than regenerating the configuration from the configuration file.
Using the config file and the build macros exposed an issue if a
macro was undefined that was defined in a build set above the
config file. Using the build set's configuration as used to build
is a better solution.

The reporter was refactored to allow a config class to be used
to report.

The setbuild can now take a configuration file as an input file.
2013-04-29 09:01:14 +10:00
Chris Johns
8837860347 Add a function to return the config file name. 2013-04-29 08:59:53 +10:00
Chris Johns
0ed876c0a9 Do not run any download type functions if performing a dry-run. 2013-04-29 08:58:01 +10:00
Chris Johns
055e4906ef Fix the report command. Only output if an outname is given. 2013-04-28 16:10:02 +10:00
Chris Johns
22afed354e Fix the trace message for _disable. 2013-04-28 15:51:51 +10:00