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
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