summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-07-30 20:02:13 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-07-30 20:02:13 (GMT)
commit7131764f9c93494f6b960b1d33d48508cc2f0512 (patch)
tree27bdca72d92e247883e56e08f830a7d675ccb91f /scripts
parent20e08ffa90f139fb977bf2d65e989853626210e8 (diff)
Remove any reference to libfloat. That has gone once and for all.
Rationale: Most of the time, soft-float problems are caused by this sucker of gcc: it has support for soft float for all of the targets I've tried so far, but does not activate this code until you dwelve into half a dozen of files to make it accept to build and link the support code... So, yes: gcc has soft-float support. And again, yes: gcc is a sucker.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/binutils.sh2
-rw-r--r--scripts/build/libfloat.sh72
-rwxr-xr-xscripts/crosstool.sh5
-rw-r--r--scripts/functions2
4 files changed, 2 insertions, 79 deletions
diff --git a/scripts/build/binutils.sh b/scripts/build/binutils.sh
index cb10374..22be840 100644
--- a/scripts/build/binutils.sh
+++ b/scripts/build/binutils.sh
@@ -45,7 +45,7 @@ do_binutils() {
# Make those new tools available to the core C compilers to come:
# Note: some components want the ${TARGET}-{ar,as,ld,strip} commands as
- # well. Create that (libfloat is one such sucker).
+ # well. Create that.
mkdir -p "${CT_CC_CORE_STATIC_PREFIX_DIR}/${CT_TARGET}/bin"
mkdir -p "${CT_CC_CORE_STATIC_PREFIX_DIR}/bin"
mkdir -p "${CT_CC_CORE_SHARED_PREFIX_DIR}/${CT_TARGET}/bin"
diff --git a/scripts/build/libfloat.sh b/scripts/build/libfloat.sh
deleted file mode 100644
index 7fc9e6d..0000000
--- a/scripts/build/libfloat.sh
+++ /dev/null
@@ -1,72 +0,0 @@
-# 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
-
-# Define libfloat functions depending on wether it is selected or not
-if [ "${CT_ARCH_FLOAT_SW_LIBFLOAT}" = "y" ]; then
-
-do_print_filename() {
- echo "libfloat-${CT_LIBFLOAT_VERSION}"
-}
-
-# Download libfloat
-do_libfloat_get() {
- # Ah! libfloat separates the version string from the base name with
- # an underscore. We need to workaround this in a sane manner: soft link.
- local libfloat_file=`echo "${CT_LIBFLOAT_FILE}" |sed -r -e 's/^libfloat-/libfloat_/;'`
- CT_GetFile "${libfloat_file}" \
- ftp://ftp.de.debian.org/debian/pool/main/libf/libfloat
- CT_Pushd "${CT_TARBALLS_DIR}"
- ext=`CT_GetFileExtension "${libfloat_file}"`
- ln -vf "${libfloat_file}${ext}" "${CT_LIBFLOAT_FILE}${ext}" |CT_DoLog DEBUG
- CT_Popd
-}
-
-# Extract libfloat
-do_libfloat_extract() {
- CT_ExtractAndPatch "${CT_LIBFLOAT_FILE}"
-}
-
-# Build libfloat
-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_DoStep INFO "Installing software floating point emulation library libfloat"
- CT_Pushd "${CT_BUILD_DIR}"
- mkdir -p build-libfloat
- cd build-libfloat
-
- CT_DoLog EXTRA "Copying sources to build dir"
- ( cd "${CT_SRC_DIR}/${CT_LIBFLOAT_FILE}"; tar cf - . ) |tar xvf - |CT_DoLog ALL
-
- CT_DoLog EXTRA "Cleaning library"
- make clean 2>&1 |CT_DoLog ALL
-
- CT_DoLog EXTRA "Building library"
- make CROSS_COMPILE="${CT_TARGET}-" 2>&1 |CT_DoLog ALL
-
- CT_DoLog EXTRA "Installing library"
- make DESTDIR="${CT_SYSROOT_DIR}" install 2>&1 |CT_DoLog ALL
-
- CT_Popd
-
- CT_EndStep
-}
-
-else # "${CT_ARCH_FLOAT_SW_LIBFLOAT}" != "y"
-
-do_print_filename() {
- true
-}
-do_libfloat_get() {
- true
-}
-do_libfloat_extract() {
- true
-}
-do_libfloat() {
- true
-}
-
-fi
diff --git a/scripts/crosstool.sh b/scripts/crosstool.sh
index 350af8e..654efd2 100755
--- a/scripts/crosstool.sh
+++ b/scripts/crosstool.sh
@@ -90,7 +90,6 @@ fi
CT_CC_CORE_FILE="${CT_CC_CORE}-${CT_CC_CORE_VERSION}"
CT_CC_FILE="${CT_CC}-${CT_CC_VERSION}"
CT_LIBC_FILE="${CT_LIBC}-${CT_LIBC_VERSION}"
-CT_LIBFLOAT_FILE="libfloat-${CT_LIBFLOAT_VERSION}"
# Where will we work?
CT_TARBALLS_DIR="${CT_TOP_DIR}/targets/tarballs"
@@ -345,7 +344,6 @@ fi
# export any variable, nor re-parse the configuration and functions files.
. "${CT_LIB_DIR}/scripts/build/kernel_${CT_KERNEL}.sh"
. "${CT_LIB_DIR}/scripts/build/binutils.sh"
-. "${CT_LIB_DIR}/scripts/build/libfloat.sh"
. "${CT_LIB_DIR}/scripts/build/libc_${CT_LIBC}.sh"
. "${CT_LIB_DIR}/scripts/build/cc_core_${CT_CC_CORE}.sh"
. "${CT_LIB_DIR}/scripts/build/cc_${CT_CC}.sh"
@@ -357,7 +355,6 @@ if [ -z "${CT_RESTART}" ]; then
do_kernel_get
do_binutils_get
do_cc_core_get
- do_libfloat_get
do_libc_get
do_cc_get
do_tools_get
@@ -373,7 +370,6 @@ if [ -z "${CT_RESTART}" ]; then
do_kernel_extract
do_binutils_extract
do_cc_core_extract
- do_libfloat_extract
do_libc_extract
do_cc_extract
do_tools_extract
@@ -396,7 +392,6 @@ if [ "${CT_ONLY_DOWNLOAD}" != "y" -a "${CT_ONLY_EXTRACT}" != "y" ]; then
libc_headers \
libc_start_files \
cc_core_pass_2 \
- libfloat \
libc \
cc \
libc_finish \
diff --git a/scripts/functions b/scripts/functions
index e74d874..7c44132 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -416,7 +416,7 @@ CT_ExtractAndPatch() {
esac
# Snapshots might not have the version number in the extracted directory
- # name. This is also the case for some (old) packages, such as libfloat.
+ # name. This is also the case for some (odd) packages, such as D.U.M.A.
# Overcome this issue by symlink'ing the directory.
if [ ! -d "${file}" -a "${libc_addon}" != "y" ]; then
case "${ext}" in