arch: add support for mips32r6 and mips64r6 variants

- Add support for mips32r6 and mips64r6 target architecture variants
- Disable unsupported gcc versions
- Disable unsupported binutils versions
- Disable unsupported external toolchains
- Disable unsuported C libraries
- Add a hook in order to make glibc compile for MIPS R6.

[Thomas: slightly tweak the glibc hack explanation, to make it
hopefully clearer.]

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Vicente Olivert Riera
2015-10-12 11:08:06 +01:00
committed by Thomas Petazzoni
parent 3ec38bab0f
commit 99122d6780
6 changed files with 64 additions and 2 deletions

View File

@@ -6,8 +6,8 @@ choice
help
Specific CPU variant to use
64bit cabable: 64, 64r2
non-64bit capable: 32, 32r2
64bit cabable: 64, 64r2, 64r6
non-64bit capable: 32, 32r2, 32r6
config BR2_mips_32
bool "mips 32"
@@ -15,12 +15,18 @@ config BR2_mips_32
config BR2_mips_32r2
bool "mips 32r2"
depends on !BR2_ARCH_IS_64
config BR2_mips_32r6
bool "mips 32r6"
depends on !BR2_ARCH_IS_64
config BR2_mips_64
bool "mips 64"
depends on BR2_ARCH_IS_64
config BR2_mips_64r2
bool "mips 64r2"
depends on BR2_ARCH_IS_64
config BR2_mips_64r6
bool "mips 64r6"
depends on BR2_ARCH_IS_64
endchoice
@@ -67,8 +73,10 @@ config BR2_ARCH_HAS_ATOMICS
config BR2_GCC_TARGET_ARCH
default "mips32" if BR2_mips_32
default "mips32r2" if BR2_mips_32r2
default "mips32r6" if BR2_mips_32r6
default "mips64" if BR2_mips_64
default "mips64r2" if BR2_mips_64r2
default "mips64r6" if BR2_mips_64r6
config BR2_MIPS_OABI32
bool