2007-02-24 11:00:05 +00:00
|
|
|
# Target definition: architecture, optimisations, etc...
|
|
|
|
|
|
|
|
menu "Target options"
|
|
|
|
|
2007-04-23 20:30:34 +00:00
|
|
|
config ARCH
|
|
|
|
string
|
|
|
|
|
2008-06-27 13:58:53 +00:00
|
|
|
# Pre-declare target optimisation variables
|
2009-05-20 20:13:13 +00:00
|
|
|
config ARCH_SUPPORTS_BOTH_MMU
|
|
|
|
config ARCH_SUPPORTS_BOTH_ENDIAN
|
2009-11-17 08:27:38 +00:00
|
|
|
config ARCH_SUPPORTS_32
|
|
|
|
config ARCH_SUPPORTS_64
|
2008-06-27 15:08:43 +00:00
|
|
|
config ARCH_SUPPORT_ARCH
|
|
|
|
config ARCH_SUPPORT_ABI
|
|
|
|
config ARCH_SUPPORT_CPU
|
|
|
|
config ARCH_SUPPORT_TUNE
|
|
|
|
config ARCH_SUPPORT_FPU
|
2009-05-20 20:13:13 +00:00
|
|
|
|
|
|
|
config ARCH_DEFAULT_HAS_MMU
|
2008-06-27 13:58:53 +00:00
|
|
|
config ARCH_DEFAULT_BE
|
|
|
|
config ARCH_DEFAULT_LE
|
2009-11-17 08:27:38 +00:00
|
|
|
config ARCH_DEFAULT_32
|
|
|
|
config ARCH_DEFAULT_64
|
2009-05-20 20:13:13 +00:00
|
|
|
|
2008-06-30 11:33:52 +00:00
|
|
|
config ARCH_ARCH
|
|
|
|
config ARCH_ABI
|
|
|
|
config ARCH_CPU
|
|
|
|
config ARCH_TUNE
|
|
|
|
config ARCH_FPU
|
|
|
|
config ARCH_BE
|
|
|
|
config ARCH_LE
|
2009-11-17 21:29:50 +00:00
|
|
|
config ARCH_32
|
|
|
|
config ARCH_64
|
2010-01-09 14:40:08 +00:00
|
|
|
config ARCH_BITNESS
|
2008-06-27 13:58:53 +00:00
|
|
|
config ARCH_FLOAT_HW
|
|
|
|
config ARCH_FLOAT_SW
|
|
|
|
config TARGET_CFLAGS
|
2008-08-12 09:54:42 +00:00
|
|
|
config TARGET_LDFLAGS
|
2008-05-18 20:50:13 +00:00
|
|
|
|
2008-06-27 13:58:53 +00:00
|
|
|
comment "General target options"
|
2008-01-16 22:06:15 +00:00
|
|
|
|
2010-03-29 18:24:50 +00:00
|
|
|
source "config.gen/arch.in"
|
2007-02-24 11:00:05 +00:00
|
|
|
|
2009-05-20 20:13:13 +00:00
|
|
|
#--------------------------------------
|
|
|
|
config ARCH_SUPPORTS_BOTH_MMU
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
config ARCH_DEFAULT_HAS_MMU
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
config ARCH_USE_MMU
|
|
|
|
bool
|
|
|
|
prompt "Use the MMU" if ARCH_SUPPORTS_BOTH_MMU
|
|
|
|
default n if ! ARCH_DEFAULT_HAS_MMU
|
|
|
|
default y if ARCH_DEFAULT_HAS_MMU
|
2009-10-21 21:45:55 +00:00
|
|
|
help
|
|
|
|
If your architecture has an MMU and you want to use it,
|
|
|
|
say 'Y' here.
|
|
|
|
|
|
|
|
OTOH, if you don't want to use the MMU, or your arch
|
|
|
|
lacks an MMU, say 'N' here.
|
|
|
|
|
|
|
|
Note that some architectures (eg. ARM) has variants that
|
|
|
|
lacks an MMU (eg. ARM Cortex-M3), while other variants
|
|
|
|
have one (eg. ARM Cortex-A8).
|
2009-05-20 20:13:13 +00:00
|
|
|
|
|
|
|
#--------------------------------------
|
2007-05-27 20:22:06 +00:00
|
|
|
config ARCH_SUPPORTS_BOTH_ENDIAN
|
2007-04-11 17:51:31 +00:00
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
2007-08-30 19:49:21 +00:00
|
|
|
config ARCH_DEFAULT_BE
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
config ARCH_DEFAULT_LE
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
2007-02-24 11:00:05 +00:00
|
|
|
choice
|
|
|
|
bool
|
|
|
|
prompt "Endianness:"
|
2007-05-27 20:22:06 +00:00
|
|
|
depends on ARCH_SUPPORTS_BOTH_ENDIAN
|
2007-08-30 19:49:21 +00:00
|
|
|
default ARCH_BE if ARCH_DEFAULT_BE
|
|
|
|
default ARCH_LE if ARCH_DEFAULT_LE
|
2007-02-24 11:00:05 +00:00
|
|
|
|
|
|
|
config ARCH_BE
|
|
|
|
bool
|
|
|
|
prompt "Big endian"
|
|
|
|
|
|
|
|
config ARCH_LE
|
|
|
|
bool
|
|
|
|
prompt "Little endian"
|
2009-11-17 08:27:38 +00:00
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
#--------------------------------------
|
|
|
|
config ARCH_SUPPORTS_32
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
config ARCH_SUPPORTS_64
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
config ARCH_DEFAULT_32
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
config ARCH_DEFAULT_64
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
2010-01-09 14:40:08 +00:00
|
|
|
config ARCH_BITNESS
|
|
|
|
int
|
|
|
|
default "32" if ARCH_32
|
|
|
|
default "64" if ARCH_64
|
|
|
|
|
2009-11-17 08:27:38 +00:00
|
|
|
choice
|
|
|
|
bool
|
|
|
|
prompt "Bitness:"
|
2009-11-17 21:29:50 +00:00
|
|
|
default ARCH_32 if ARCH_DEFAULT_32
|
|
|
|
default ARCH_64 if ARCH_DEFAULT_64
|
2009-11-17 08:27:38 +00:00
|
|
|
|
2009-11-17 21:29:50 +00:00
|
|
|
config ARCH_32
|
2009-11-17 08:27:38 +00:00
|
|
|
bool
|
|
|
|
prompt "32-bit"
|
|
|
|
depends on ARCH_SUPPORTS_32
|
|
|
|
|
2009-11-17 21:29:50 +00:00
|
|
|
config ARCH_64
|
2009-11-17 08:27:38 +00:00
|
|
|
bool
|
|
|
|
prompt "64-bit"
|
|
|
|
depends on ARCH_SUPPORTS_64
|
2007-02-24 11:00:05 +00:00
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2010-09-11 10:38:12 +00:00
|
|
|
source "config.gen/arch.in.2"
|
|
|
|
|
2009-05-20 20:13:13 +00:00
|
|
|
#--------------------------------------
|
2007-02-24 11:00:05 +00:00
|
|
|
comment "Target optimisations"
|
|
|
|
|
2008-06-27 15:08:43 +00:00
|
|
|
config ARCH_SUPPORT_ARCH
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
config ARCH_SUPPORT_ABI
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
config ARCH_SUPPORT_CPU
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
config ARCH_SUPPORT_TUNE
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
config ARCH_SUPPORT_FPU
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
2007-04-23 20:30:34 +00:00
|
|
|
config ARCH_ARCH
|
|
|
|
string
|
2008-02-14 22:44:34 +00:00
|
|
|
prompt "Architecture level"
|
2008-06-27 15:08:43 +00:00
|
|
|
depends on ARCH_SUPPORT_ARCH
|
2007-04-23 20:30:34 +00:00
|
|
|
default ""
|
|
|
|
help
|
|
|
|
GCC uses this name to determine what kind of instructions it can emit
|
|
|
|
when generating assembly code. This option can be used in conjunction
|
|
|
|
with or instead of the ARCH_CPU option (above), or a (command-line)
|
|
|
|
-mcpu= option.
|
|
|
|
|
|
|
|
This is the configuration flag --with-arch=XXXX, and the runtime flag
|
|
|
|
-march=XXX.
|
|
|
|
|
|
|
|
Pick a value from the gcc manual for your choosen gcc version and your
|
|
|
|
target CPU.
|
|
|
|
|
|
|
|
Leave blank if you don't know, or if your target architecture does not
|
|
|
|
offer this option.
|
|
|
|
|
2007-04-21 17:31:51 +00:00
|
|
|
config ARCH_ABI
|
|
|
|
string
|
|
|
|
prompt "Generate code for the specific ABI"
|
2008-06-27 15:08:43 +00:00
|
|
|
depends on ARCH_SUPPORT_ABI
|
2007-04-21 17:31:51 +00:00
|
|
|
default ""
|
|
|
|
help
|
|
|
|
Generate code for the given ABI.
|
|
|
|
|
2007-04-23 20:30:34 +00:00
|
|
|
This is the configuration flag --with-abi=XXXX, and the runtime flag
|
|
|
|
-mabi=XXX.
|
|
|
|
|
2007-04-21 17:31:51 +00:00
|
|
|
Pick a value from the gcc manual for your choosen gcc version and your
|
|
|
|
target CPU.
|
|
|
|
|
|
|
|
Leave blank if you don't know, or if your target architecutre does not
|
|
|
|
offer this option.
|
|
|
|
|
2007-02-24 11:00:05 +00:00
|
|
|
config ARCH_CPU
|
|
|
|
string
|
|
|
|
prompt "Emit assembly for CPU"
|
2008-06-27 15:08:43 +00:00
|
|
|
depends on ARCH_SUPPORT_CPU
|
2007-02-24 11:00:05 +00:00
|
|
|
default ""
|
|
|
|
help
|
2007-07-22 16:32:24 +00:00
|
|
|
This specifies the name of the target processor. GCC uses this name
|
2007-02-24 11:00:05 +00:00
|
|
|
to determine what kind of instructions it can emit when generating
|
|
|
|
assembly code.
|
|
|
|
|
2007-04-23 20:30:34 +00:00
|
|
|
This is the configuration flag --with-cpu=XXXX, and the runtime flag
|
|
|
|
-mcpu=XXX.
|
|
|
|
|
2007-02-24 11:00:05 +00:00
|
|
|
Pick a value from the gcc manual for your choosen gcc version and your
|
|
|
|
target CPU.
|
|
|
|
|
|
|
|
Leave blank if you don't know, or if your target architecture does not
|
|
|
|
offer this option.
|
|
|
|
|
|
|
|
config ARCH_TUNE
|
|
|
|
string
|
|
|
|
prompt "Tune for CPU"
|
2008-06-27 15:08:43 +00:00
|
|
|
depends on ARCH_SUPPORT_TUNE
|
2007-02-24 11:00:05 +00:00
|
|
|
default ""
|
|
|
|
help
|
|
|
|
This option is very similar to the ARCH_CPU option (above), except
|
|
|
|
that instead of specifying the actual target processor type, and hence
|
|
|
|
restricting which instructions can be used, it specifies that GCC should
|
|
|
|
tune the performance of the code as if the target were of the type
|
|
|
|
specified in this option, but still choosing the instructions that it
|
|
|
|
will generate based on the cpu specified by the ARCH_CPU option
|
|
|
|
(above), or a (command-line) -mcpu= option.
|
|
|
|
|
2007-04-23 20:30:34 +00:00
|
|
|
This is the configuration flag --with-tune=XXXX, and the runtime flag
|
|
|
|
-mtune=XXX.
|
2007-02-24 11:00:05 +00:00
|
|
|
|
|
|
|
Pick a value from the gcc manual for your choosen gcc version and your
|
|
|
|
target CPU.
|
|
|
|
|
|
|
|
Leave blank if you don't know, or if your target architecture does not
|
|
|
|
offer this option.
|
|
|
|
|
|
|
|
config ARCH_FPU
|
|
|
|
string
|
2007-04-23 20:30:34 +00:00
|
|
|
prompt "Use specific FPU"
|
2008-06-27 15:08:43 +00:00
|
|
|
depends on ARCH_SUPPORT_FPU
|
2007-02-24 11:00:05 +00:00
|
|
|
default ""
|
|
|
|
help
|
|
|
|
On some targets (eg. ARM), you can specify the kind of FPU to emit
|
|
|
|
code for.
|
2007-04-23 20:30:34 +00:00
|
|
|
|
|
|
|
This is the configuration flag --with-fpu=XXX, and the runtime flag
|
|
|
|
-mfpu=XXX.
|
2007-02-24 11:00:05 +00:00
|
|
|
|
|
|
|
See below wether to actually emit FP opcodes, or to emulate them.
|
|
|
|
|
|
|
|
Pick a value from the gcc manual for your choosen gcc version and your
|
|
|
|
target CPU.
|
|
|
|
|
|
|
|
Leave blank if you don't know, or if your target architecture does not
|
|
|
|
offer this option.
|
|
|
|
|
|
|
|
choice
|
|
|
|
bool
|
|
|
|
prompt "Floating point:"
|
|
|
|
|
|
|
|
config ARCH_FLOAT_HW
|
|
|
|
bool
|
|
|
|
prompt "hardware (FPU)"
|
|
|
|
help
|
|
|
|
Emit hardware floating point opcodes.
|
|
|
|
|
|
|
|
If you've got a processor with a FPU, then you want that.
|
|
|
|
If your hardware has no FPU, you still can use HW floating point, but
|
|
|
|
need to compile support for FPU emulation in your kernel. Needless to
|
|
|
|
say that emulating the FPU is /slooowwwww/...
|
|
|
|
|
|
|
|
One situation you'd want HW floating point without a FPU is if you get
|
|
|
|
binary blobs from different vendors that are compiling this way and
|
|
|
|
can't (don't wan't to) change.
|
|
|
|
|
|
|
|
config ARCH_FLOAT_SW
|
|
|
|
bool
|
|
|
|
prompt "software"
|
|
|
|
help
|
|
|
|
Do not emit any hardware floating point opcode.
|
|
|
|
|
|
|
|
If your processor has no FPU, then you most probably want this, as it
|
|
|
|
is faster than emulating the FPU in the kernel.
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config TARGET_CFLAGS
|
|
|
|
string
|
2007-04-17 22:24:42 +00:00
|
|
|
prompt "Target CFLAGS"
|
2007-02-24 11:00:05 +00:00
|
|
|
default ""
|
|
|
|
help
|
|
|
|
Used to add specific options when compiling libraries of the toolchain,
|
|
|
|
that will run on the target (eg. libc.so).
|
|
|
|
|
2008-05-24 22:38:07 +00:00
|
|
|
Note that the options above for ARCH, ABI, CPU, TUNE and FPU will be
|
2007-02-24 11:00:05 +00:00
|
|
|
automaticaly used. You don't need to specify them here.
|
|
|
|
|
|
|
|
Leave blank if you don't know better.
|
|
|
|
|
2008-08-07 15:18:18 +00:00
|
|
|
config TARGET_LDFLAGS
|
|
|
|
string
|
|
|
|
prompt "Target LDFLAGS"
|
|
|
|
default ""
|
|
|
|
help
|
|
|
|
Used to add specific options when linking libraries of the toolchain,
|
|
|
|
that will run on your target.
|
|
|
|
|
|
|
|
Leave blank if you don't know better.
|
|
|
|
|
2007-02-24 11:00:05 +00:00
|
|
|
endmenu
|