complibs: simplify config file

Although currently the wrapper is directly dependent on
companion libraries, let's still decorelate those two.
This commit is contained in:
Yann E. MORIN" 2010-02-18 20:43:31 +01:00
parent 3eaa187de5
commit 77a605d48e
6 changed files with 22 additions and 11 deletions

View File

@ -81,7 +81,7 @@ config BINUTILS_TARGET_USE_GMP_MPFR
default n
select GMP
select MPFR
select COMP_LIBS_TARGET
select COMPLIBS_TARGET
help
binutils can be configured to use GMP and MPFR.
While this is automatically handled for the cross-binutils,

View File

@ -6,6 +6,10 @@ menu "Companion libraries"
comment "FIXME: check real dependencies!!!"
config COMPLIBS
bool
default n
config WRAPPER_NEEDED
bool
default n
@ -13,6 +17,7 @@ config WRAPPER_NEEDED
config GMP
bool
prompt "GMP"
select COMPLIBS
select WRAPPER_NEEDED
help
gcc 4.3.0 and above requires GMP to build some frontends, and some
@ -31,6 +36,7 @@ config MPFR
bool
prompt "MPFR"
select GMP
select COMPLIBS
select WRAPPER_NEEDED
help
gcc 4.3.0 and above requires MPFR to build some frontends, and some
@ -50,6 +56,7 @@ config PPL
prompt "PPL"
select GMP
select MPFR
select COMPLIBS
select WRAPPER_NEEDED
help
gcc-4.4.0 and above requires PPL to build some parts of the optimiser
@ -65,6 +72,7 @@ config CLOOG
select GMP
select MPFR
select PPL
select COMPLIBS
select WRAPPER_NEEDED
help
gcc-4.4.0 and above requires CLooG/PPL to build some parts of the
@ -81,6 +89,7 @@ config MPC
select MPFR
select PPL
select CLOOG
select COMPLIBS
select WRAPPER_NEEDED
help
gcc-4.4.0 and above can also optionally use MPC to enable additional
@ -111,12 +120,13 @@ config FOO
bool
comment "Companion libraries common options"
depends on GMP || MPFR || PPL || CLOOG || MPC
depends on COMPLIBS || WRAPPER_NEEDED
if COMPLIBS
config COMP_LIBS_CHECK
bool
prompt "| Check the companion libraries builds (!!! READ HELP!!!)"
depends on GMP || MPFR || PPL || CLOOG || MPC
default n
help
It is highly recommended to check the newly built companion libraries.
@ -132,10 +142,9 @@ config COMP_LIBS_CHECK
building PPL on my machine takes roughly 1'40", while checking it takes
about 1h40'...
config COMP_LIBS_TARGET
config COMPLIBS_TARGET
bool
prompt "| Build companion libraries for the target"
depends on GMP || MPFR || PPL || CLOOG || MPC
depends on ! BARE_METAL
default n
help
@ -145,6 +154,8 @@ config COMP_LIBS_TARGET
Please note that for now, crosstool-NG can only build GMP and MPFR so.
endif # COMPLIBS
choice
bool
prompt "| Install tools wrapper as:"

View File

@ -60,7 +60,7 @@ config GDB_NATIVE_USE_GMP_MPFR
depends on GDB_NATIVE
select GMP
select MPFR
select COMP_LIBS_TARGET
select COMPLIBS_TARGET
help
gdb can make use of the GMP and MPFR libraries.

View File

@ -84,7 +84,7 @@ do_binutils_target() {
done
# If GMP and MPFR were configured, then use that
if [ "${CT_COMP_LIBS_TARGET}" = "y" ]; then
if [ "${CT_BINUTILS_TARGET_USE_GMP_MPFR}" = "y" ]; then
extra_config+=("--with-gmp=${CT_SYSROOT_DIR}/usr")
extra_config+=("--with-mpfr=${CT_SYSROOT_DIR}/usr")
fi

View File

@ -56,7 +56,7 @@ do_gmp() {
CT_EndStep
}
if [ "${CT_COMP_LIBS_TARGET}" = "y" ]; then
if [ "${CT_COMPLIBS_TARGET}" = "y" ]; then
do_gmp_target() {
mkdir -p "${CT_BUILD_DIR}/build-gmp-target"
@ -87,6 +87,6 @@ do_gmp_target() {
CT_EndStep
}
fi # CT_COMP_LIBS_TARGET == y
fi # CT_COMPLIBS_TARGET == y
fi # CT_GMP == y

View File

@ -106,7 +106,7 @@ do_mpfr() {
CT_EndStep
}
if [ "${CT_COMP_LIBS_TARGET}" = "y" ]; then
if [ "${CT_COMPLIBS_TARGET}" = "y" ]; then
do_mpfr_target() {
mkdir -p "${CT_BUILD_DIR}/build-mpfr-target"
@ -145,6 +145,6 @@ do_mpfr_target() {
CT_EndStep
}
fi # CT_COMP_LIBS_TARGET == y
fi # CT_COMPLIBS_TARGET == y
fi # CT_MPFR == y