Split target/Config.in.arch into multiple Config.in.* in arch/
target/Config.in.arch had become too long, and we want to remove the
target/ directory. So let's move it to arch/ and split it this way:
* An initial Config.in that lists the top-level architecture, and
sources the arch-specific Config.in.<arch> files, as well as
Config.in.common (see below)
* One Config.in.<arch> per architecture, listing the CPU families,
ABI choices, etc.
* One Config.in.common that defines the gcc mtune, march, mcpu values
and other hidden options.
[Peter: space->tab fix, mipsel64 little endian, mips3 as noted by Arnout]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-11-03 16:27:59 +08:00
|
|
|
# i386/x86_64 cpu features
|
|
|
|
config BR2_X86_CPU_HAS_MMX
|
|
|
|
bool
|
|
|
|
config BR2_X86_CPU_HAS_SSE
|
|
|
|
bool
|
|
|
|
config BR2_X86_CPU_HAS_SSE2
|
|
|
|
bool
|
|
|
|
config BR2_X86_CPU_HAS_SSE3
|
|
|
|
bool
|
|
|
|
config BR2_X86_CPU_HAS_SSSE3
|
|
|
|
bool
|
2014-01-03 01:59:45 +08:00
|
|
|
config BR2_X86_CPU_HAS_SSE4
|
|
|
|
bool
|
|
|
|
config BR2_X86_CPU_HAS_SSE42
|
|
|
|
bool
|
Split target/Config.in.arch into multiple Config.in.* in arch/
target/Config.in.arch had become too long, and we want to remove the
target/ directory. So let's move it to arch/ and split it this way:
* An initial Config.in that lists the top-level architecture, and
sources the arch-specific Config.in.<arch> files, as well as
Config.in.common (see below)
* One Config.in.<arch> per architecture, listing the CPU families,
ABI choices, etc.
* One Config.in.common that defines the gcc mtune, march, mcpu values
and other hidden options.
[Peter: space->tab fix, mipsel64 little endian, mips3 as noted by Arnout]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-11-03 16:27:59 +08:00
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Target Architecture Variant"
|
|
|
|
depends on BR2_i386 || BR2_x86_64
|
|
|
|
default BR2_x86_i586 if BR2_i386
|
|
|
|
help
|
|
|
|
Specific CPU variant to use
|
|
|
|
|
|
|
|
config BR2_x86_i386
|
|
|
|
bool "i386"
|
|
|
|
depends on !BR2_x86_64
|
|
|
|
config BR2_x86_i486
|
|
|
|
bool "i486"
|
|
|
|
depends on !BR2_x86_64
|
|
|
|
config BR2_x86_i586
|
|
|
|
bool "i586"
|
|
|
|
depends on !BR2_x86_64
|
|
|
|
config BR2_x86_i686
|
|
|
|
bool "i686"
|
|
|
|
depends on !BR2_x86_64
|
|
|
|
config BR2_x86_pentiumpro
|
|
|
|
bool "pentium pro"
|
|
|
|
depends on !BR2_x86_64
|
|
|
|
config BR2_x86_pentium_mmx
|
|
|
|
bool "pentium MMX"
|
|
|
|
select BR2_X86_CPU_HAS_MMX
|
|
|
|
depends on !BR2_x86_64
|
|
|
|
config BR2_x86_pentium_m
|
|
|
|
bool "pentium mobile"
|
|
|
|
select BR2_X86_CPU_HAS_MMX
|
|
|
|
select BR2_X86_CPU_HAS_SSE
|
|
|
|
depends on !BR2_x86_64
|
|
|
|
config BR2_x86_pentium2
|
|
|
|
bool "pentium2"
|
|
|
|
select BR2_X86_CPU_HAS_MMX
|
|
|
|
depends on !BR2_x86_64
|
|
|
|
config BR2_x86_pentium3
|
|
|
|
bool "pentium3"
|
|
|
|
select BR2_X86_CPU_HAS_MMX
|
|
|
|
select BR2_X86_CPU_HAS_SSE
|
|
|
|
depends on !BR2_x86_64
|
|
|
|
config BR2_x86_pentium4
|
|
|
|
bool "pentium4"
|
|
|
|
select BR2_X86_CPU_HAS_MMX
|
|
|
|
select BR2_X86_CPU_HAS_SSE
|
|
|
|
select BR2_X86_CPU_HAS_SSE2
|
|
|
|
depends on !BR2_x86_64
|
|
|
|
config BR2_x86_prescott
|
|
|
|
bool "prescott"
|
|
|
|
select BR2_X86_CPU_HAS_MMX
|
|
|
|
select BR2_X86_CPU_HAS_SSE
|
|
|
|
select BR2_X86_CPU_HAS_SSE2
|
|
|
|
select BR2_X86_CPU_HAS_SSE3
|
|
|
|
depends on !BR2_x86_64
|
|
|
|
config BR2_x86_nocona
|
|
|
|
bool "nocona"
|
|
|
|
select BR2_X86_CPU_HAS_MMX
|
|
|
|
select BR2_X86_CPU_HAS_SSE
|
|
|
|
select BR2_X86_CPU_HAS_SSE2
|
|
|
|
select BR2_X86_CPU_HAS_SSE3
|
|
|
|
config BR2_x86_core2
|
|
|
|
bool "core2"
|
|
|
|
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
|
2014-04-27 19:29:15 +08:00
|
|
|
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
|
Split target/Config.in.arch into multiple Config.in.* in arch/
target/Config.in.arch had become too long, and we want to remove the
target/ directory. So let's move it to arch/ and split it this way:
* An initial Config.in that lists the top-level architecture, and
sources the arch-specific Config.in.<arch> files, as well as
Config.in.common (see below)
* One Config.in.<arch> per architecture, listing the CPU families,
ABI choices, etc.
* One Config.in.common that defines the gcc mtune, march, mcpu values
and other hidden options.
[Peter: space->tab fix, mipsel64 little endian, mips3 as noted by Arnout]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-11-03 16:27:59 +08:00
|
|
|
config BR2_x86_atom
|
|
|
|
bool "atom"
|
|
|
|
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
|
|
|
|
config BR2_x86_k6
|
|
|
|
bool "k6"
|
|
|
|
select BR2_X86_CPU_HAS_MMX
|
|
|
|
depends on !BR2_x86_64
|
|
|
|
config BR2_x86_k6_2
|
|
|
|
bool "k6-2"
|
|
|
|
select BR2_X86_CPU_HAS_MMX
|
|
|
|
depends on !BR2_x86_64
|
|
|
|
config BR2_x86_athlon
|
|
|
|
bool "athlon"
|
|
|
|
select BR2_X86_CPU_HAS_MMX
|
|
|
|
depends on !BR2_x86_64
|
|
|
|
config BR2_x86_athlon_4
|
|
|
|
bool "athlon-4"
|
|
|
|
select BR2_X86_CPU_HAS_MMX
|
|
|
|
select BR2_X86_CPU_HAS_SSE
|
|
|
|
depends on !BR2_x86_64
|
|
|
|
config BR2_x86_opteron
|
|
|
|
bool "opteron"
|
|
|
|
select BR2_X86_CPU_HAS_MMX
|
|
|
|
select BR2_X86_CPU_HAS_SSE
|
|
|
|
select BR2_X86_CPU_HAS_SSE2
|
|
|
|
config BR2_x86_opteron_sse3
|
|
|
|
bool "opteron w/ SSE3"
|
|
|
|
select BR2_X86_CPU_HAS_MMX
|
|
|
|
select BR2_X86_CPU_HAS_SSE
|
|
|
|
select BR2_X86_CPU_HAS_SSE2
|
|
|
|
select BR2_X86_CPU_HAS_SSE3
|
|
|
|
config BR2_x86_barcelona
|
|
|
|
bool "barcelona"
|
|
|
|
select BR2_X86_CPU_HAS_MMX
|
|
|
|
select BR2_X86_CPU_HAS_SSE
|
|
|
|
select BR2_X86_CPU_HAS_SSE2
|
|
|
|
select BR2_X86_CPU_HAS_SSE3
|
2014-01-16 06:17:10 +08:00
|
|
|
config BR2_x86_jaguar
|
|
|
|
bool "jaguar"
|
|
|
|
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
|
2014-01-21 01:35:17 +08:00
|
|
|
select BR2_X86_CPU_HAS_SSE4
|
|
|
|
select BR2_X86_CPU_HAS_SSE42
|
Split target/Config.in.arch into multiple Config.in.* in arch/
target/Config.in.arch had become too long, and we want to remove the
target/ directory. So let's move it to arch/ and split it this way:
* An initial Config.in that lists the top-level architecture, and
sources the arch-specific Config.in.<arch> files, as well as
Config.in.common (see below)
* One Config.in.<arch> per architecture, listing the CPU families,
ABI choices, etc.
* One Config.in.common that defines the gcc mtune, march, mcpu values
and other hidden options.
[Peter: space->tab fix, mipsel64 little endian, mips3 as noted by Arnout]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-11-03 16:27:59 +08:00
|
|
|
config BR2_x86_geode
|
|
|
|
bool "geode"
|
|
|
|
# Don't include MMX support because there several variant of geode
|
|
|
|
# processor, some with MMX support, some without.
|
|
|
|
# See: http://en.wikipedia.org/wiki/Geode_%28processor%29
|
|
|
|
depends on !BR2_x86_64
|
|
|
|
config BR2_x86_c3
|
|
|
|
bool "Via/Cyrix C3 (Samuel/Ezra cores)"
|
|
|
|
select BR2_X86_CPU_HAS_MMX
|
|
|
|
depends on !BR2_x86_64
|
|
|
|
config BR2_x86_c32
|
|
|
|
bool "Via C3-2 (Nehemiah cores)"
|
|
|
|
select BR2_X86_CPU_HAS_MMX
|
|
|
|
select BR2_X86_CPU_HAS_SSE
|
|
|
|
depends on !BR2_x86_64
|
|
|
|
config BR2_x86_winchip_c6
|
|
|
|
bool "IDT Winchip C6"
|
|
|
|
select BR2_X86_CPU_HAS_MMX
|
|
|
|
depends on !BR2_x86_64
|
|
|
|
config BR2_x86_winchip2
|
|
|
|
bool "IDT Winchip 2"
|
|
|
|
select BR2_X86_CPU_HAS_MMX
|
|
|
|
depends on !BR2_x86_64
|
|
|
|
endchoice
|
arch: improve definition of gcc mtune, mcpu, etc.
As suggested by Yann E. Morin, there is a better way than our current
big Config.in.common to define the gcc mtune, mcpu, march,
etc. values. We can split the setting of those values in each
architecture file, which makes a lot more sense.
Therefore, the Config.in file now creates empty kconfig variables
BR2_ARCH, BR2_ENDIAN, BR2_GCC_TARGET_TUNE, BR2_GCC_TARGET_ARCH,
BR2_GCC_TARGET_ABI and BR2_GCC_TARGET_CPU. The values of those
variables are set by the individual Config.in.<arch> files. This is
possible because such files are now only conditionally included
depending on the top-level architecture that has been selected.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-11-15 11:53:48 +08:00
|
|
|
|
|
|
|
config BR2_ARCH
|
|
|
|
default "i386" if BR2_x86_i386
|
|
|
|
default "i486" if BR2_x86_i486
|
|
|
|
default "i586" if BR2_x86_i586
|
|
|
|
default "i586" if BR2_x86_pentium_mmx
|
|
|
|
default "i586" if BR2_x86_geode
|
|
|
|
default "i586" if BR2_x86_c3
|
|
|
|
default "i686" if BR2_x86_c32
|
|
|
|
default "i586" if BR2_x86_winchip_c6
|
|
|
|
default "i586" if BR2_x86_winchip2
|
|
|
|
default "i686" if BR2_x86_i686
|
|
|
|
default "i686" if BR2_x86_pentium2
|
|
|
|
default "i686" if BR2_x86_pentium3
|
|
|
|
default "i686" if BR2_x86_pentium4
|
|
|
|
default "i686" if BR2_x86_pentium_m
|
|
|
|
default "i686" if BR2_x86_pentiumpro
|
|
|
|
default "i686" if BR2_x86_prescott
|
|
|
|
default "i686" if BR2_x86_nocona && BR2_i386
|
|
|
|
default "i686" if BR2_x86_core2 && BR2_i386
|
2014-04-27 19:29:15 +08:00
|
|
|
default "i686" if BR2_x86_corei7 && BR2_i386
|
arch: improve definition of gcc mtune, mcpu, etc.
As suggested by Yann E. Morin, there is a better way than our current
big Config.in.common to define the gcc mtune, mcpu, march,
etc. values. We can split the setting of those values in each
architecture file, which makes a lot more sense.
Therefore, the Config.in file now creates empty kconfig variables
BR2_ARCH, BR2_ENDIAN, BR2_GCC_TARGET_TUNE, BR2_GCC_TARGET_ARCH,
BR2_GCC_TARGET_ABI and BR2_GCC_TARGET_CPU. The values of those
variables are set by the individual Config.in.<arch> files. This is
possible because such files are now only conditionally included
depending on the top-level architecture that has been selected.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-11-15 11:53:48 +08:00
|
|
|
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
|
|
|
|
default "i686" if BR2_x86_barcelona && BR2_i386
|
2014-01-16 06:17:10 +08:00
|
|
|
default "i686" if BR2_x86_jaguar && BR2_i386
|
arch: improve definition of gcc mtune, mcpu, etc.
As suggested by Yann E. Morin, there is a better way than our current
big Config.in.common to define the gcc mtune, mcpu, march,
etc. values. We can split the setting of those values in each
architecture file, which makes a lot more sense.
Therefore, the Config.in file now creates empty kconfig variables
BR2_ARCH, BR2_ENDIAN, BR2_GCC_TARGET_TUNE, BR2_GCC_TARGET_ARCH,
BR2_GCC_TARGET_ABI and BR2_GCC_TARGET_CPU. The values of those
variables are set by the individual Config.in.<arch> files. This is
possible because such files are now only conditionally included
depending on the top-level architecture that has been selected.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-11-15 11:53:48 +08:00
|
|
|
default "i686" if BR2_x86_k6
|
|
|
|
default "i686" if BR2_x86_k6_2
|
|
|
|
default "i686" if BR2_x86_athlon
|
|
|
|
default "i686" if BR2_x86_athlon_4
|
|
|
|
default "x86_64" if BR2_x86_64
|
|
|
|
|
|
|
|
config BR2_ENDIAN
|
|
|
|
default "LITTLE"
|
|
|
|
|
2014-08-18 03:30:01 +08:00
|
|
|
config BR2_ARCH_HAS_ATOMICS
|
|
|
|
default y if !BR2_x86_i386
|
|
|
|
|
arch: improve definition of gcc mtune, mcpu, etc.
As suggested by Yann E. Morin, there is a better way than our current
big Config.in.common to define the gcc mtune, mcpu, march,
etc. values. We can split the setting of those values in each
architecture file, which makes a lot more sense.
Therefore, the Config.in file now creates empty kconfig variables
BR2_ARCH, BR2_ENDIAN, BR2_GCC_TARGET_TUNE, BR2_GCC_TARGET_ARCH,
BR2_GCC_TARGET_ABI and BR2_GCC_TARGET_CPU. The values of those
variables are set by the individual Config.in.<arch> files. This is
possible because such files are now only conditionally included
depending on the top-level architecture that has been selected.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-11-15 11:53:48 +08:00
|
|
|
config BR2_GCC_TARGET_ARCH
|
2012-11-15 11:53:53 +08:00
|
|
|
default "i386" if BR2_x86_i386
|
|
|
|
default "i486" if BR2_x86_i486
|
|
|
|
default "i586" if BR2_x86_i586
|
|
|
|
default "pentium-mmx" if BR2_x86_pentium_mmx
|
|
|
|
default "i686" if BR2_x86_i686
|
|
|
|
default "pentiumpro" if BR2_x86_pentiumpro
|
|
|
|
default "pentium-m" if BR2_x86_pentium_m
|
|
|
|
default "pentium2" if BR2_x86_pentium2
|
|
|
|
default "pentium3" if BR2_x86_pentium3
|
|
|
|
default "pentium4" if BR2_x86_pentium4
|
|
|
|
default "prescott" if BR2_x86_prescott
|
|
|
|
default "nocona" if BR2_x86_nocona
|
|
|
|
default "core2" if BR2_x86_core2
|
2014-04-27 19:29:15 +08:00
|
|
|
default "corei7" if BR2_x86_corei7
|
2012-11-15 11:53:53 +08:00
|
|
|
default "atom" if BR2_x86_atom
|
|
|
|
default "k8" if BR2_x86_opteron
|
|
|
|
default "k8-sse3" if BR2_x86_opteron_sse3
|
|
|
|
default "barcelona" if BR2_x86_barcelona
|
2014-01-16 06:17:10 +08:00
|
|
|
default "btver2" if BR2_x86_jaguar
|
2012-11-15 11:53:53 +08:00
|
|
|
default "k6" if BR2_x86_k6
|
|
|
|
default "k6-2" if BR2_x86_k6_2
|
|
|
|
default "athlon" if BR2_x86_athlon
|
|
|
|
default "athlon-4" if BR2_x86_athlon_4
|
|
|
|
default "winchip-c6" if BR2_x86_winchip_c6
|
|
|
|
default "winchip2" if BR2_x86_winchip2
|
|
|
|
default "c3" if BR2_x86_c3
|
|
|
|
default "c3-2" if BR2_x86_c32
|
|
|
|
default "geode" if BR2_x86_geode
|