1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/scripts/build/libc_libfloat.sh Wed Mar 21 21:04:31 2007 +0000
1.3 @@ -0,0 +1,31 @@
1.4 +# This file adds functions to build libfloat
1.5 +# Copyright 2007 Yann E. MORIN
1.6 +# Licensed under the GPL v2. See COPYING in the root of this package
1.7 +
1.8 +do_libfloat() {
1.9 + # Here we build and install libfloat for the target, so that the C library
1.10 + # builds OK with those versions of gcc that have severed softfloat support
1.11 + # code
1.12 + [ "${CT_ARCH_FLOAT_SW_LIBFLOAT}" = "y" ] || return 0
1.13 + CT_DoStep INFO "Installing software floating point emulation library libfloat"
1.14 +
1.15 + CT_Pushd "${CT_BUILD_DIR}"
1.16 + CT_DoLog EXTRA "Copying sources to build dir"
1.17 + mkdir build-libfloat
1.18 + cd build-libfloat
1.19 + ( cd "${CT_SRC_DIR}/${CT_LIBFLOAT_FILE}"; tar cf - . ) |tar xvf - |CT_DoLog DEBUG
1.20 +
1.21 + CT_DoLog EXTRA "Cleaning library"
1.22 + make clean 2>&1 |CT_DoLog DEBUG
1.23 +
1.24 + CT_DoLog EXTRA "Building library"
1.25 + make CROSS_COMPILE="${CT_CC_CORE_PREFIX_DIR}/bin/${CT_TARGET}-" 2>&1 |CT_DoLog DEBUG
1.26 +
1.27 + CT_DoLog EXTRA "Installing library"
1.28 + make CROSS_COMPILE="${CT_CC_CORE_PREFIX_DIR}/bin/${CT_TARGET}-" \
1.29 + DESTDIR="${CT_SYSROOT_DIR}" install 2>&1 |CT_DoLog DEBUG
1.30 +
1.31 + CT_Popd
1.32 +
1.33 + CT_EndStep
1.34 +}