Add two new versions to binutils.
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
5 # Define libfloat functions depending on wether it is selected or not
6 if [ "${CT_ARCH_FLOAT_SW_LIBFLOAT}" = "y" ]; then
10 # Ah! libfloat separates the version string from the base name with
11 # an underscore. We need to workaround this in a sane manner: soft link.
12 local libfloat_file=`echo "${CT_LIBFLOAT_FILE}" |sed -r -e 's/^libfloat-/libfloat_/;'`
13 CT_GetFile "${libfloat_file}" \
14 ftp://ftp.de.debian.org/debian/pool/main/libf/libfloat
15 CT_Pushd "${CT_TARBALLS_DIR}"
16 ext=`CT_GetFileExtension "${libfloat_file}"`
17 ln -svf "${libfloat_file}${ext}" "${CT_LIBFLOAT_FILE}${ext}" |CT_DoLog DEBUG
22 do_libfloat_extract() {
23 CT_ExtractAndPatch "${CT_LIBFLOAT_FILE}"
28 # Here we build and install libfloat for the target, so that the C library
29 # builds OK with those versions of gcc that have severed softfloat support
31 CT_DoStep INFO "Installing software floating point emulation library libfloat"
35 CT_Pushd "${CT_BUILD_DIR}"
36 CT_DoLog EXTRA "Copying sources to build dir"
37 ( cd "${CT_SRC_DIR}/${CT_LIBFLOAT_FILE}"; tar cf - . ) |tar xvf - |CT_DoLog ALL
39 CT_DoLog EXTRA "Cleaning library"
40 make clean 2>&1 |CT_DoLog ALL
42 CT_DoLog EXTRA "Building library"
43 make CROSS_COMPILE="${CT_CC_CORE_PREFIX_DIR}/bin/${CT_TARGET}-" 2>&1 |CT_DoLog ALL
45 CT_DoLog EXTRA "Installing library"
46 make CROSS_COMPILE="${CT_CC_CORE_PREFIX_DIR}/bin/${CT_TARGET}-" \
47 DESTDIR="${CT_SYSROOT_DIR}" install 2>&1 |CT_DoLog ALL
54 else # "${CT_ARCH_FLOAT_SW_LIBFLOAT}" != "y"
59 do_libfloat_extract() {