config/target.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Sep 11 17:24:09 2007 +0000 (2007-09-11)
changeset 373 34612b693dde
parent 368 9355e869a76b
child 380 2f7b676c7b2f
permissions -rw-r--r--
Merge from branches/ia64@476 : add ia64 preliminary support.
yann@1
     1
# Target definition: architecture, optimisations, etc...
yann@1
     2
yann@1
     3
menu "Target options"
yann@1
     4
yann@1
     5
comment "General target options"
yann@1
     6
yann@47
     7
config ARCH
yann@47
     8
    string
yann@47
     9
    default "arm"     if ARCH_ARM
yann@373
    10
    default "ia64"    if ARCH_IA64
yann@47
    11
    default "mips"    if ARCH_MIPS
yann@47
    12
    default "x86"     if ARCH_x86
yann@47
    13
    default "x86_64"  if ARCH_x86_64
yann@47
    14
yann@1
    15
choice
yann@1
    16
    bool
yann@1
    17
    prompt "Target architecture:"
yann@1
    18
    default ARCH_x86
yann@1
    19
yann@1
    20
config ARCH_ARM
yann@1
    21
    bool
yann@1
    22
    prompt "arm"
yann@136
    23
    select ARCH_SUPPORTS_BOTH_ENDIAN
yann@368
    24
    select ARCH_DEFAULT_LE
yann@1
    25
yann@373
    26
config ARCH_IA64
yann@373
    27
    bool
yann@373
    28
    prompt "ia64 (EXPERIMENTAL)"
yann@373
    29
    depends on EXPERIMENTAL
yann@373
    30
    select ARCH_SUPPORTS_BOTH_ENDIAN
yann@373
    31
yann@1
    32
config ARCH_MIPS
yann@1
    33
    bool
yann@1
    34
    prompt "mips"
yann@136
    35
    select ARCH_SUPPORTS_BOTH_ENDIAN
yann@368
    36
    select ARCH_DEFAULT_BE
yann@1
    37
yann@1
    38
config ARCH_x86
yann@1
    39
    bool
yann@1
    40
    prompt "x86"
yann@1
    41
yann@1
    42
config ARCH_x86_64
yann@1
    43
    bool
yann@1
    44
    prompt "x86_64"
yann@1
    45
yann@1
    46
endchoice
yann@1
    47
yann@136
    48
config ARCH_SUPPORTS_BOTH_ENDIAN
yann@35
    49
    bool
yann@35
    50
    default n
yann@35
    51
yann@347
    52
config ARCH_DEFAULT_BE
yann@347
    53
    bool
yann@347
    54
    default n
yann@347
    55
yann@347
    56
config ARCH_DEFAULT_LE
yann@347
    57
    bool
yann@347
    58
    default n
yann@347
    59
yann@1
    60
choice
yann@1
    61
    bool
yann@1
    62
    prompt "Endianness:"
yann@136
    63
    depends on ARCH_SUPPORTS_BOTH_ENDIAN
yann@347
    64
    default ARCH_BE if ARCH_DEFAULT_BE
yann@347
    65
    default ARCH_LE if ARCH_DEFAULT_LE
yann@1
    66
yann@1
    67
config ARCH_BE
yann@1
    68
    bool
yann@1
    69
    prompt "Big endian"
yann@1
    70
yann@1
    71
config ARCH_LE
yann@1
    72
    bool
yann@1
    73
    prompt "Little endian"
yann@1
    74
yann@1
    75
endchoice
yann@1
    76
yann@1
    77
comment "Target optimisations"
yann@1
    78
yann@47
    79
config ARCH_ARCH
yann@47
    80
    string
yann@47
    81
    prompt "Achitecture level"
yann@47
    82
    default ""
yann@47
    83
    help
yann@47
    84
      GCC uses this name to determine what kind of instructions it can emit
yann@47
    85
      when generating assembly code. This option can be used in conjunction
yann@47
    86
      with or instead of the ARCH_CPU option (above), or a (command-line)
yann@47
    87
      -mcpu= option.
yann@47
    88
      
yann@47
    89
      This is the configuration flag --with-arch=XXXX, and the runtime flag
yann@47
    90
      -march=XXX.
yann@47
    91
      
yann@47
    92
      Pick a value from the gcc manual for your choosen gcc version and your
yann@47
    93
      target CPU.
yann@47
    94
      
yann@47
    95
      Leave blank if you don't know, or if your target architecture does not
yann@47
    96
      offer this option.
yann@47
    97
yann@45
    98
config ARCH_ABI
yann@45
    99
    string
yann@45
   100
    prompt "Generate code for the specific ABI"
yann@45
   101
    default ""
yann@45
   102
    help
yann@45
   103
      Generate code for the given ABI.
yann@45
   104
yann@47
   105
      This is the configuration flag --with-abi=XXXX, and the runtime flag
yann@47
   106
      -mabi=XXX.
yann@47
   107
yann@45
   108
      Pick a value from the gcc manual for your choosen gcc version and your
yann@45
   109
      target CPU.
yann@45
   110
