config/target.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed Jun 25 09:04:38 2008 +0000 (2008-06-25)
changeset 619 399b85eeb5be
parent 531 77df8ff1f383
child 628 87802cb25a0f
permissions -rw-r--r--
Update samples.

/trunk/samples/armeb-unknown-linux-uclibc/crosstool.config | 5 3 2 0 +++--
/trunk/samples/arm-unknown-linux-gnueabi/crosstool.config | 5 3 2 0 +++--
/trunk/samples/arm-unknown-linux-gnueabi/reported.by | 2 1 1 0 +-
/trunk/samples/mips-unknown-linux-uclibc/crosstool.config | 5 3 2 0 +++--
/trunk/samples/arm-unknown-linux-uclibcgnueabi/crosstool.config | 5 3 2 0 +++--
/trunk/samples/ia64-unknown-linux-gnu/crosstool.config | 7 3 4 0 +++----
/trunk/samples/armeb-unknown-linux-gnu/crosstool.config | 5 3 2 0 +++--
/trunk/samples/x86_64-unknown-linux-uclibc/crosstool.config | 5 3 2 0 +++--
/trunk/samples/arm-unknown-linux-uclibc/crosstool.config | 5 3 2 0 +++--
/trunk/samples/i586-geode-linux-uclibc/crosstool.config | 5 3 2 0 +++--
/trunk/samples/armeb-unknown-linux-uclibcgnueabi/crosstool.config | 5 3 2 0 +++--
/trunk/samples/i686-nptl-linux-gnu/crosstool.config | 5 3 2 0 +++--
/trunk/samples/alphaev56-unknown-linux-gnu/crosstool.config | 5 3 2 0 +++--
13 files changed, 37 insertions(+), 27 deletions(-)
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@557
     9
    default "alpha"   if ARCH_ALPHA
yann@47
    10
    default "arm"     if ARCH_ARM
yann@373
    11
    default "ia64"    if ARCH_IA64
yann@47
    12
    default "mips"    if ARCH_MIPS
yann@520
    13
    default "powerpc" if ARCH_PPC
yann@413
    14
    default "sh"      if ARCH_SH
yann@47
    15
    default "x86"     if ARCH_x86
yann@47
    16
    default "x86_64"  if ARCH_x86_64
yann@47
    17
yann@1
    18
choice
yann@1
    19
    bool
yann@1
    20
    prompt "Target architecture:"
yann@1
    21
    default ARCH_x86
yann@1
    22
yann@557
    23
config ARCH_ALPHA
yann@557
    24
    bool
yann@557
    25
    prompt "alpha (EXPERIMENTAL)"
yann@557
    26
    depends on EXPERIMENTAL
yann@557
    27
yann@1
    28
config ARCH_ARM
yann@1
    29
    bool
yann@1
    30
    prompt "arm"
yann@136
    31
    select ARCH_SUPPORTS_BOTH_ENDIAN
yann@368
    32
    select ARCH_DEFAULT_LE
yann@1
    33
yann@373
    34
config ARCH_IA64
yann@373
    35
    bool
yann@373
    36
    prompt "ia64 (EXPERIMENTAL)"
yann@373
    37
    depends on EXPERIMENTAL
yann@373
    38
    select ARCH_SUPPORTS_BOTH_ENDIAN
yann@373
    39
yann@447
    40
config ARCH_MIPS
yann@447
    41
    bool
yann@447
    42
    prompt "mips"
yann@447
    43
    select ARCH_SUPPORTS_BOTH_ENDIAN
yann@447
    44
    select ARCH_DEFAULT_BE
yann@447
    45
yann@520
    46
config ARCH_PPC
yann@520
    47
    bool
yann@520
    48
    prompt "powerpc"
yann@520
    49
yann@413
    50
config ARCH_SH
yann@413
    51
    bool
yann@413
    52
    prompt "sh (EXPERIMENTAL)"
yann@413
    53
    depends on EXPERIMENTAL
yann@413
    54
    select ARCH_SUPPORTS_BOTH_ENDIAN
yann@413
    55
    select ARCH_DEFAULT_LE
yann@413
    56
yann@1
    57
config ARCH_x86
yann@1
    58
    bool
yann@1
    59
    prompt "x86"
yann@1
    60
yann@1
    61
config ARCH_x86_64
yann@1
    62
    bool
yann@1
    63
    prompt "x86_64"
yann@1
    64
yann@1
    65
endchoice
yann@1
    66
yann@136
    67
