config/target.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun May 03 21:10:15 2009 +0000 (2009-05-03)
changeset 1318 5416f4ba36bf
parent 920 44dd635202a4
child 1345 27fec561af53
permissions -rw-r--r--
Prepare for gcc-4.4:
- add 'companion_libs/' to hold all libraries needed to build gcc-4.3+ and gcc-4.4+
- move GMP & MPFR to 'companion_libs/'

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