# HG changeset patch # User "Yann E. MORIN" # Date 1357848119 -3600 # Node ID e51eb0a614c7d9e413b9d8591eb8f9d775507c83 # Parent 3ecd4bbfecc5304b16cff36c902742a7a43e9211 libc: get rid of libc_finish At long last, we no longer have any libc that requries a libc_finish. Yeah! Signed-off-by: "Yann E. MORIN" diff -r 3ecd4bbfecc5 -r e51eb0a614c7 docs/9 - How is a toolchain constructed.txt --- a/docs/9 - How is a toolchain constructed.txt Thu Jan 10 19:06:46 2013 +0100 +++ b/docs/9 - How is a toolchain constructed.txt Thu Jan 10 21:01:59 2013 +0100 @@ -243,11 +243,7 @@ added. It allows for super-stripping the target binaries, although it is not strictly required. -Second, some C libraries require another step after the compiler is built, to -install additional stuff. This is the case for mingw and newlib. Hence the -libc_finish step. - -Third, crosstool-NG can also build some additional debug utilities to run on +Second, crosstool-NG can also build some additional debug utilities to run on the target. This is where we build, for example, the cross-gdb, the gdbserver and the native gdb (the last two run on the target, the first runs on the same machine as the toolchain). The others (strace, ltrace, DUMA and dmalloc) diff -r 3ecd4bbfecc5 -r e51eb0a614c7 scripts/build/libc/eglibc.sh --- a/scripts/build/libc/eglibc.sh Thu Jan 10 19:06:46 2013 +0100 +++ b/scripts/build/libc/eglibc.sh Thu Jan 10 21:01:59 2013 +0100 @@ -4,7 +4,6 @@ # do_libc_extract # do_libc_start_files # do_libc -# do_libc_finish # do_libc_add_ons_list # do_libc_min_kernel_config . "${CT_LIB_DIR}/scripts/build/libc/glibc-eglibc.sh-common" diff -r 3ecd4bbfecc5 -r e51eb0a614c7 scripts/build/libc/glibc-eglibc.sh-common --- a/scripts/build/libc/glibc-eglibc.sh-common Thu Jan 10 19:06:46 2013 +0100 +++ b/scripts/build/libc/glibc-eglibc.sh-common Thu Jan 10 21:01:59 2013 +0100 @@ -471,12 +471,6 @@ fi # libc_full == y } -# This function finishes the C library install -# This is a no-op -do_libc_finish() { - : -} - # Build up the addons list, separated with $1 do_libc_add_ons_list() { local sep="$1" diff -r 3ecd4bbfecc5 -r e51eb0a614c7 scripts/build/libc/glibc.sh --- a/scripts/build/libc/glibc.sh Thu Jan 10 19:06:46 2013 +0100 +++ b/scripts/build/libc/glibc.sh Thu Jan 10 21:01:59 2013 +0100 @@ -6,7 +6,6 @@ # do_libc_extract # do_libc_start_files # do_libc -# do_libc_finish # do_libc_add_ons_list # do_libc_min_kernel_config . "${CT_LIB_DIR}/scripts/build/libc/glibc-eglibc.sh-common" diff -r 3ecd4bbfecc5 -r e51eb0a614c7 scripts/build/libc/mingw.sh --- a/scripts/build/libc/mingw.sh Thu Jan 10 19:06:46 2013 +0100 +++ b/scripts/build/libc/mingw.sh Thu Jan 10 21:01:59 2013 +0100 @@ -77,7 +77,3 @@ CT_EndStep } - -do_libc_finish() { - : -} diff -r 3ecd4bbfecc5 -r e51eb0a614c7 scripts/build/libc/newlib.sh --- a/scripts/build/libc/newlib.sh Thu Jan 10 19:06:46 2013 +0100 +++ b/scripts/build/libc/newlib.sh Thu Jan 10 21:01:59 2013 +0100 @@ -135,7 +135,3 @@ CT_EndStep } - -do_libc_finish() { - : -} diff -r 3ecd4bbfecc5 -r e51eb0a614c7 scripts/build/libc/none.sh --- a/scripts/build/libc/none.sh Thu Jan 10 19:06:46 2013 +0100 +++ b/scripts/build/libc/none.sh Thu Jan 10 21:01:59 2013 +0100 @@ -21,7 +21,3 @@ do_libc() { : } - -do_libc_finish() { - : -} diff -r 3ecd4bbfecc5 -r e51eb0a614c7 scripts/build/libc/uClibc.sh --- a/scripts/build/libc/uClibc.sh Thu Jan 10 19:06:46 2013 +0100 +++ b/scripts/build/libc/uClibc.sh Thu Jan 10 21:01:59 2013 +0100 @@ -232,11 +232,6 @@ CT_EndStep } -# This function is used to install those components needing the final C compiler -do_libc_finish() { - : -} - # Initialises the .config file to sensible values # $1: original file # $2: munged file diff -r 3ecd4bbfecc5 -r e51eb0a614c7 steps.mk --- a/steps.mk Thu Jan 10 19:06:46 2013 +0100 +++ b/steps.mk Thu Jan 10 21:01:59 2013 +0100 @@ -30,7 +30,6 @@ libc \ cc_for_build \ cc_for_host \ - libc_finish \ libelf_for_target \ binutils_for_target \ debug \