config/target.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Jun 27 15:08:43 2008 +0000 (2008-06-27)
changeset 631 2761b358f9e6
parent 628 87802cb25a0f
child 633 9193aa9460db
permissions -rw-r--r--
Only present each of arch, abi, cpu tune and fpu optimisations for those targets supporting them.

/trunk/config/target.in | 30 30 0 0 ++++++++++++++++++++++++++++++
/trunk/arch/arm/config.in | 5 5 0 0 +++++
/trunk/arch/powerpc/config.in | 3 3 0 0 +++
/trunk/arch/alpha/config.in | 2 2 0 0 ++
/trunk/arch/x86/config.in | 3 3 0 0 +++
/trunk/arch/mips/config.in | 3 3 0 0 +++
/trunk/arch/x86_64/config.in | 3 3 0 0 +++
7 files changed, 49 insertions(+)
yann@1
     1
# Target definition: architecture, optimisations, etc...
yann@1
     2
yann@1
     3
menu "Target options"
yann@1
     4
yann@47
     5
config ARCH
yann@47
     6
    string
yann@628
     7
yann@628
     8
# Pre-declare target optimisation variables
yann@631
     9
config ARCH_SUPPORT_ARCH
yann@628
    10
config ARCH_ARCH
yann@631
    11
config ARCH_SUPPORT_ABI
yann@628
    12
config ARCH_ABI
yann@631
    13
config ARCH_SUPPORT_CPU
yann@628
    14
config ARCH_CPU
yann@631
    15
config ARCH_SUPPORT_TUNE
yann@628
    16
config ARCH_TUNE
yann@631
    17
config ARCH_SUPPORT_FPU
yann@628
    18
config ARCH_FPU
yann@628
    19
config ARCH_SUPPORTS_BOTH_ENDIAN
yann@628
    20
config ARCH_DEFAULT_BE
yann@628
    21
config ARCH_DEFAULT_LE
yann@628
    22
config ARCH_FLOAT_HW
yann@628
    23
config ARCH_FLOAT_SW
yann@628
    24
config TARGET_CFLAGS
yann@628
    25
yann@628
    26
comment "General target options"
yann@47
    27
yann@1
    28
choice
yann@1
    29
    bool
yann@1
    30
    prompt "Target architecture:"
yann@1
    31
yann@628
    32
source config.gen/arch.in
yann@1
    33
yann@1
    34
endchoice
yann@1
    35
yann@136
    36
config ARCH_SUPPORTS_BOTH_ENDIAN
yann@35
    37
    bool
yann@35
    38
    default n
yann@35
    39
yann@347
    40
config ARCH_DEFAULT_BE
yann@347
    41
    bool
yann@347
    42
    default n
yann@347
    43
yann@347
    44
config ARCH_DEFAULT_LE
yann@347
    45
    bool
yann@347
    46
    default n
yann@347
    47
yann@1
    48
choice
yann@1
    49
    bool
yann@1
    50
    prompt "Endianness:"
yann@136
    51
    depends on ARCH_SUPPORTS_BOTH_ENDIAN
yann@347
    52
    default ARCH_BE if ARCH_DEFAULT_BE
yann@347
    53
    default ARCH_LE if ARCH_DEFAULT_LE
yann@1
    54
yann@1
    55
config ARCH_BE
yann@1
    56
    bool
yann@1
    57
    prompt "Big endian"
yann@1
    58
yann@1
    59
config ARCH_LE
yann@1
    60
    bool
yann@1
    61
    prompt "Little endian"
yann@1
    62
yann@1
    63
endchoice
yann@1
    64
yann@1
    65
comment "Target optimisations"
yann@1
    66
yann@631
    67
config ARCH_SUPPORT_ARCH
yann@631
    68
    bool
yann@631
    69
    default n
yann@631
    70
yann@631
    71
config ARCH_SUPPORT_ABI
yann@631
    72
    bool
yann@631
    73
    default n
yann@631
    74
yann@631
    75
config ARCH_SUPPORT_CPU
yann@631
    76
    bool
yann@631
    77
    default n
yann@631
    78
yann@631
    79
config ARCH_SUPPORT_TUNE
yann@631
    80
    bool
yann@631
    81
    default n
yann@631
    82
yann@631
    83
config ARCH_SUPPORT_FPU
yann@631
    84
    bool
yann@631
    85
    default n
yann@631
    86
yann@47
    87
config ARCH_ARCH
yann@47
    88
    string
yann@425
    89
    prompt "Architecture level"
yann@631
    90
    depends on ARCH_SUPPORT_ARCH
yann@47
    91
    default ""
yann@47
    92
    help
yann@47
    93
      GCC uses this name to determine what kind of instructions it can emit
yann@47
    94
      when generating assembly code. This option can be used in conjunction
yann@47
    95
      with or instead of the ARCH_CPU option (above), or a (command-line)
yann@47
    96
      -mcpu= option.
yann@47
    97
      
yann@47
    98
      This is the configuration flag --with-arch=XXXX, and the runtime flag
yann@47
    99
      -march=XXX.
yann@47
   100
      
