config/target.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Jul 25 09:52:52 2008 +0000 (2008-07-25)
changeset 718 da8af0237e78
parent 631 2761b358f9e6
child 767 fe5e42bf7bbc
permissions -rw-r--r--
Re-instatethe fortran forntend for this sample.

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