config/companion_libs.in
author Remy Bohmer <linux@bohmer.net>
Fri Jan 29 23:23:59 2010 +0100 (2010-01-29)
changeset 1754 fe497dd5bec1
parent 1496 75a766c20552
child 1808 a1370757e6a1
permissions -rw-r--r--
arch: add basic m68k support

Signed-off-by: Remy Bohmer <linux@bohmer.net>
[yann.morin.1998@anciens.enib.fr: use defaults for CT_TARGET_ARCH]
Signed-off-by: "Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
     1 # Companion libraries config options
     2 # Those libraries are required for different versions of gcc,
     3 # and can be used by binutils and gdb (maybe others as well).
     4 
     5 menu "Companion libraries"
     6 
     7 config WRAPPER_NEEDED
     8     bool
     9     default n
    10 
    11 config GMP_MPFR
    12     bool
    13     prompt "GMP and MPFR"
    14     select WRAPPER_NEEDED
    15     help
    16       gcc 4.3.0 and above requires both GMP and MPFR to build some frontends,
    17       and some other components can use them as well.
    18       
    19       These will be automatically selected if you choose gcc>=4.3.0, but you
    20       can say 'Y' here if you want to build those two libraries for the other
    21       components (that don't select them by default).
    22       
    23       The packages that can use GMP and MPFR are:
    24         - binutils
    25         - gcc
    26         - gdb
    27 
    28 if GMP_MPFR
    29 source config/companion_libs/gmp.in
    30 source config/companion_libs/mpfr.in
    31 endif
    32 
    33 config PPL_CLOOG_MPC
    34     bool
    35     prompt "PPL, GLooG/PPL and MPC"
    36     select GMP_MPFR
    37     select WRAPPER_NEEDED
    38     help
    39       gcc-4.4.0 and above requires PPL and CLooG/PPL to build some parts
    40       of the optimiser (GRAPHITE loop optimisation, to be precise).
    41       
    42       In addition to those, gcc-4.4 also optionally uses MPC to enable
    43       additional optimisations on complex numbers. Although MPC is optional,
    44       crosstool-NG requires it and uses it to build gcc >= 4.4.0.
    45       
    46       These will be automatically selected if you choose gcc>=4.4.0, but you
    47       can say 'Y' here, although it is unknown yet if any other component
    48       can use them.
    49 
    50 if PPL_CLOOG_MPC
    51 source config/companion_libs/ppl.in
    52 source config/companion_libs/cloog.in
    53 source config/companion_libs/mpc.in
    54 endif
    55 
    56 config FOO
    57     bool
    58 
    59 comment "Companion libraries common options"
    60     depends on GMP_MPFR || PPL_CLOOG_MPC
    61 
    62 config COMP_LIBS_CHECK
    63     bool
    64     prompt "|  Check the companion libraries builds (!!! READ HELP!!!)"
    65     depends on GMP_MPFR || PPL_CLOOG_MPC
    66     default n
    67     help
    68       It is highly recommended to check the newly built companion libraries.
    69       Unfortunately, this is a very intensive task, and takes a loooong time.
    70       
    71       Checking the newly built companion libraries is thus disabled by default,
    72       but it is suggested that you check them at least once on your machine,
    73       and if they work, disable the check on subsequent builds.
    74       
    75       If you suspect that one (or more) of your companion libraries is the
    76       cause for incorrectly generated code, you should answer 'Y' here.
    77       Note however that this will take a really long time. For example,
    78       building PPL on my machine takes roughly 1'40", while checking it takes
    79       about 1h40'...
    80 
    81 config COMP_LIBS_TARGET
    82     bool
    83     prompt "|  Build companion libraries for the target"
    84     depends on GMP_MPFR || PPL_CLOOG_MPC
    85     depends on ! BARE_METAL
    86     default n
    87     help
    88       Also build companion libraries for the target. This can be usefull if
    89       you want to later build a compiler that will run on the target, or if
    90       you want to run gdb natively on the target.
    91       
    92       Please note that for now, crosstool-NG can only build GMP and MPFR so.
    93 
    94 choice
    95     bool
    96     prompt "|  Install tools wrapper as:"
    97     depends on WRAPPER_NEEDED
    98     default TOOLS_WRAPPER_SHELL
    99 
   100 config TOOLS_WRAPPER_SCRIPT
   101     bool
   102     prompt "shell script"
   103     help
   104       If your host has a shell, then you should say 'Y' here, to use
   105       a (very very simple) shell script as wrapper.
   106       
   107       See docs/overview.txt, section "Tools wrapper".
   108 
   109 config TOOLS_WRAPPER_EXEC
   110     bool
   111     prompt "executable"
   112     help
   113       If your host lacks a shell, then you should say 'Y' here, to use
   114       an executable.
   115       
   116       See docs/overview.txt, section "Tools wrapper".
   117 
   118 endchoice
   119 
   120 config TOOLS_WRAPPER
   121     string
   122     default "script" if TOOLS_WRAPPER_SCRIPT
   123     default "exec"   if TOOLS_WRAPPER_EXEC
   124 
   125 endmenu