config BR2_TOOLCHAIN_EXTERNAL_CODESCAPE_MTI_MIPS
	bool "Codescape MTI GNU Linux Toolchain 2018.09"
	depends on BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
	depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_7
	depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
	depends on BR2_MIPS_CPU_MIPS32R2 || (BR2_MIPS_CPU_MIPS64R2 && !BR2_MIPS_SOFT_FLOAT) || \
		BR2_MIPS_CPU_MIPS32R5 || (BR2_MIPS_CPU_MIPS64R5 && !BR2_MIPS_SOFT_FLOAT)
	select BR2_TOOLCHAIN_EXTERNAL_GLIBC
	select BR2_INSTALL_LIBSTDCPP
	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7
	select BR2_TOOLCHAIN_GCC_AT_LEAST_6
	select BR2_TOOLCHAIN_HAS_FORTRAN
	help
	  Codescape MTI GNU Linux Toolchain 2018.09 for the MIPS
	  architecture, from MIPS Tech LLC. It uses gcc 6.3.0,
	  binutils 2.28.51, glibc 2.20, gdb 7.9.1 and kernel headers
	  4.7. It has support for the following variants:
	    - MIPS32r2 - Big-Endian, Hard-Float, Legacy NaN, o32 ABI
	      Select 'MIPS (big endian)' Target Architecture
	      Select 'mips 32r2' Target Architecture Variant
	      Disable 'Use soft-float'
	    - MIPS32r2 - Big-Endian, Hard-Float, 2008 NaN, o32 ABI
	      Select 'MIPS (big endian)' Target Architecture
	      Select 'mips 32r2' Target Architecture Variant
	      Disable 'Use soft-float'
	      Set BR2_TARGET_OPTIMIZATION to '-mnan=2008'
	    - MIPS32r2 - Big-Endian, Soft-Float, Legacy NaN, o32 ABI
	      Select 'MIPS (big endian)' Target Architecture
	      Select 'mips 32r2' Target Architecture Variant
	      Enable 'Use soft-float'
	    - MIPS32r2 - Little-Endian, Hard-Float, Legacy NaN, o32 ABI
	      Select 'MIPS (little endian)' Target Architecture
	      Select 'mips 32r2' Target Architecture Variant
	      Disable 'Use soft-float'
	    - MIPS32r2 - Little-Endian, Hard-Float, 2008 NaN, o32 ABI
	      Select 'MIPS (little endian)' Target Architecture
	      Select 'mips 32r2' Target Architecture Variant
	      Disable 'Use soft-float'
	      Set BR2_TARGET_OPTIMIZATION to '-mnan=2008'
	    - MIPS32r2 - Little-Endian, Soft-Float, Legacy NaN, o32 ABI
	      Select 'MIPS (little endian)' Target Architecture
	      Select 'mips 32r2' Target Architecture Variant
	      Enable 'Use soft-float'
	    - MIPS32r2 - Little-Endian, Hard-Float, 2008 NaN, o32 ABI,
	      microMIPS
	      Select 'MIPS (little endian)' Target Architecture
	      Select 'mips 32r2' Target Architecture Variant
	      Enable 'Use soft-float'
	      Set BR2_TARGET_OPTIMIZATION to '-mmicromips'
	    - MIPS32r2 - Little-Endian, Soft-Float, Legacy NaN, o32 ABI,
	      microMIPS
	      Select 'MIPS (little endian)' Target Architecture
	      Select 'mips 32r2' Target Architecture Variant
	      Disable 'Use soft-float'
	      Set BR2_TARGET_OPTIMIZATION to '-mmicromips'
	    - MIPS64r2 - Big-Endian, Hard-Float, Legacy NaN, n32 ABI
	      Select 'MIPS64 (big endian)' Target Architecture
	      Select 'mips 64r2' Target Architecture Variant
	      Select 'n32' Target ABI
	      Disable 'Use soft-float'
	    - MIPS64r2 - Little-Endian, Hard-Float, Legacy NaN, n32 ABI
	      Select 'MIPS64 (little endian)' Target Architecture
	      Select 'mips 64r2' Target Architecture Variant
	      Select 'n32' Target ABI
	      Disable 'Use soft-float'
	    - MIPS64r2 - Big-Endian, Hard-Float, Legacy NaN, n64 ABI
	      Select 'MIPS64 (big endian)' Target Architecture
	      Select 'mips 64r2' Target Architecture Variant
	      Select 'n64' Target ABI
	      Disable 'Use soft-float'
	    - MIPS64r2 - Little-Endian, Hard-Float, Legacy NaN, n64 ABI
	      Select 'MIPS64 (little endian)' Target Architecture
	      Select 'mips 64r2' Target Architecture Variant
	      Select 'n64' Target ABI
	      Disable 'Use soft-float'
