scripts: Update download locations

This change updates the download locations to default to the official
download site.

For gcc and gdb, also separate out the linaro download locations so that
if you are downloading the linaro variant, it skips trying to download
from the official gcc mirror.

This commit closes #3

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
libc/glibc: Add glibc-2.20

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
glibc: nptl is default from 2.20, so dont add to addons_list

No longer recommended practice to use --enable-add-ons=nptl, so
for 2.20 and later (along with custom glibc), don't add the
CT_THREADS to the addons_list

https://sourceware.org/glibc/wiki/Release/2.20#Packaging_Changes

Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
Merge pull request #5 from davidholsgrove/glibc2.20_updates

Glibc 2.20 updates
gcc and gdb: fix fetching linaro builds

linaro_version and linaro_series are defined but not set if we are not
configured for linaro builds.

Therefore we need to default them to "" (null string).
As reported by @elsonwei

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
gcc: Update linaro 4.7 and 4.8

Update 4.7 to linaro-4.7-2014.06
Update 4.8 to linaro-4.8-2014.04

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
gcc: Update linaro 4.7 and 4.8 (Attempt 2)

I messed up the previous commit.
I only updated half the config file, and the latest 4.8 is 2014.08.

:facepalm:

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
gcc and gdb: fix fetching linaro builds (part two)

It's not my day.

linaro_version is a filter. If it is not a linaro toolchain, it will
just be CT_{CC,GDB}_VERSION. If it is a linaro toolchain, CT_{CC,GDB}_VERSION
will be prefixed with 'linaro-' and will not match linaro_version, as
linaro_version will just have the part after 'linaro-'.

This *really* fixes the issue :sigh:

Thanks again to @elsonwei for being right the first time!

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
gcc and gdb: fix fetching linaro builds (part three)

Yes, I missed the backslash which messed up the linaro stuff.
The more I look at this code, I feel it needs to be refactored a bit. So
I'll come back to this in the future and clean it up.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
gcc: The latest 'released' linaro 4.8 is 2014.04, not 08

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
config/glibc: Disable ports/ for 2.20

As per the glibc release notes for 2.20:
--------------------------------------------------------------------------------
All supported architectures now use the main glibc sysdeps directory
instead of some being in a separate "ports" directory (which was
distributed separately before glibc 2.17).
--------------------------------------------------------------------------------

There isn't a ports directory anymore. So disable using and forcing it.

closes #7 on crosstool-ng github

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
gdb: fix typo made in gdb build script

I made a typo in: 1e17619b273fb49f8d2e162f34c26994698285b3

It should be version, not release.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
Update .gitignore files.

The current .gitignore files cause changes to files which are actually part of
the repository to be ignored. This commit modifies the rules so that this does
not happen. The files that were affected are:

  config/global/paths.in
  contrib/gcc-test-suite/Makefile
  docs/ct-ng.1.in
  kconfig/Makefile

(as revealed by 'git ls-files --ignored --exclude-standard')

Signed-off-by: James Byrne <james.byrne@origamienergy.com>
Merge pull request #10 from jrbyrne/working

Update .gitignore files.
Merge pull request #9 from bhundven/master

Fixes for glibc and gdb