scripts/build/libc_libfloat.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue May 01 16:49:15 2007 +0000 (2007-05-01)
changeset 56 07a6a48962b7
child 63 89b41dbffe8d
permissions -rw-r--r--
Merge patches sent by Robert P. J. Day <rpjday@mindspring.com>.
Warning: the buildroot folks purposedly removed the skip-comment patch but didn't really said why. Keeping it for the sake of having it in svn just in case (removing it will be easier thant not having it at all).
     1 # This file adds functions to build libfloat
     2 # Copyright 2007 Yann E. MORIN
     3 # Licensed under the GPL v2. See COPYING in the root of this package
     4 
     5 do_libfloat() {
     6     # Here we build and install libfloat for the target, so that the C library
     7     # builds OK with those versions of gcc that have severed softfloat support
     8     # code
     9     [ "${CT_ARCH_FLOAT_SW_LIBFLOAT}" = "y" ] || return 0
    10 	CT_DoStep INFO "Installing software floating point emulation library libfloat"
    11 
    12     CT_Pushd "${CT_BUILD_DIR}"
    13     CT_DoLog EXTRA "Copying sources to build dir"
    14     mkdir build-libfloat
    15     cd build-libfloat
    16     ( cd "${CT_SRC_DIR}/${CT_LIBFLOAT_FILE}"; tar cf - . ) |tar xvf - |CT_DoLog DEBUG
    17 
    18     CT_DoLog EXTRA "Cleaning library"
    19     make clean 2>&1 |CT_DoLog DEBUG
    20 
    21     CT_DoLog EXTRA "Building library"
    22     make CROSS_COMPILE="${CT_CC_CORE_PREFIX_DIR}/bin/${CT_TARGET}-" 2>&1 |CT_DoLog DEBUG
    23 
    24     CT_DoLog EXTRA "Installing library"
    25     make CROSS_COMPILE="${CT_CC_CORE_PREFIX_DIR}/bin/${CT_TARGET}-" \
    26          DESTDIR="${CT_SYSROOT_DIR}" install                       2>&1 |CT_DoLog DEBUG
    27 
    28     CT_Popd
    29 
    30     CT_EndStep
    31 }