2009-05-03 21:10:15 +00:00
|
|
|
# Companion libraries config options
|
|
|
|
# Those libraries are required for different versions of gcc,
|
|
|
|
# and can be used by binutils and gdb (maybe others as well).
|
2008-06-20 15:16:43 +00:00
|
|
|
|
2009-05-03 21:10:15 +00:00
|
|
|
menu "Companion libraries"
|
2008-06-20 15:16:43 +00:00
|
|
|
|
2010-02-17 22:47:47 +00:00
|
|
|
comment "FIXME: check real dependencies!!!"
|
|
|
|
|
2010-02-18 19:43:31 +00:00
|
|
|
config COMPLIBS
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
2009-08-29 22:57:40 +00:00
|
|
|
config WRAPPER_NEEDED
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
2010-02-17 22:47:47 +00:00
|
|
|
config GMP
|
2008-06-20 15:16:43 +00:00
|
|
|
bool
|
2010-02-17 22:47:47 +00:00
|
|
|
prompt "GMP"
|
2010-02-18 19:43:31 +00:00
|
|
|
select COMPLIBS
|
2009-08-29 22:57:40 +00:00
|
|
|
select WRAPPER_NEEDED
|
2008-06-20 15:16:43 +00:00
|
|
|
help
|
2010-02-17 22:47:47 +00:00
|
|
|
gcc 4.3.0 and above requires GMP to build some frontends, and some
|
|
|
|
other components can use them as well.
|
2009-05-03 21:10:15 +00:00
|
|
|
|
2010-02-17 22:47:47 +00:00
|
|
|
This will be automatically selected if you choose gcc>=4.3.0, but you
|
|
|
|
can say 'Y' here if you want to build this library for the other
|
2009-05-05 22:04:20 +00:00
|
|
|
components (that don't select them by default).
|
2009-05-03 21:10:15 +00:00
|
|
|
|
2008-06-20 15:16:43 +00:00
|
|
|
The packages that can use GMP and MPFR are:
|
|
|
|
- binutils
|
|
|
|
- gcc
|
|
|
|
- gdb
|
|
|
|
|
2010-02-17 22:47:47 +00:00
|
|
|
config MPFR
|
|
|
|
bool
|
|
|
|
prompt "MPFR"
|
|
|
|
select GMP
|
2010-02-18 19:43:31 +00:00
|
|
|
select COMPLIBS
|
2010-02-17 22:47:47 +00:00
|
|
|
select WRAPPER_NEEDED
|
|
|
|
help
|
|
|
|
gcc 4.3.0 and above requires MPFR to build some frontends, and some
|
|
|
|
other components can use them as well.
|
|
|
|
|
|
|
|
This will be automatically selected if you choose gcc>=4.3.0, but you
|
|
|
|
can say 'Y' here if you want to build this library for the other
|
|
|
|
components (that don't select them by default).
|
|
|
|
|
|
|
|
The packages that can use GMP and MPFR are:
|
|
|
|
- binutils
|
|
|
|
- gcc
|
|
|
|
- gdb
|
2008-06-20 15:16:43 +00:00
|
|
|
|
2010-02-17 22:47:47 +00:00
|
|
|
config PPL
|
2009-05-05 22:04:20 +00:00
|
|
|
bool
|
2010-02-17 22:47:47 +00:00
|
|
|
prompt "PPL"
|
|
|
|
select GMP
|
|
|
|
select MPFR
|
2010-02-18 19:43:31 +00:00
|
|
|
select COMPLIBS
|
2009-08-29 22:57:40 +00:00
|
|
|
select WRAPPER_NEEDED
|
2009-05-05 22:04:20 +00:00
|
|
|
help
|
2010-02-17 22:47:47 +00:00
|
|
|
gcc-4.4.0 and above requires PPL to build some parts of the optimiser
|
|
|
|
(the GRAPHITE loop optimisation, to be precise).
|
2009-05-25 18:22:26 +00:00
|
|
|
|
2010-02-17 22:47:47 +00:00
|
|
|
This will be automatically selected if you choose gcc>=4.4.0, but you
|
|
|
|
can say 'Y' here, although it is unknown yet if any other component
|
|
|
|
can use it.
|
|
|
|
|
|
|
|
config CLOOG
|
|
|
|
bool
|
|
|
|
prompt "GLooG/PPL"
|
|
|
|
select GMP
|
|
|
|
select MPFR
|
|
|
|
select PPL
|
2010-02-18 19:43:31 +00:00
|
|
|
select COMPLIBS
|
2010-02-17 22:47:47 +00:00
|
|
|
select WRAPPER_NEEDED
|
|
|
|
help
|
|
|
|
gcc-4.4.0 and above requires CLooG/PPL to build some parts of the
|
|
|
|
optimiser (the GRAPHITE loop optimisation, to be precise).
|
|
|
|
|
|
|
|
This will be automatically selected if you choose gcc>=4.4.0, but you
|
|
|
|
can say 'Y' here, although it is unknown yet if any other component
|
|
|
|
can use it.
|
|
|
|
|
|
|
|
config MPC
|
|
|
|
bool
|
|
|
|
prompt "MPC"
|
|
|
|
select GMP
|
|
|
|
select MPFR
|
|
|
|
select PPL
|
|
|
|
select CLOOG
|
2010-02-18 19:43:31 +00:00
|
|
|
select COMPLIBS
|
2010-02-17 22:47:47 +00:00
|
|
|
select WRAPPER_NEEDED
|
|
|
|
help
|
|
|
|
gcc-4.4.0 and above can also optionally use MPC to enable additional
|
|
|
|
optimisations on complex numbers. Although MPC is optional,
|
2009-05-25 18:22:26 +00:00
|
|
|
crosstool-NG requires it and uses it to build gcc >= 4.4.0.
|
2009-05-05 22:04:20 +00:00
|
|
|
|
2010-02-17 22:47:47 +00:00
|
|
|
This will be automatically selected if you choose gcc>=4.4.0, but you
|
2009-05-05 22:04:20 +00:00
|
|
|
can say 'Y' here, although it is unknown yet if any other component
|
2010-02-17 22:47:47 +00:00
|
|
|
can use it.
|
2009-05-05 22:04:20 +00:00
|
|
|
|
2010-02-17 22:47:47 +00:00
|
|
|
if GMP
|
|
|
|
source config/companion_libs/gmp.in
|
|
|
|
endif
|
|
|
|
if MPFR
|
|
|
|
source config/companion_libs/mpfr.in
|
|
|
|
endif
|
|
|
|
if PPL
|
2009-05-05 22:04:20 +00:00
|
|
|
source config/companion_libs/ppl.in
|
2010-02-17 22:47:47 +00:00
|
|
|
endif
|
|
|
|
if CLOOG
|
2009-05-24 22:04:14 +00:00
|
|
|
source config/companion_libs/cloog.in
|
2010-02-17 22:47:47 +00:00
|
|
|
endif
|
|
|
|
if MPC
|
2009-05-25 18:22:26 +00:00
|
|
|
source config/companion_libs/mpc.in
|
2009-05-05 22:04:20 +00:00
|
|
|
endif
|
|
|
|
|
2009-06-01 17:05:50 +00:00
|
|
|
config FOO
|
|
|
|
bool
|
|
|
|
|
|
|
|
comment "Companion libraries common options"
|
2010-02-18 19:43:31 +00:00
|
|
|
depends on COMPLIBS || WRAPPER_NEEDED
|
|
|
|
|
|
|
|
if COMPLIBS
|
2009-05-25 19:46:58 +00:00
|
|
|
|
|
|
|
config COMP_LIBS_CHECK
|
|
|
|
bool
|
2009-06-01 17:05:50 +00:00
|
|
|
prompt "| Check the companion libraries builds (!!! READ HELP!!!)"
|
2009-05-25 19:46:58 +00:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
It is highly recommended to check the newly built companion libraries.
|
|
|
|
Unfortunately, this is a very intensive task, and takes a loooong time.
|
2009-06-14 20:56:26 +00:00
|
|
|
|
2009-05-25 19:46:58 +00:00
|
|
|
Checking the newly built companion libraries is thus disabled by default,
|
2009-05-25 20:04:12 +00:00
|
|
|
but it is suggested that you check them at least once on your machine,
|
2009-05-25 19:46:58 +00:00
|
|
|
and if they work, disable the check on subsequent builds.
|
2009-06-14 20:56:26 +00:00
|
|
|
|
2009-05-25 19:46:58 +00:00
|
|
|
If you suspect that one (or more) of your companion libraries is the
|
|
|
|
cause for incorrectly generated code, you should answer 'Y' here.
|
|
|
|
Note however that this will take a really long time. For example,
|
|
|
|
building PPL on my machine takes roughly 1'40", while checking it takes
|
2009-06-01 17:05:50 +00:00
|
|
|
about 1h40'...
|
2009-05-25 19:46:58 +00:00
|
|
|
|
2010-02-18 19:43:31 +00:00
|
|
|
config COMPLIBS_TARGET
|
2009-05-25 19:46:58 +00:00
|
|
|
bool
|
2009-06-01 17:05:50 +00:00
|
|
|
prompt "| Build companion libraries for the target"
|
2009-05-25 19:46:58 +00:00
|
|
|
depends on ! BARE_METAL
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Also build companion libraries for the target. This can be usefull if
|
|
|
|
you want to later build a compiler that will run on the target, or if
|
|
|
|
you want to run gdb natively on the target.
|
|
|
|
|
|
|
|
Please note that for now, crosstool-NG can only build GMP and MPFR so.
|
|
|
|
|
2010-02-18 19:43:31 +00:00
|
|
|
endif # COMPLIBS
|
|
|
|
|
2009-09-06 09:47:40 +00:00
|
|
|
choice
|
|
|
|
bool
|
|
|
|
prompt "| Install tools wrapper as:"
|
|
|
|
depends on WRAPPER_NEEDED
|
|
|
|
default TOOLS_WRAPPER_SHELL
|
|
|
|
|
|
|
|
config TOOLS_WRAPPER_SCRIPT
|
|
|
|
bool
|
|
|
|
prompt "shell script"
|
|
|
|
help
|
|
|
|
If your host has a shell, then you should say 'Y' here, to use
|
|
|
|
a (very very simple) shell script as wrapper.
|
|
|
|
|
|
|
|
See docs/overview.txt, section "Tools wrapper".
|
|
|
|
|
|
|
|
config TOOLS_WRAPPER_EXEC
|
|
|
|
bool
|
|
|
|
prompt "executable"
|
|
|
|
help
|
|
|
|
If your host lacks a shell, then you should say 'Y' here, to use
|
|
|
|
an executable.
|
|
|
|
|
|
|
|
See docs/overview.txt, section "Tools wrapper".
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config TOOLS_WRAPPER
|
|
|
|
string
|
|
|
|
default "script" if TOOLS_WRAPPER_SCRIPT
|
|
|
|
default "exec" if TOOLS_WRAPPER_EXEC
|
|
|
|
|
2008-06-20 15:16:43 +00:00
|
|
|
endmenu
|