summaryrefslogtreecommitdiff
path: root/scripts/build/libc_libfloat.sh
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-02-24 11:00:05 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-02-24 11:00:05 (GMT)
commit1906cf93f86d8d66f45f90380a8d3da25c087ee5 (patch)
tree90916c99abe1f1ec26709ee420e6c349eda4670a /scripts/build/libc_libfloat.sh
parent2609573aede4ce198b3462976725b25eb1637d2e (diff)
Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!". Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup. That means I'm putting backups in place in the afternoon. That also means we've lost history... :-(
Diffstat (limited to 'scripts/build/libc_libfloat.sh')
-rw-r--r--scripts/build/libc_libfloat.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/scripts/build/libc_libfloat.sh b/scripts/build/libc_libfloat.sh
new file mode 100644
index 0000000..3828a3f
--- /dev/null
+++ b/scripts/build/libc_libfloat.sh
@@ -0,0 +1,31 @@
+# This file adds functions to build libfloat
+# Copyright 2007 Yann E. MORIN
+# Licensed under the GPL v2. See COPYING in the root of this package
+
+do_libfloat() {
+ # Here we build and install libfloat for the target, so that the C library
+ # builds OK with those versions of gcc that have severed softfloat support
+ # code
+ [ "${CT_ARCH_FLOAT_SW_LIBFLOAT}" = "y" ] || return 0
+ CT_DoStep INFO "Installing software floating point emulation library libfloat"
+
+ CT_Pushd "${CT_BUILD_DIR}"
+ CT_DoLog EXTRA "Copying sources to build dir"
+ mkdir build-libfloat
+ cd build-libfloat
+ ( cd "${CT_SRC_DIR}/${CT_LIBFLOAT_FILE}"; tar cf - . ) |tar xvf - |CT_DoLog DEBUG
+
+ CT_DoLog EXTRA "Cleaning library"
+ make clean 2>&1 |CT_DoLog DEBUG
+
+ CT_DoLog EXTRA "Building library"
+ make CROSS_COMPILE="${CT_CC_CORE_PREFIX_DIR}/bin/${CT_TARGET}-" 2>&1 |CT_DoLog DEBUG
+
+ CT_DoLog EXTRA "Installing library"
+ make CROSS_COMPILE="${CT_CC_CORE_PREFIX_DIR}/bin/${CT_TARGET}-" \
+ DESTDIR="${CT_SYSROOT_DIR}" install 2>&1 |CT_DoLog DEBUG
+
+ CT_Popd
+
+ CT_EndStep
+}