yann@45
   111
      Leave blank if you don't know, or if your target architecutre does not
yann@45
   112
      offer this option.
yann@45
   113
yann@1
   114
config ARCH_CPU
yann@1
   115
    string
yann@1
   116
    prompt "Emit assembly for CPU"
yann@1
   117
    default ""
yann@1
   118
    help
yann@283
   119
      This specifies the name of the target processor. GCC uses this name
yann@1
   120
      to determine what kind of instructions it can emit when generating
yann@1
   121
      assembly code.
yann@1
   122
      
yann@47
   123
      This is the configuration flag --with-cpu=XXXX, and the runtime flag
yann@47
   124
      -mcpu=XXX.
yann@47
   125
yann@1
   126
      Pick a value from the gcc manual for your choosen gcc version and your
yann@1
   127
      target CPU.
yann@1
   128
      
yann@1
   129
      Leave blank if you don't know, or if your target architecture does not
yann@1
   130
      offer this option.
yann@1
   131
yann@1
   132
config ARCH_TUNE
yann@1
   133
    string
yann@1
   134
    prompt "Tune for CPU"
yann@1
   135
    default ""
yann@1
   136
    help
yann@1
   137
      This option is very similar to the ARCH_CPU option (above), except
yann@1
   138
      that instead of specifying the actual target processor type, and hence
yann@1
   139
      restricting which instructions can be used, it specifies that GCC should
yann@1
   140
      tune the performance of the code as if the target were of the type
yann@1
   141
      specified in this option, but still choosing the instructions that it
yann@1
   142
      will generate based on the cpu specified by the ARCH_CPU option
yann@1
   143
      (above), or a (command-line) -mcpu= option.
yann@1
   144
      
yann@47
   145
      This is the configuration flag --with-tune=XXXX, and the runtime flag
yann@47
   146
      -mtune=XXX.
yann@1
   147
      
yann@1
   148
      Pick a value from the gcc manual for your choosen gcc version and your
yann@1
   149
      target CPU.
yann@1
   150
      
yann@1
   151
      Leave blank if you don't know, or if your target architecture does not
yann@1
   152
      offer this option.
yann@1
   153
yann@1
   154
config ARCH_FPU
yann@1
   155
    string
yann@47
   156
    prompt "Use specific FPU"
yann@1
   157
    default ""
yann@1
   158
    help
yann@1
   159
      On some targets (eg. ARM), you can specify the kind of FPU to emit
yann@1
   160
      code for.
yann@47
   161
yann@47
   162
      This is the configuration flag --with-fpu=XXX, and the runtime flag
yann@47
   163
      -mfpu=XXX.
yann@1
   164
      
yann@1
   165
      See below wether to actually emit FP opcodes, or to emulate them.
yann@1
   166
      
yann@1
   167
      Pick a value from the gcc manual for your choosen gcc version and your
yann@1
   168
      target CPU.
yann@1
   169
      
yann@1
   170
      Leave blank if you don't know, or if your target architecture does not
yann@1
   171
      offer this option.
yann@1
   172
yann@1
   173
choice
yann@1
   174
    bool
yann@1
   175
    prompt "Floating point:"
yann@1
   176
yann@1
   177
config ARCH_FLOAT_HW
yann@1
   178
    bool
yann@1
   179
    prompt "hardware (FPU)"
yann@1
   180
    help
yann@1
   181
      Emit hardware floating point opcodes.
yann@1
   182
      
yann@1
   183
      If you've got a processor with a FPU, then you want that.
yann@1
   184
      If your hardware has no FPU, you still can use HW floating point, but
yann@1
   185
      need to compile support for FPU emulation in your kernel. Needless to
yann@1
   186
      say that emulating the FPU is /slooowwwww/...
yann@1
   187
      
yann@1
   188
      One situation you'd want HW floating point without a FPU is if you get
yann@1
   189
      binary blobs from different vendors that are compiling this way and
yann@1
   190
      can't (don't wan't to) change.
yann@1
   191
yann@1
   192
config ARCH_FLOAT_SW
yann@1
   193
    bool
yann@1
   194
    prompt "software"
yann@1
   195
    help
yann@1
   196
      Do not emit any hardware floating point opcode.
yann@1
   197
      
yann@1
   198
      If your processor has no FPU, then you most probably want this, as it
yann@1
   199
      is faster than emulating the FPU in the kernel.
yann@1
   200
yann@1
   201
endchoice
yann@1
   202
yann@1
   203
config TARGET_CFLAGS
yann@1
   204
    string
yann@41
   205
    prompt "Target CFLAGS"
yann@1
   206
    default ""
yann@1
   207
    help
yann@1
   208
      Used to add specific options when compiling libraries of the toolchain,
yann@1
   209
      that will run on the target (eg. libc.so).
yann@1
   210
      
yann@1
   211
      Note that the options above for CPU, tune, arch and FPU will be
yann@1
   212
      automaticaly used. You don't need to specify them here.
yann@1
   213
      
yann@1
   214
      Leave blank if you don't know better.
yann@1
   215
yann@1
   216
endmenu