Answer default values when doing a defoldconfig.
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
9 echo "${CT_LIBFLOAT_FILE}"
14 # Ah! libfloat separates the version string from the base name with
15 # an underscore. We need to workaround this in a sane manner: soft link.
16 local libfloat_file=`echo "${CT_LIBFLOAT_FILE}" |sed -r -e 's/^libfloat-/libfloat_/;'`
17 CT_GetFile "${libfloat_file}" \
18 ftp://ftp.de.debian.org/debian/pool/main/libf/libfloat
19 CT_Pushd "${CT_TARBALLS_DIR}"
20 ext=`CT_GetFileExtension "${libfloat_file}"`
21 ln -vf "${libfloat_file}${ext}" "${CT_LIBFLOAT_FILE}${ext}" |CT_DoLog DEBUG
26 do_libfloat_extract() {
27 CT_ExtractAndPatch "${CT_LIBFLOAT_FILE}"
32 # Here we build and install libfloat for the target, so that the C library
33 # builds OK with those versions of gcc that have severed softfloat support
35 CT_DoStep INFO "Installing software floating point emulation library libfloat"
36 CT_Pushd "${CT_BUILD_DIR}"
37 mkdir -p build-libfloat
40 CT_DoLog EXTRA "Copying sources to build dir"
41 ( cd "${CT_SRC_DIR}/${CT_LIBFLOAT_FILE}"; tar cf - . ) |tar xvf - |CT_DoLog ALL
43 CT_DoLog EXTRA "Cleaning library"
44 make clean 2>&1 |CT_DoLog ALL
46 CT_DoLog EXTRA "Building library"
47 make CROSS_COMPILE="${CT_TARGET}-" 2>&1 |CT_DoLog ALL
49 CT_DoLog EXTRA "Installing library"
50 make DESTDIR="${CT_SYSROOT_DIR}" install 2>&1 |CT_DoLog ALL
57 else # "${CT_ARCH_FLOAT_SW_LIBFLOAT}" != "y"
65 do_libfloat_extract() {