buildrootschalter/toolchain
Thomas Petazzoni 8e55f03a54 Clarify MIPS ABIs support
Practically speaking, MIPS has three useful ABIs:

 * o32 is for 32-bits CPUs, or 64-bit CPUs running only a 32-bit subset
   of the instruction set.
 * n32 is for 64-bits CPUs only. It has 32-bits pointers and long
   integers.
 * n64 is for 64-bits CPUs only. It has 64-bits pointers and long
   integers.

See http://www.linux-mips.org/wiki/MIPS_ABI_History and
http://www.linux-mips.org/wiki/WhatsWrongWithO32N32N64 for more
details.

So, this commit reworks the Buildroot MIPS support by:

 * Add separate mips64/mips64el top-level architectures.

 * Renaming the n32 ABI option to BR2_MIPS_NABI32, for consistency
   with BR2_MIPS_OABI32.

 * Renaming the n64 ABI option to BR2_MIPS_NABI64, for consistency
   with BR2_MIPS_OABI32.

 * Make the n32 and n64 ABI selections select the BR2_ARCH_IS_64,
   since those ABIs are valid on 64-bits CPUs only.

 * Removing the o64 ABI, which is practicaly never used.

 * Removing the "none" ABI, which really doesn't make sense.

 * Introduce the mips64 and mips64el architecture names when a 64-bits
   MIPS ABI is choosen. This will fix build issue like
   http://autobuild.buildroot.org/results/9b8c5ea86c953a89e85e7b67e9221de41773f652/build-end.log
   where gmp was confused by the fact of having a 32 bits architecture
   (detected by the mips- architecture part of the tuple) but 64 bits
   integer size when compiling.

 * Adjust the uclibc.mk logic to support the new mips64/mips64el
   architecture names, and take into account the renaming of the ABI
   options.

This has been build tested by generating Buildroot toolchains and
compiling a few packages for MIPS o32, MIPS n32 and MIPS n64.

This work is originally based on prior work done by Gustavo Zacarias.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-09-04 22:03:55 +02:00
..
elf2flt Remove REAL_GNU_TARGET_NAME 2012-06-23 15:14:51 +02:00
gcc gcc: default to 4.6.x 2012-09-04 13:28:03 +02:00
gdb toolchain: reinstate host/usr/bin/$arch-linux-* symlinks for gcc/gdb binaries 2012-06-23 21:33:17 +02:00
kernel-headers kernel-headers: add 3.5.x, remove 2.6.36.x 2012-09-04 13:13:10 +02:00
toolchain-buildroot mklibs: remove support 2012-04-25 09:56:30 +02:00
toolchain-crosstool-ng package/crosstool-ng: update to 1.16.0 2012-08-06 14:56:08 +02:00
toolchain-external toolchain-external: microblaze toolchains are glibc-based 2012-08-02 21:44:15 +02:00
uClibc Clarify MIPS ABIs support 2012-09-04 22:03:55 +02:00
Config.in toolchain: disallow internal/ctng toolchains for microblaze 2012-03-19 00:26:01 +01:00
helpers.mk toolchain/helpers.mk: fix check_glibc sysroot typo 2012-08-31 21:44:17 +02:00
toolchain-buildroot.mk mklibs: remove support 2012-04-25 09:56:30 +02:00
toolchain-common.in toolchain-external: do not allow the user to select hard/soft float 2012-08-01 20:04:50 +02:00
toolchain-crosstool-ng.mk mklibs: remove support 2012-04-25 09:56:30 +02:00
toolchain-external.mk mklibs: remove support 2012-04-25 09:56:30 +02:00