config/companion_libs.in
changeset 1808 a1370757e6a1
parent 1515 545179329bc5
child 1809 b488b4815f9b
     1.1 --- a/config/companion_libs.in	Sun Sep 06 11:47:40 2009 +0200
     1.2 +++ b/config/companion_libs.in	Wed Feb 17 23:47:47 2010 +0100
     1.3 @@ -4,20 +4,22 @@
     1.4  
     1.5  menu "Companion libraries"
     1.6  
     1.7 +comment "FIXME: check real dependencies!!!"
     1.8 +
     1.9  config WRAPPER_NEEDED
    1.10      bool
    1.11      default n
    1.12  
    1.13 -config GMP_MPFR
    1.14 +config GMP
    1.15      bool
    1.16 -    prompt "GMP and MPFR"
    1.17 +    prompt "GMP"
    1.18      select WRAPPER_NEEDED
    1.19      help
    1.20 -      gcc 4.3.0 and above requires both GMP and MPFR to build some frontends,
    1.21 -      and some other components can use them as well.
    1.22 +      gcc 4.3.0 and above requires GMP to build some frontends, and some
    1.23 +      other components can use them as well.
    1.24        
    1.25 -      These will be automatically selected if you choose gcc>=4.3.0, but you
    1.26 -      can say 'Y' here if you want to build those two libraries for the other
    1.27 +      This will be automatically selected if you choose gcc>=4.3.0, but you
    1.28 +      can say 'Y' here if you want to build this library for the other
    1.29        components (that don't select them by default).
    1.30        
    1.31        The packages that can use GMP and MPFR are:
    1.32 @@ -25,31 +27,83 @@
    1.33          - gcc
    1.34          - gdb
    1.35  
    1.36 -if GMP_MPFR
    1.37 +config MPFR
    1.38 +    bool
    1.39 +    prompt "MPFR"
    1.40 +    select GMP
    1.41 +    select WRAPPER_NEEDED
    1.42 +    help
    1.43 +      gcc 4.3.0 and above requires MPFR to build some frontends, and some
    1.44 +      other components can use them as well.
    1.45 +      
    1.46 +      This will be automatically selected if you choose gcc>=4.3.0, but you
    1.47 +      can say 'Y' here if you want to build this library for the other
    1.48 +      components (that don't select them by default).
    1.49 +      
    1.50 +      The packages that can use GMP and MPFR are:
    1.51 +        - binutils
    1.52 +        - gcc
    1.53 +        - gdb
    1.54 +
    1.55 +config PPL
    1.56 +    bool
    1.57 +    prompt "PPL"
    1.58 +    select GMP
    1.59 +    select MPFR
    1.60 +    select WRAPPER_NEEDED
    1.61 +    help
    1.62 +      gcc-4.4.0 and above requires PPL to build some parts of the optimiser
    1.63 +      (the GRAPHITE loop optimisation, to be precise).
    1.64 +      
    1.65 +      This will be automatically selected if you choose gcc>=4.4.0, but you
    1.66 +      can say 'Y' here, although it is unknown yet if any other component
    1.67 +      can use it.
    1.68 +
    1.69 +config CLOOG
    1.70 +    bool
    1.71 +    prompt "GLooG/PPL"
    1.72 +    select GMP
    1.73 +    select MPFR
    1.74 +    select PPL
    1.75 +    select WRAPPER_NEEDED
    1.76 +    help
    1.77 +      gcc-4.4.0 and above requires CLooG/PPL to build some parts of the
    1.78 +      optimiser (the GRAPHITE loop optimisation, to be precise).
    1.79 +      
    1.80 +      This will be automatically selected if you choose gcc>=4.4.0, but you
    1.81 +      can say 'Y' here, although it is unknown yet if any other component
    1.82 +      can use it.
    1.83 +
    1.84 +config MPC
    1.85 +    bool
    1.86 +    prompt "MPC"
    1.87 +    select GMP
    1.88 +    select MPFR
    1.89 +    select PPL
    1.90 +    select CLOOG
    1.91 +    select WRAPPER_NEEDED
    1.92 +    help
    1.93 +      gcc-4.4.0 and above can also optionally use MPC to enable additional
    1.94 +      optimisations on complex numbers. Although MPC is optional,
    1.95 +      crosstool-NG requires it and uses it to build gcc >= 4.4.0.
    1.96 +      
    1.97 +      This will be automatically selected if you choose gcc>=4.4.0, but you
    1.98 +      can say 'Y' here, although it is unknown yet if any other component
    1.99 +      can use it.
   1.100 +
   1.101 +if GMP
   1.102  source config/companion_libs/gmp.in
   1.103 +endif
   1.104 +if MPFR
   1.105  source config/companion_libs/mpfr.in
   1.106  endif
   1.107 -
   1.108 -config PPL_CLOOG_MPC
   1.109 -    bool
   1.110 -    prompt "PPL, GLooG/PPL and MPC"
   1.111 -    select GMP_MPFR
   1.112 -    select WRAPPER_NEEDED
   1.113 -    help
   1.114 -      gcc-4.4.0 and above requires PPL and CLooG/PPL to build some parts
   1.115 -      of the optimiser (GRAPHITE loop optimisation, to be precise).
   1.116 -      
   1.117 -      In addition to those, gcc-4.4 also optionally uses MPC to enable
   1.118 -      additional optimisations on complex numbers. Although MPC is optional,
   1.119 -      crosstool-NG requires it and uses it to build gcc >= 4.4.0.
   1.120 -      
   1.121 -      These will be automatically selected if you choose gcc>=4.4.0, but you
   1.122 -      can say 'Y' here, although it is unknown yet if any other component
   1.123 -      can use them.
   1.124 -
   1.125 -if PPL_CLOOG_MPC
   1.126 +if PPL
   1.127  source config/companion_libs/ppl.in
   1.128 +endif
   1.129 +if CLOOG
   1.130  source config/companion_libs/cloog.in
   1.131 +endif
   1.132 +if MPC
   1.133  source config/companion_libs/mpc.in
   1.134  endif
   1.135  
   1.136 @@ -57,12 +111,12 @@
   1.137      bool
   1.138  
   1.139  comment "Companion libraries common options"
   1.140 -    depends on GMP_MPFR || PPL_CLOOG_MPC
   1.141 +    depends on GMP || MPFR || PPL || CLOOG || MPC
   1.142  
   1.143  config COMP_LIBS_CHECK
   1.144      bool
   1.145      prompt "|  Check the companion libraries builds (!!! READ HELP!!!)"
   1.146 -    depends on GMP_MPFR || PPL_CLOOG_MPC
   1.147 +    depends on GMP || MPFR || PPL || CLOOG || MPC
   1.148      default n
   1.149      help
   1.150        It is highly recommended to check the newly built companion libraries.
   1.151 @@ -81,7 +135,7 @@
   1.152  config COMP_LIBS_TARGET
   1.153      bool
   1.154      prompt "|  Build companion libraries for the target"
   1.155 -    depends on GMP_MPFR || PPL_CLOOG_MPC
   1.156 +    depends on GMP || MPFR || PPL || CLOOG || MPC
   1.157      depends on ! BARE_METAL
   1.158      default n
   1.159      help