config ARCH_SUPPORTS_BOTH_ENDIAN
yann@35
    68
    bool
yann@35
    69
    default n
yann@35
    70
yann@347
    71
config ARCH_DEFAULT_BE
yann@347
    72
    bool
yann@347
    73
    default n
yann@347
    74
yann@347
    75
config ARCH_DEFAULT_LE
yann@347
    76
    bool
yann@347
    77
    default n
yann@347
    78
yann@1
    79
choice
yann@1
    80
    bool
yann@1
    81
    prompt "Endianness:"
yann@136
    82
    depends on ARCH_SUPPORTS_BOTH_ENDIAN
yann@347
    83
    default ARCH_BE if ARCH_DEFAULT_BE
yann@347
    84
    default ARCH_LE if ARCH_DEFAULT_LE
yann@1
    85
yann@1
    86
config ARCH_BE
yann@1
    87
    bool
yann@1
    88
    prompt "Big endian"
yann@1
    89
yann@1
    90
config ARCH_LE
yann@1
    91
    bool
yann@1
    92
    prompt "Little endian"
yann@1
    93
yann@1
    94
endchoice
yann@1
    95
yann@380
    96
# Include architecture-specific configuration
yann@557
    97
if ARCH_ALPHA
yann@557
    98
source config/arch/alpha/config.in
yann@557
    99
endif
yann@380
   100
if ARCH_ARM
yann@380
   101
source config/arch/arm/config.in
yann@380
   102
endif
yann@380
   103
if ARCH_IA64
yann@380
   104
source config/arch/ia64/config.in
yann@380
   105
endif
yann@380
   106
if ARCH_MIPS
yann@380
   107
source config/arch/mips/config.in
yann@380
   108
endif
yann@520
   109
if ARCH_PPC
yann@520
   110
source config/arch/powerpc/config.in
yann@520
   111
endif
yann@413
   112
if ARCH_SH
yann@413
   113
source config/arch/sh/config.in
yann@413
   114
endif
yann@380
   115
if ARCH_x86
yann@380
   116
source config/arch/x86/config.in
yann@380
   117
endif
yann@380
   118
if ARCH_x86_64
yann@380
   119
source config/arch/x86_64/config.in
yann@380
   120
endif
yann@380
   121
yann@1
   122
comment "Target optimisations"
yann@1
   123
yann@47
   124
config ARCH_ARCH
yann@47
   125
    string
yann@425
   126
    prompt "Architecture level"
yann@47
   127
    default ""
yann@47
   128
    help
yann@47
   129
      GCC uses this name to determine what kind of instructions it can emit
yann@47
   130
      when generating assembly code. This option can be used in conjunction
yann@47
   131
      with or instead of the ARCH_CPU option (above), or a (command-line)
yann@47
   132
      -mcpu= option.
yann@47
   133
      
yann@47
   134
      This is the configuration flag --with-arch=XXXX, and the runtime flag
yann@47
   135
      -march=XXX.
yann@47
   136
      
yann@47
   137
      Pick a value from the gcc manual for your choosen gcc version and your
yann@47
   138
      target CPU.
yann@47
   139
      
yann@47
   140
      Leave blank if you don't know, or if your target architecture does not
yann@47
   141
      offer this option.
yann@47
   142
yann@45
   143
config ARCH_ABI
yann@45
   144
    string
yann@45
   145
    prompt "Generate code for the specific ABI"
yann@45
   146
    default ""
yann@45
   147
    help
yann@45
   148
      Generate code for the given ABI.
yann@45
   149
yann@47
   150
      This is the configuration flag --with-abi=XXXX, and the runtime flag
yann@47
   151
      -mabi=XXX.
yann@47
   152
yann@45
   153
      Pick a value from the gcc manual for your choosen gcc version and your
yann@45
   154
      target CPU.
yann@45
   155
yann@45
   156
      Leave blank if you don't know, or if your target architecutre does not
yann@45
   157
      offer this option.
yann@45
   158
yann@1
   159
config ARCH_CPU
yann@1
   160
    string
yann@1
   161
    prompt "Emit assembly for CPU"
yann@1
   162
    default ""
yann@1
   163
    help
yann@283
   164
      This specifies the name of the target processor. GCC uses this name
yann@1
   165
      to determine what kind of instructions it can emit when generating
yann@1
   166
      assembly code.
yann@1
   167
      
yann@47
   168
      This is the configuration flag --with-cpu=XXXX, and the runtime flag
