Once in a while I write some documentation... Not often enough...
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
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
9 [ "${CT_ARCH_FLOAT_SW_LIBFLOAT}" = "y" ] || return 0
10 CT_DoStep INFO "Installing software floating point emulation library libfloat"
12 CT_Pushd "${CT_BUILD_DIR}"
13 CT_DoLog EXTRA "Copying sources to build dir"
16 ( cd "${CT_SRC_DIR}/${CT_LIBFLOAT_FILE}"; tar cf - . ) |tar xvf - |CT_DoLog DEBUG
18 CT_DoLog EXTRA "Cleaning library"
19 make clean 2>&1 |CT_DoLog DEBUG
21 CT_DoLog EXTRA "Building library"
22 make CROSS_COMPILE="${CT_CC_CORE_PREFIX_DIR}/bin/${CT_TARGET}-" 2>&1 |CT_DoLog DEBUG
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