yann@47
   101
      Pick a value from the gcc manual for your choosen gcc version and your
yann@47
   102
      target CPU.
yann@47
   103
      
yann@47
   104
      Leave blank if you don't know, or if your target architecture does not
yann@47
   105
      offer this option.
yann@47
   106
yann@45
   107
config ARCH_ABI
yann@45
   108
    string
yann@45
   109
    prompt "Generate code for the specific ABI"
yann@631
   110
    depends on ARCH_SUPPORT_ABI
yann@45
   111
    default ""
yann@45
   112
    help
yann@45
   113
      Generate code for the given ABI.
yann@45
   114
yann@47
   115
      This is the configuration flag --with-abi=XXXX, and the runtime flag
yann@47
   116
      -mabi=XXX.
yann@47
   117
yann@45
   118
      Pick a value from the gcc manual for your choosen gcc version and your
yann@45
   119
      target CPU.
yann@45
   120
yann@45
   121
      Leave blank if you don't know, or if your target architecutre does not
yann@45
   122
      offer this option.
yann@45
   123
yann@1
   124
config ARCH_CPU
yann@1
   125
    string
yann@1
   126
    prompt "Emit assembly for CPU"
yann@631
   127
    depends on ARCH_SUPPORT_CPU
yann@1
   128
    default ""
yann@1
   129
    help
yann@283
   130
      This specifies the name of the target processor. GCC uses this name
yann@1
   131
      to determine what kind of instructions it can emit when generating
yann@1
   132
      assembly code.
yann@1
   133
      
yann@47
   134
      This is the configuration flag --with-cpu=XXXX, and the runtime flag
yann@47
   135
      -mcpu=XXX.
yann@47
   136
yann@1
   137
      Pick a value from the gcc manual for your choosen gcc version and your
yann@1
   138
      target CPU.
yann@1
   139
      
yann@1
   140
      Leave blank if you don't know, or if your target architecture does not
yann@1
   141
      offer this option.
yann@1
   142
yann@1
   143
config ARCH_TUNE
yann@1
   144
    string
yann@1
   145
    prompt "Tune for CPU"
yann@631
   146
    depends on ARCH_SUPPORT_TUNE
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@631
   169
    depends on ARCH_SUPPORT_FPU
yann@1
   170
    default ""
yann@1
   171
    help
yann@1
   172
      On some targets (eg. ARM), you can specify the kind of FPU to emit
yann@1
   173
      code for.
yann@47
   174
yann@47
   175
      This is the configuration flag --with-fpu=XXX, and the runtime flag
yann@47
   176
      -mfpu=XXX.
yann@1
   177
      
yann@1
   178
      See below wether to actually emit FP opcodes, or to emulate them.
yann@1
   179
      
yann@1
   180
      Pick a value from the gcc manual for your choosen gcc version and your
yann@1
   181
      target CPU.
yann@1
   182
      
yann@1
   183
      Leave blank if you don't know, or if your target architecture does not
yann@1
   184
      offer this option.
yann@1
   185
yann@1
   186
choice
yann@1
   187
    bool
yann@1
   188
    prompt "Floating point:"
yann@1
   189
yann@1
   190
config ARCH_FLOAT_HW
yann@1
   191
    bool
yann@1
   192
    prompt "hardware (FPU)"
yann@1
   193
    help
yann@1
   194
      Emit hardware floating point opcodes.
yann@1
   195
      
yann@1
   196
      If you've got a processor with a FPU, then you want that.
yann@1
   197
      If your hardware has no FPU, you still can use HW floating point, but
yann@1
   198
      need to compile support for FPU emulation in your kernel. Needless to
yann@1
   199
      say that emulating the FPU is /slooowwwww/...
yann@1
   200
      
yann@1
   201
      One situation you'd want HW floating point without a FPU is if you get
yann@1
   202
      binary blobs from different vendors that are compiling this way and
yann@1
   203
      can't (don't wan't to) change.
yann@1
   204
yann@1
   205
config ARCH_FLOAT_SW
yann@1
   206
    bool
yann@1
   207
    prompt "software"
yann@1
   208
    help
yann@1
   209
      Do not emit any hardware floating point opcode.
yann@1
   210
      
yann@1
   211
      If your processor has no FPU, then you most probably want this, as it
yann@1
   212
      is faster than emulating the FPU in the kernel.
yann@1
   213
yann@1
   214
endchoice
yann@1
   215
yann@1
   216
config TARGET_CFLAGS
yann@1
   217
    string
yann@41
   218
    prompt "Target CFLAGS"
yann@1
   219
    default ""
yann@1
   220
    help
yann@1
   221
      Used to add specific options when compiling libraries of the toolchain,
yann@1
   222
      that will run on the target (eg. libc.so).
yann@1
   223
      
yann@531
   224
      Note that the options above for ARCH, ABI, CPU, TUNE and FPU will be
yann@1
   225
      automaticaly used. You don't need to specify them here.
yann@1
   226
      
yann@1
   227
      Leave blank if you don't know better.
yann@1
   228
yann@1
   229
endmenu