config/target.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun May 27 20:29:22 2007 +0000 (2007-05-27)
changeset 138 dc4ce917245f
parent 136 22b5ef41df97
child 144 27a0abfd46d1
permissions -rw-r--r--
No longer mark NPTL as being EXPERIMENTAL.
But mark build a native gdb as being EXPERIMENTAL.
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@47
    10
    default "mips"    if ARCH_MIPS
yann@47
    11
    default "x86"     if ARCH_x86
yann@47
    12
    default "x86_64"  if ARCH_x86_64
yann@47
    13
yann@1
    14
choice
yann@1
    15
    bool
yann@1
    16
    prompt "Target architecture:"
yann@1
    17
    default ARCH_x86
yann@1
    18
yann@1
    19
config ARCH_ARM
yann@1
    20
    bool
yann@1
    21
    prompt "arm"
yann@136
    22
    select ARCH_SUPPORTS_BOTH_ENDIAN
yann@117
    23
    select ARCH_SUPPORTS_LIBFLOAT
yann@1
    24
yann@1
    25
config ARCH_MIPS
yann@1
    26
    bool
yann@1
    27
    prompt "mips"
yann@136
    28
    select ARCH_SUPPORTS_BOTH_ENDIAN
yann@1
    29
yann@1
    30
config ARCH_x86
yann@1
    31
    bool
yann@1
    32
    prompt "x86"
yann@117
    33
    select ARCH_SUPPORTS_LIBFLOAT
yann@1
    34
yann@1
    35
config ARCH_x86_64
yann@1
    36
    bool
yann@1
    37
    prompt "x86_64"
yann@1
    38
yann@1
    39
endchoice
yann@1
    40
yann@136
    41
config ARCH_SUPPORTS_BOTH_ENDIAN
yann@35
    42
    bool
yann@35
    43
    default n
yann@35
    44
yann@1
    45
choice
yann@1
    46
    bool
yann@1
    47
    prompt "Endianness:"
yann@136
    48
    depends on ARCH_SUPPORTS_BOTH_ENDIAN
yann@1
    49
yann@1
    50
config ARCH_BE
yann@1
    51
    bool
yann@1
    52
    prompt "Big endian"
yann@1
    53
yann@1
    54
config ARCH_LE
yann@1
    55
    bool
yann@1
    56
    prompt "Little endian"
yann@1
    57
yann@1
    58
endchoice
yann@1
    59
yann@136
    60
choice
yann@136
    61
    bool
yann@136
    62
    prompt "Threading implentation to use:"
yann@136
    63
    default THREADS_NPTL           if LIBC_SUPPORT_NPTL
yann@136
    64
    default THREADS_LINUXTHREADS   if LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL
yann@136
    65
    default THREADS_NONE           if ! LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL
yann@136
    66
yann@136
    67
config THREADS_NPTL
yann@136
    68
    bool
yann@138
    69
    prompt "nptl"
yann@136
    70
    depends on LIBC_SUPPORT_NPTL
yann@136
    71
yann@136
    72
config THREADS_LINUXTHREADS
yann@136
    73
    bool
yann@136
    74
    prompt "linuxthreads"
yann@136
    75
    depends on LIBC_SUPPORT_LINUXTHREADS
yann@136
    76
yann@136
    77
config THREADS_NONE
yann@136
    78
    bool
yann@136
    79
    prompt "none"
yann@136
    80
yann@136
    81
endchoice
yann@136
    82
yann@136
    83
config THREADS
yann@136
    84
    string
yann@136
    85
    default "nptl"          if THREADS_NPTL
yann@136
    86
    default "linuxthreads"  if THREADS_LINUXTHREADS
yann@136
    87
    default "none"          if THREADS_NONE
yann@136
    88
yann@1
    89
comment "Target optimisations"
yann@1
    90
yann@47
    91
config ARCH_ARCH
yann@47
    92
    string
