scripts/build/internals.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Mar 23 23:05:08 2009 +0000 (2009-03-23)
changeset 1264 2b591f1d34ba
parent 1225 4b065e7e2130
child 1281 12a2991fcffb
permissions -rw-r--r--
xlcwu <xlcwu.taiwan@gmail.com> wrote:
Seems ncurses 5.7 need build host stage for tic step; if use host tic
(ubuntu) the build process hang in the below step.
So I guess need to build ncurses host stage to build new tic

and provided a patch to that efect.

And in fact, we do need "tic" to run on the _build_ system to properly
generate the terminfo database.

Note: this is fully functional, but still requires a litle bit of
tweaking so that ${CT_BUILD}-gcc gets used instead of plain gcc.
But that's a minor problem for now...

/trunk/scripts/build/debug/300-gdb.sh | 35 33 2 0 +++++++++++++++++++++++++++++++++--
/trunk/scripts/build/internals.sh | 1 1 0 0 +
2 files changed, 34 insertions(+), 2 deletions(-)
     1 # This file contains crosstool-NG internal steps
     2 
     3 # This step is called once all components were built, to remove
     4 # un-wanted files, to add tuple aliases, and to add the final
     5 # crosstool-NG-provided files.
     6 do_finish() {
     7     CT_DoStep INFO "Cleaning-up the toolchain's directory"
     8 
     9     CT_DoLog EXTRA "Removing access to the build system tools"
    10     find "${CT_PREFIX_DIR}/bin" -name "${CT_BUILD}-"'*' -exec rm -fv {} \; |CT_DoLog DEBUG
    11     find "${CT_PREFIX_DIR}/bin" -name "${CT_HOST}-"'*' -exec rm -fv {} \; |CT_DoLog DEBUG
    12     CT_DoExecLog DEBUG rm -fv "${CT_PREFIX_DIR}/bin/makeinfo"
    13     CT_DoExecLog DEBUG rm -fv "${CT_PREFIX_DIR}/bin/tic"
    14 
    15     if [ "${CT_BARE_METAL}" != "y" ]; then
    16         CT_DoLog EXTRA "Installing the populate helper"
    17         sed -r -e 's|@@CT_TARGET@@|'"${CT_TARGET}"'|g;' \
    18                -e 's|@@CT_install@@|'"${install}"'|g;'  \
    19                -e 's|@@CT_bash@@|'"${bash}"'|g;'        \
    20                -e 's|@@CT_grep@@|'"${grep}"'|g;'        \
    21                -e 's|@@CT_make@@|'"${make}"'|g;'        \
    22                -e 's|@@CT_awk@@|'"${awk}"'|g;'          \
    23                -e 's|@@CT_sed@@|'"${sed}"'|g;'          \
    24                "${CT_LIB_DIR}/scripts/populate.in"      \
    25                >"${CT_PREFIX_DIR}/bin/${CT_TARGET}-populate"
    26         CT_DoExecLog ALL chmod 755 "${CT_PREFIX_DIR}/bin/${CT_TARGET}-populate"
    27     fi
    28 
    29     # Create the aliases to the target tools
    30     CT_DoLog EXTRA "Creating toolchain aliases"
    31     CT_Pushd "${CT_PREFIX_DIR}/bin"
    32     for t in "${CT_TARGET}-"*; do
    33         if [ -n "${CT_TARGET_ALIAS}" ]; then
    34             _t=$(echo "$t" |sed -r -e 's/^'"${CT_TARGET}"'-/'"${CT_TARGET_ALIAS}"'-/;')
    35             CT_DoExecLog ALL ln -sv "${t}" "${_t}"
    36         fi
    37         if [ -n "${CT_TARGET_ALIAS_SED_EXPR}" ]; then
    38             _t=$(echo "$t" |sed -r -e "${CT_TARGET_ALIAS_SED_EXPR}")
    39             CT_DoExecLog ALL ln -sv "${t}" "${_t}"
    40         fi
    41     done
    42     CT_Popd
    43 
    44     # Remove the generated documentation files
    45     if [ "${CT_REMOVE_DOCS}" = "y" ]; then
    46         CT_DoLog EXTRA "Removing installed documentation"
    47         CT_DoForceRmdir "${CT_PREFIX_DIR}/"{,usr/}{man,info}
    48         CT_DoForceRmdir "${CT_SYSROOT_DIR}/"{,usr/}{man,info}
    49         CT_DoForceRmdir "${CT_DEBUGROOT_DIR}/"{,usr/}{man,info}
    50     fi
    51 
    52     CT_EndStep
    53 }