arch: add support for "corei7" Intel CPU optimisations
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sun, 27 Apr 2014 11:29:15 +0000 (13:29 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 3 May 2014 01:39:29 +0000 (03:39 +0200)
gcc support was added in version 4.6:
http://gcc.gnu.org/gcc-4.6/changes.html

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
arch/Config.in.x86
package/gcc/Config.in.host
package/uclibc/Config.in

index 8f6a527fe0dea9a6c45a30e577a52e95a1003214..327aff06b0fe72113e682948b7bca8a2b343ae5b 100644 (file)
@@ -83,6 +83,15 @@ config BR2_x86_core2
        select BR2_X86_CPU_HAS_SSE2
        select BR2_X86_CPU_HAS_SSE3
        select BR2_X86_CPU_HAS_SSSE3
+config BR2_x86_corei7
+       bool "corei7"
+       select BR2_X86_CPU_HAS_MMX
+       select BR2_X86_CPU_HAS_SSE
+       select BR2_X86_CPU_HAS_SSE2
+       select BR2_X86_CPU_HAS_SSE3
+       select BR2_X86_CPU_HAS_SSSE3
+       select BR2_X86_CPU_HAS_SSE4
+       select BR2_X86_CPU_HAS_SSE42
 config BR2_x86_atom
        bool "atom"
        select BR2_X86_CPU_HAS_MMX
@@ -177,6 +186,7 @@ config BR2_ARCH
        default "i686"          if BR2_x86_prescott
        default "i686"          if BR2_x86_nocona && BR2_i386
        default "i686"          if BR2_x86_core2 && BR2_i386
+       default "i686"          if BR2_x86_corei7 && BR2_i386
        default "i686"          if BR2_x86_atom && BR2_i386
        default "i686"          if BR2_x86_opteron && BR2_i386
        default "i686"          if BR2_x86_opteron_sse3 && BR2_i386
@@ -206,6 +216,7 @@ config BR2_GCC_TARGET_TUNE
        default "prescott"      if BR2_x86_prescott
        default "nocona"        if BR2_x86_nocona
        default "core2"         if BR2_x86_core2
+       default "corei7"        if BR2_x86_corei7
        default "atom"          if BR2_x86_atom
        default "k8"            if BR2_x86_opteron
        default "k8-sse3"       if BR2_x86_opteron_sse3
@@ -236,6 +247,7 @@ config BR2_GCC_TARGET_ARCH
        default "prescott"      if BR2_x86_prescott
        default "nocona"        if BR2_x86_nocona
        default "core2"         if BR2_x86_core2
+       default "corei7"        if BR2_x86_corei7
        default "atom"          if BR2_x86_atom
        default "k8"            if BR2_x86_opteron
        default "k8-sse3"       if BR2_x86_opteron_sse3
index 34a817bdaa1c7638a8a8e496648a61d3ef6c9fab..6a3b75bdfa77fd244606fb563c68b43bc9812a94 100644 (file)
@@ -20,12 +20,12 @@ choice
                bool "gcc 4.2.2-avr32-2.1.5"
 
        config BR2_GCC_VERSION_4_3_X
-               depends on !BR2_microblaze && !BR2_aarch64 && !BR2_arc && !BR2_avr32 && !BR2_sparc_sparchfleon && !BR2_sparc_sparchfleonv8 && !BR2_sparc_sparcsfleon && !BR2_sparc_sparcsfleonv8 && !BR2_cortex_a5 && !BR2_cortex_a7 && !BR2_cortex_a8 && !BR2_cortex_a9 && !BR2_cortex_a12 && !BR2_cortex_a15 && !BR2_x86_atom && !BR2_x86_jaguar && !BR2_powerpc_e300c2 && !BR2_powerpc_e300c3 && !BR2_powerpc_e500mc && !BR2_powerpc_464 && !BR2_powerpc_464fp && !BR2_powerpc_476 && !BR2_powerpc_476fp && !BR2_fa526 && !BR2_pj4
+               depends on !BR2_microblaze && !BR2_aarch64 && !BR2_arc && !BR2_avr32 && !BR2_sparc_sparchfleon && !BR2_sparc_sparchfleonv8 && !BR2_sparc_sparcsfleon && !BR2_sparc_sparcsfleonv8 && !BR2_cortex_a5 && !BR2_cortex_a7 && !BR2_cortex_a8 && !BR2_cortex_a9 && !BR2_cortex_a12 && !BR2_cortex_a15 && !BR2_x86_corei7 && !BR2_x86_atom && !BR2_x86_jaguar && !BR2_powerpc_e300c2 && !BR2_powerpc_e300c3 && !BR2_powerpc_e500mc && !BR2_powerpc_464 && !BR2_powerpc_464fp && !BR2_powerpc_476 && !BR2_powerpc_476fp && !BR2_fa526 && !BR2_pj4
                depends on !BR2_ARM_EABIHF
                bool "gcc 4.3.x"
 
        config BR2_GCC_VERSION_4_4_X
-               depends on !BR2_microblaze && !BR2_aarch64 && !BR2_arc && !BR2_avr32 && !BR2_cortex_a5 && !BR2_cortex_a7 && !BR2_cortex_a12 && !BR2_cortex_a15 && !BR2_x86_atom && !BR2_x86_jaguar && !BR2_powerpc_476 && !BR2_powerpc_476fp && !BR2_fa526 && !BR2_pj4
+               depends on !BR2_microblaze && !BR2_aarch64 && !BR2_arc && !BR2_avr32 && !BR2_cortex_a5 && !BR2_cortex_a7 && !BR2_cortex_a12 && !BR2_cortex_a15 && !BR2_x86_corei7 && !BR2_x86_atom && !BR2_x86_jaguar && !BR2_powerpc_476 && !BR2_powerpc_476fp && !BR2_fa526 && !BR2_pj4
                bool "gcc 4.4.x"
                # ARM EABIhf support appeared in gcc 4.6
                depends on !BR2_ARM_EABIHF
@@ -33,7 +33,7 @@ choice
                depends on !BR2_ARM_FPU_VFPV4 && !BR2_ARM_FPU_VFPV4D16
 
        config BR2_GCC_VERSION_4_5_X
-               depends on !BR2_microblaze && !BR2_aarch64 && !BR2_arc && !BR2_avr32 && !BR2_cortex_a7 && !BR2_cortex_a12 && !BR2_cortex_a15 && !BR2_x86_jaguar && !BR2_sparc_sparchfleon && !BR2_sparc_sparchfleonv8 && !BR2_sparc_sparcsfleon && !BR2_sparc_sparcsfleonv8 && !BR2_fa526 && !BR2_pj4
+               depends on !BR2_microblaze && !BR2_aarch64 && !BR2_arc && !BR2_avr32 && !BR2_cortex_a7 && !BR2_cortex_a12 && !BR2_cortex_a15 && !BR2_x86_corei7 && !BR2_x86_jaguar && !BR2_sparc_sparchfleon && !BR2_sparc_sparchfleonv8 && !BR2_sparc_sparcsfleon && !BR2_sparc_sparcsfleonv8 && !BR2_fa526 && !BR2_pj4
                select BR2_GCC_NEEDS_MPC
                # ARM EABIhf support appeared in gcc 4.6
                depends on !BR2_ARM_EABIHF
index 4b3b9753754eeed79cc703a0faf65cdcead6408a..50214299bb76c8304cd4def0479e9c90da3146b8 100644 (file)
@@ -267,6 +267,6 @@ config BR2_UCLIBC_X86_TYPE
        default PENTIUMII  if BR2_x86_pentium2
        default PENTIUMIII if BR2_x86_pentium3
        default PENTIUM4   if BR2_x86_pentium4 || BR2_x86_pentium_m || \
-                             BR2_x86_nocona || BR2_x86_core2
+                             BR2_x86_nocona || BR2_x86_core2 || BR2_x86_corei7
 
 endif # BR2_TOOLCHAIN_BUILDROOT_UCLIBC