yann@47
    93
    prompt "Achitecture level"
yann@47
    94
    default ""
yann@47
    95
    help
yann@47
    96
      GCC uses this name to determine what kind of instructions it can emit
yann@47
    97
      when generating assembly code. This option can be used in conjunction
yann@47
    98
      with or instead of the ARCH_CPU option (above), or a (command-line)
yann@47
    99
      -mcpu= option.
yann@47
   100
      
yann@47
   101
      This is the configuration flag --with-arch=XXXX, and the runtime flag
yann@47
   102
      -march=XXX.
yann@47
   103
      
yann@47
   104
      Pick a value from the gcc manual for your choosen gcc version and your
yann@47
   105
      target CPU.
yann@47
   106
      
yann@47
   107
      Leave blank if you don't know, or if your target architecture does not
yann@47
   108
      offer this option.
yann@47
   109
yann@45
   110
config ARCH_ABI
yann@45
   111
    string
yann@45
   112
    prompt "Generate code for the specific ABI"
yann@45
   113
    default ""
yann@45
   114
    help
yann@45
   115
      Generate code for the given ABI.
yann@45
   116
yann@47
   117
      This is the configuration flag --with-abi=XXXX, and the runtime flag
yann@47
   118
      -mabi=XXX.
yann@47
   119
yann@45
   120
      Pick a value from the gcc manual for your choosen gcc version and your
yann@45
   121
      target CPU.
yann@45
   122
yann@45
   123
      Leave blank if you don't know, or if your target architecutre does not
yann@45
   124
      offer this option.
yann@45
   125
yann@1
   126
config ARCH_CPU
yann@1
   127
    string
yann@1
   128
    prompt "Emit assembly for CPU"
yann@1
   129
    default ""
yann@1
   130
    help
yann@1
   131
      This specifies the name of the target ARM processor. GCC uses this name
yann@1
   132
      to determine what kind of instructions it can emit when generating
yann@1
   133
      assembly code.
yann@1
   134
      
yann@47
   135
      This is the configuration flag --with-cpu=XXXX, and the runtime flag
yann@47
   136
      -mcpu=XXX.
yann@47
   137
yann@1
   138
      Pick a value from the gcc manual for your choosen gcc version and your
yann@1
   139
      target CPU.
yann@1
   140
      
yann@1
   141
      Leave blank if you don't know, or if your target architecture does not
yann@1
   142
      offer this option.
yann@1
   143
yann@1
   144
config ARCH_TUNE
yann@1
   145
    string
yann@1
   146
    prompt "Tune for CPU"
yann@1
   147
    default ""
yann@1
   148
    help
yann@1
   149
      This option is very similar to the ARCH_CPU option (above), except
yann@1
   150
      that instead of specifying the actual target processor type, and hence
yann@1
   151
      restricting which instructions can be used, it specifies that GCC should
yann@1
   152
      tune the performance of the code as if the target were of the type
yann@1
   153
      specified in this option, but still choosing the instructions that it
yann@1
   154
      will generate based on the cpu specified by the ARCH_CPU option
yann@1
   155
      (above), or a (command-line) -mcpu= option.
yann@1
   156
      
yann@47
   157
      This is the configuration flag --with-tune=XXXX, and the runtime flag
yann@47
   158
      -mtune=XXX.
yann@1
   159
      
yann@1
   160
      Pick a value from the gcc manual for your choosen gcc version and your
yann@1
   161
      target CPU.
yann@1
   162
      
yann@1
   163
      Leave blank if you don't know, or if your target architecture does not
yann@1
   164
      offer this option.
yann@1
   165
yann@1
   166
config ARCH_FPU
yann@1
   167
    string
yann@47
   168
    prompt "Use specific FPU"
yann@1
   169
    default ""
yann@1
   170
    help
yann@1
   171
      On some targets (eg. ARM), you can specify the kind of FPU to emit
