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