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