scripts/build/libc_libfloat.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Feb 24 11:00:05 2007 +0000 (2007-02-24)
changeset 1 eeea35fbf182
child 63 89b41dbffe8d
permissions -rw-r--r--
Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!".
Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup.
That means I'm putting backups in place in the afternoon.
That also means we've lost history... :-(
yann@1
     1
# This file adds functions to build libfloat
yann@1
     2
# Copyright 2007 Yann E. MORIN
yann@1
     3
# Licensed under the GPL v2. See COPYING in the root of this package
yann@1
     4
yann@1
     5
do_libfloat() {
yann@1
     6
    # Here we build and install libfloat for the target, so that the C library
yann@1
     7
    # builds OK with those versions of gcc that have severed softfloat support
yann@1
     8
    # code
yann@1
     9
    [ "${CT_ARCH_FLOAT_SW_LIBFLOAT}" = "y" ] || return 0
yann@1
    10
	CT_DoStep INFO "Installing software floating point emulation library libfloat"
yann@1
    11
yann@1
    12
    CT_Pushd "${CT_BUILD_DIR}"
yann@1
    13
    CT_DoLog EXTRA "Copying sources to build dir"
yann@1
    14
    mkdir build-libfloat
yann@1
    15
    cd build-libfloat
yann@1
    16
    ( cd "${CT_SRC_DIR}/${CT_LIBFLOAT_FILE}"; tar cf - . ) |tar xvf - |CT_DoLog DEBUG
yann@1
    17
yann@1
    18
    CT_DoLog EXTRA "Cleaning library"
yann@1
    19
    make clean 2>&1 |CT_DoLog DEBUG
yann@1
    20
yann@1
    21
    CT_DoLog EXTRA "Building library"
yann@1
    22
    make CROSS_COMPILE="${CT_CC_CORE_PREFIX_DIR}/bin/${CT_TARGET}-" 2>&1 |CT_DoLog DEBUG
yann@1
    23
yann@1
    24
    CT_DoLog EXTRA "Installing library"
yann@1
    25
    make CROSS_COMPILE="${CT_CC_CORE_PREFIX_DIR}/bin/${CT_TARGET}-" \
yann@1
    26
         DESTDIR="${CT_SYSROOT_DIR}" install                       2>&1 |CT_DoLog DEBUG
yann@1
    27
yann@1
    28
    CT_Popd
yann@1
    29
yann@1
    30
    CT_EndStep
yann@1
    31
}