toolchain/external: add MIPS Codescape IMG GNU Linux toolchain
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>
Tue, 15 Dec 2015 16:21:25 +0000 (16:21 +0000)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 20 Jan 2016 09:28:05 +0000 (10:28 +0100)
[Thomas:
  - rebase on top of master
  - remove version number of the Config.in option name.]

Cc: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
toolchain/toolchain-external/Config.in
toolchain/toolchain-external/toolchain-external.hash
toolchain/toolchain-external/toolchain-external.mk

index 4bf2858e8657cd11e0bcc74ca0fb14b99634a59b..763d7288e3cc7388971ecc307bfa3984ab0e22e6 100644 (file)
@@ -268,6 +268,50 @@ comment "Sourcery CodeBench toolchains are only available for MIPS/MIPS64 o32 an
        depends on BR2_MIPS_NABI32
        depends on !BR2_STATIC_LIBS
 
+config BR2_TOOLCHAIN_EXTERNAL_CODESCAPE_IMG_MIPS
+       bool "Codescape IMG GNU Linux Toolchain 2015.06"
+       depends on BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
+       depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
+       depends on !BR2_MIPS_SOFT_FLOAT
+       depends on BR2_mips_32r6 || BR2_mips_64r6
+       select BR2_TOOLCHAIN_EXTERNAL_GLIBC
+       select BR2_INSTALL_LIBSTDCPP
+       select BR2_HOSTARCH_NEEDS_IA32_LIBS
+       select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0
+       select BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
+       help
+         Codescape IMG GNU Linux Toolchain 2015.06 for the MIPS
+         architecture, from Imagination Technologies. It uses gcc
+         4.9.2, binutils 2.24.90, glibc 2.20, gdb 7.9.1 and kernel
+         headers 4.0. It has support for the following variants:
+           - MIPS32r6 - Big-Endian, o32
+             Select 'MIPS (big endian)' Target Architecture
+             Select 'mips 32r6' Target Architecture Variant
+           - MIPS32r6 - Little-Endian, o32
+             Select 'MIPS (little endian)' Target Architecture
+             Select 'mips 32r6' Target Architecture Variant
+           - MIPS32r6 - Little-Endian, o32, microMIPS
+             Select 'MIPS (little endian)' Target Architecture
+             Select 'mips 32r6' Target Architecture Variant
+             Set BR2_TARGET_OPTIMIZATION to '-mmicromips'
+           - MIPS64r6 - Big-Endian, n32
+             Select 'MIPS64 (big endian)' Target Architecture
+             Select 'mips 64r6' Target Architecture Variant
+             Select 'n32' Target ABI
+           - MIPS64r6 - Little-Endian, n32
+             Select 'MIPS64 (little endian)' Target Architecture
+             Select 'mips 64r6' Target Architecture Variant
+             Select 'n32' Target ABI
+           - MIPS64r6 - Big-Endian, n64
+             Select 'MIPS64 (big endian)' Target Architecture
+             Select 'mips 64r6' Target Architecture Variant
+             Select 'n64' Target ABI
+           - MIPS64r6 - Little-Endian, n64
+             Select 'MIPS64 (little endian)' Target Architecture
+             Select 'mips 64r6' Target Architecture Variant
+             Select 'n64' Target ABI
+
+
 config BR2_TOOLCHAIN_EXTERNAL_CODESCAPE_MTI_MIPS
        bool "Codescape MTI GNU Linux Toolchain 2015.06"
        depends on BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
@@ -645,6 +689,7 @@ config BR2_TOOLCHAIN_EXTERNAL_PREFIX
        default "bfin-linux-uclibc"      if BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX && BR2_BINFMT_FDPIC
        default "arm-linux-musleabi"     if BR2_TOOLCHAIN_EXTERNAL_MUSL_CROSS && BR2_arm && BR2_ARM_EABI
        default "arm-linux-musleabihf"   if BR2_TOOLCHAIN_EXTERNAL_MUSL_CROSS && BR2_arm && BR2_ARM_EABIHF
+       default "mips-img-linux-gnu"     if BR2_TOOLCHAIN_EXTERNAL_CODESCAPE_IMG_MIPS
        default "mips-mti-linux-gnu"     if BR2_TOOLCHAIN_EXTERNAL_CODESCAPE_MTI_MIPS
        default "armeb-linux-musleabi"   if BR2_TOOLCHAIN_EXTERNAL_MUSL_CROSS && BR2_armeb
        default "i486-linux-musl"        if BR2_TOOLCHAIN_EXTERNAL_MUSL_CROSS && BR2_i386
index f7c1dd7c20de50f30ef5c209f275e8eb15c56d6f..dd7073fadb0124cff88c50e3b0dc8eb9a051efbd 100644 (file)
@@ -41,6 +41,7 @@ sha256 b9137008744d9009877f662dbac7481d673cdcb1798e727e325a37c98a0f63da  gcc-lin
 # Codescape toolchains from Imagination Technologies
 # From: http://codescape-mips-sdk.imgtec.com/components/toolchain/2015.06-05/
 sha256 f2d12dde626b750987d37ba6c73c6e11839850add94b0d4e4cf77917c1b0944f  Codescape.GNU.Tools.Package.2015.06-05.for.MIPS.MTI.Linux.CentOS-5.x86.tar.gz
+sha256 545923cf40101b5de6b1e0fdf124aceba7ab27daf6c755aecf01d2c886715409  Codescape.GNU.Tools.Package.2015.06-05.for.MIPS.IMG.Linux.CentOS-5.x86.tar.gz
 
 # Synopsys DesignWare ARC toolchains
 sha256 1fa4ea2c8616623205f1c7beca02ea31b019099528a7433e5b020b0876b93bf3  arc_gnu_2014.12_prebuilt_uclibc_le_arc700_linux_install.tar.gz
index 2e19b6ac3f37469771a63d0e389c2fb6ae9696c7..ddefd01bedf67c6fde638dd90d91a339fc8925b3 100644 (file)
@@ -332,6 +332,10 @@ TOOLCHAIN_EXTERNAL_SOURCE = ia32-2012.09-62-i686-pc-linux-gnu-i386-linux.tar.bz2
 else ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_AMD64),y)
 TOOLCHAIN_EXTERNAL_SITE = https://sourcery.mentor.com/public/gnu_toolchain/x86_64-amd-linux-gnu
 TOOLCHAIN_EXTERNAL_SOURCE = amd-2015.11-36-x86_64-amd-linux-gnu-i686-pc-linux-gnu.tar.bz2
+else ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESCAPE_IMG_MIPS),y)
+TOOLCHAIN_EXTERNAL_SITE = http://codescape-mips-sdk.imgtec.com/components/toolchain/2015.06-05
+TOOLCHAIN_EXTERNAL_SOURCE = Codescape.GNU.Tools.Package.2015.06-05.for.MIPS.IMG.Linux.CentOS-5.x86.tar.gz
+TOOLCHAIN_EXTERNAL_STRIP_COMPONENTS = 2
 else ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESCAPE_MTI_MIPS),y)
 TOOLCHAIN_EXTERNAL_SITE = http://codescape-mips-sdk.imgtec.com/components/toolchain/2015.06-05
 TOOLCHAIN_EXTERNAL_SOURCE = Codescape.GNU.Tools.Package.2015.06-05.for.MIPS.MTI.Linux.CentOS-5.x86.tar.gz