yann@1
   172
      code for.
yann@47
   173
yann@47
   174
      This is the configuration flag --with-fpu=XXX, and the runtime flag
yann@47
   175
      -mfpu=XXX.
yann@1
   176
      
yann@1
   177
      See below wether to actually emit FP opcodes, or to emulate them.
yann@1
   178
      
yann@1
   179
      Pick a value from the gcc manual for your choosen gcc version and your
yann@1
   180
      target CPU.
yann@1
   181
      
yann@1
   182
      Leave blank if you don't know, or if your target architecture does not
yann@1
   183
      offer this option.
yann@1
   184
yann@1
   185
choice
yann@1
   186
    bool
yann@1
   187
    prompt "Floating point:"
yann@1
   188
yann@1
   189
config ARCH_FLOAT_HW
yann@1
   190
    bool
yann@1
   191
    prompt "hardware (FPU)"
yann@1
   192
    help
yann@1
   193
      Emit hardware floating point opcodes.
yann@1
   194
      
yann@1
   195
      If you've got a processor with a FPU, then you want that.
yann@1
   196
      If your hardware has no FPU, you still can use HW floating point, but
yann@1
   197
      need to compile support for FPU emulation in your kernel. Needless to
yann@1
   198
      say that emulating the FPU is /slooowwwww/...
yann@1
   199
      
yann@1
   200
      One situation you'd want HW floating point without a FPU is if you get
yann@1
   201
      binary blobs from different vendors that are compiling this way and
yann@1
   202
      can't (don't wan't to) change.
yann@1
   203
yann@1
   204
config ARCH_FLOAT_SW
yann@1
   205
    bool
yann@1
   206
    prompt "software"
yann@1
   207
    help
yann@1
   208
      Do not emit any hardware floating point opcode.
yann@1
   209
      
yann@1
   210
      If your processor has no FPU, then you most probably want this, as it
yann@1
   211
      is faster than emulating the FPU in the kernel.
yann@1
   212
yann@1
   213
endchoice
yann@1
   214
yann@117
   215
config ARCH_SUPPORTS_LIBFLOAT
yann@117
   216
    bool
yann@117
   217
    default n
yann@117
   218
yann@1
   219
config ARCH_FLOAT_SW_LIBFLOAT
yann@1
   220
    bool
yann@1
   221
    prompt "Use libfloat"
yann@1
   222
    default n
yann@117
   223
    depends on ARCH_FLOAT_SW && ARCH_SUPPORTS_LIBFLOAT
yann@1
   224
    help
yann@1
   225
      For those targets upporting it, you can use libfloat for the software
yann@1
   226
      floating point emulation.
yann@1
   227
      
yann@1
   228
      Note that some versions of gcc have support code that supersedes libfloat,
yann@1
   229
      while others don't. Known version of gcc that don't have support code are
yann@1
   230
      versions prior to 3.0, and version above 4.0.
yann@1
   231
      
yann@1
   232
      You should check gcc before deciding to use libfloat.
yann@1
   233
yann@108
   234
config LIBFLOAT_VERSION
yann@108
   235
    string
yann@108
   236
    default "990616.orig"
yann@108
   237
    depends on ARCH_FLOAT_SW_LIBFLOAT
yann@108
   238
yann@1
   239
config TARGET_CFLAGS
yann@1
   240
    string
yann@41
   241
    prompt "Target CFLAGS"
yann@1
   242
    default ""
yann@1
   243
    help
yann@1
   244
      Used to add specific options when compiling libraries of the toolchain,
yann@1
   245
      that will run on the target (eg. libc.so).
yann@1
   246
      
yann@1
   247
      Note that the options above for CPU, tune, arch and FPU will be
yann@1
   248
      automaticaly used. You don't need to specify them here.
yann@1
   249
      
yann@1
   250
      Leave blank if you don't know better.
yann@1
   251
yann@1
   252
endmenu