scripts/build/libc_libfloat.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun May 06 21:47:29 2007 +0000 (2007-05-06)
changeset 62 651912c5477c
child 63 89b41dbffe8d
permissions -rw-r--r--
Linux kernel headers install does not need the kernel to be configured. Dropping this unneccessary step.
     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 }