29 Commits

Author SHA1 Message Date
Chris Johns
c5715172d9 gdb: Add a gdb-common configuration and have gdb-7-1 include it.
Updates #3460
2018-06-20 09:28:10 +10:00
Sebastian Huber
d8daad23f4 Build only the GDB
The Binutils and GDB share a repository.  In order to build the GDB
from a repository snapshot some components must be disabled.

Update #3453.
2018-06-13 10:43:53 +02:00
Andreas Kölbl
d413d7e228 Fix GDB build on ArchLinux
Archlinux provides both, libguile v2.0 and v2.2. GDB states in
configuration its compatibility with both versions of libguile which is
false. The SCM_port interface of libguile was removed in v2.2 and
therefore breaks GDB as a user.

RTEMS does not use libguile and therefore it can be compiled without
support.

https://sourceware.org/bugzilla/show_bug.cgi?id=21104

Close #3054.
2017-07-04 07:59:46 +10:00
Chris Johns
6843e47ce3 gdb: Build with system readline and use MinGW compilers.
Select MinGW compilers for Windows builds on Windows.

Use the system readline rather than GDB's which does not
handle cmd.exe correctly.
2016-04-15 15:22:36 +10:00
Chris Johns
334c22c12d sb: Add support to GDB to select a specific Python.
Detect a suitable Python version on Windows.

Update #2619.
2016-03-08 22:27:10 +11:00
Hesham ALMatary
d758ab9adc Modify GNU's common backend configuration files to build from external sources 2015-05-06 16:20:09 +10:00
Chris Johns
46ec6b52c8 Windows is win32 when testing for the host. 2015-03-07 09:24:51 +11:00
Chris Johns
81ccf41bc0 Update all 4.11 archs to newlib-2.2.0-1 and gdb-7.8.2 where possible.
Remove the extra gdb-7.8.1.cfg and added support to allow GDB tar
compression to be version defined. GDB has changed it default to .xz.
2015-02-07 10:46:49 +11:00
Chris Johns
8197b8ea04 Add the host name to the package name.
Adding the host name results in the tar files created by the
--bset-tar-file and --pkg-tar-files to contain the host name.
This is useful when building Cxc packages.
2015-01-18 15:34:35 +11:00
Chris Johns
257d1e4378 rtems-4.11: Fix building the SPARC simulator.
Add support for simulator options to enable special features of
some gdb simulators.
2014-08-21 22:40:47 +10:00
Chris Johns
aaa015eda0 rtems-4.11: Do not build GDB sim on MinGW32 for some targets.
They are:
  m32c
  microblaze
  mips
  moxie
  powerpc
  sparc
  v850
2014-08-05 22:59:43 +00:00
Chris Johns
46506f1087 config: Fix the check to disable the gdb simulator.
Check to see if the macro is defined. If not defined define
it with the simulator enabled.
2014-06-02 16:01:39 +10:00
Hesham ALMatary
3a0e5615fa Add support for building rtems-or1k tool-chain - fixed
Configuration files get the following releases:
- binutils-2.24
- newlib-2.1.0
- gcc-4.8.2
- gdb-7.7

Patches to tool-chain are mix of OpenRISC original patches and other
additions to build the previous releases for RTEMS.
2014-06-02 14:54:37 +10:00
Chris Johns
9a15c40e1b sb: Implement %source and %patch to manage source and patches.
Remove the numbered source and patches and automatically manage
sources and patches. This removes the overhead in maintaining large
collections of patches.
2014-05-13 23:26:09 +10:00
Chris Johns
b77019a91e config: Build without zlib due to errors in psim. 2014-03-26 17:13:47 +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
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
c65b9eb7ec Change the CVS download path to include the module and tag/date. 2013-04-25 15:06:20 +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
7e48e8fb57 Make the expat library static to make relocatable. 2013-04-10 16:07:21 +10: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
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
bcae849cf1 Cleanup the %setup flags 2013-02-28 16:37:27 +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
Chris Johns
aa46b9cec0 Fixes to the NIOS2 build on FreeBSD. 2013-02-12 14:12:40 +11:00
Chris Johns
0328944c57 NIOS2 Tools based on Altera's 4.11 tool set.
Add support for building the NIOS2 tool set. The source
is based on the Altera 4.11 src package. This package has been
split up and placed on the rtems.org server.
2013-02-12 11:46:29 +11:00
Chris Johns
d34a0a9b7f Add rtems-4.11 support for 4.7.2. 2012-11-30 17:13:18 +11:00
Chris Johns
0a48c8a1a9 Remove the _bindir from the path as it breaks on MacOS with python enabled. 2012-11-14 13:45:52 +11:00
Chris Johns
c80560d9a4 Move into the source-builder tree. 2012-11-06 10:09:40 +11:00