yann@47
   169
      -mcpu=XXX.
yann@47
   170
yann@1
   171
      Pick a value from the gcc manual for your choosen gcc version and your
yann@1
   172
      target CPU.
yann@1
   173
      
yann@1
   174
      Leave blank if you don't know, or if your target architecture does not
yann@1
   175
      offer this option.
yann@1
   176
yann@1
   177
config ARCH_TUNE
yann@1
   178
    string
yann@1
   179
    prompt "Tune for CPU"
yann@1
   180
    default ""
yann@1
   181
    help
yann@1
   182
      This option is very similar to the ARCH_CPU option (above), except
yann@1
   183
      that instead of specifying the actual target processor type, and hence
yann@1
   184
      restricting which instructions can be used, it specifies that GCC should
yann@1
   185
      tune the performance of the code as if the target were of the type
yann@1
   186
      specified in this option, but still choosing the instructions that it
yann@1
   187
      will generate based on the cpu specified by the ARCH_CPU option
yann@1
   188
      (above), or a (command-line) -mcpu= option.
yann@1
   189
      
yann@47
   190
      This is the configuration flag --with-tune=XXXX, and the runtime flag
yann@47
   191
      -mtune=XXX.
yann@1
   192
      
yann@1
   193
      Pick a value from the gcc manual for your choosen gcc version and your
yann@1
   194
      target CPU.
yann@1
   195
      
yann@1
   196
      Leave blank if you don't know, or if your target architecture does not
yann@1
   197
      offer this option.
yann@1
   198
yann@1
   199
config ARCH_FPU
yann@1
   200
    string
yann@47
   201
    prompt "Use specific FPU"
yann@1
   202
    default ""
yann@1
   203
    help
yann@1
   204
      On some targets (eg. ARM), you can specify the kind of FPU to emit
yann@1
   205
      code for.
yann@47
   206
yann@47
   207
      This is the configuration flag --with-fpu=XXX, and the runtime flag
yann@47
   208
      -mfpu=XXX.
yann@1
   209
      
yann@1
   210
      See below wether to actually emit FP opcodes, or to emulate them.
yann@1
   211
      
yann@1
   212
      Pick a value from the gcc manual for your choosen gcc version and your
yann@1
   213
      target CPU.
yann@1
   214
      
yann@1
   215
      Leave blank if you don't know, or if your target architecture does not
yann@1
   216
      offer this option.
yann@1
   217
yann@1
   218
choice
yann@1
   219
    bool
yann@1
   220
    prompt "Floating point:"
yann@1
   221
yann@1
   222
config ARCH_FLOAT_HW
yann@1
   223
    bool
yann@1
   224
    prompt "hardware (FPU)"
yann@1
   225
    help
yann@1
   226
      Emit hardware floating point opcodes.
yann@1
   227
      
yann@1
   228
      If you've got a processor with a FPU, then you want that.
yann@1
   229
      If your hardware has no FPU, you still can use HW floating point, but
yann@1
   230
      need to compile support for FPU emulation in your kernel. Needless to
yann@1
   231
      say that emulating the FPU is /slooowwwww/...
yann@1
   232
      
yann@1
   233
      One situation you'd want HW floating point without a FPU is if you get
yann@1
   234
      binary blobs from different vendors that are compiling this way and
yann@1
   235
      can't (don't wan't to) change.
yann@1
   236
yann@1
   237
config ARCH_FLOAT_SW
yann@1
   238
    bool
yann@1
   239
    prompt "software"
yann@1
   240
    help
yann@1
   241
      Do not emit any hardware floating point opcode.
yann@1
   242
      
yann@1
   243
      If your processor has no FPU, then you most probably want this, as it
yann@1
   244
      is faster than emulating the FPU in the kernel.
yann@1
   245
yann@1
   246
endchoice
yann@1
   247
yann@1
   248
config TARGET_CFLAGS
yann@1
   249
    string
yann@41
   250
    prompt "Target CFLAGS"
yann@1
   251
    default ""
yann@1
   252
    help
yann@1
   253
      Used to add specific options when compiling libraries of the toolchain,
yann@1
   254
      that will run on the target (eg. libc.so).
yann@1
   255
      
yann@531
   256
      Note that the options above for ARCH, ABI, CPU, TUNE and FPU will be
yann@1
   257
      automaticaly used. You don't need to specify them here.
yann@1
   258
      
yann@1
   259
      Leave blank if you don't know better.
yann@1
   260
yann@1
   261
endmenu