diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-02-24 11:00:05 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-02-24 11:00:05 +0000 |
commit | 1906cf93f86d8d66f45f90380a8d3da25c087ee5 (patch) | |
tree | 90916c99abe1f1ec26709ee420e6c349eda4670a /scripts/build/binutils.sh | |
parent | 2609573aede4ce198b3462976725b25eb1637d2e (diff) | |
download | crosstool-ng-1906cf93f86d8d66f45f90380a8d3da25c087ee5.tar.gz crosstool-ng-1906cf93f86d8d66f45f90380a8d3da25c087ee5.tar.bz2 crosstool-ng-1906cf93f86d8d66f45f90380a8d3da25c087ee5.zip |
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/binutils.sh')
-rw-r--r-- | scripts/build/binutils.sh | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/scripts/build/binutils.sh b/scripts/build/binutils.sh new file mode 100644 index 00000000..26493c43 --- /dev/null +++ b/scripts/build/binutils.sh @@ -0,0 +1,39 @@ +# This file adds functions to build binutils +# Copyright 2007 Yann E. MORIN +# Licensed under the GPL v2. See COPYING in the root of this package + +do_binutils() { + mkdir -p "${CT_BUILD_DIR}/build-binutils" + cd "${CT_BUILD_DIR}/build-binutils" + + CT_DoStep INFO "Installing binutils" + + CT_DoLog EXTRA "Configuring binutils" + CFLAGS="${CT_CFLAGS_FOR_HOST}" \ + "${CT_SRC_DIR}/${CT_BINUTILS_FILE}/configure" \ + ${CT_CANADIAN_OPT} \ + --target=${CT_TARGET} \ + --host=${CT_HOST} \ + --prefix=${CT_PREFIX_DIR} \ + --disable-nls \ + ${CT_BINUTILS_EXTRA_CONFIG} \ + ${BINUTILS_SYSROOT_ARG} 2>&1 |CT_DoLog DEBUG + + CT_DoLog EXTRA "Building binutils" + make ${PARALLELMFLAGS} 2>&1 |CT_DoLog DEBUG + + CT_DoLog EXTRA "Installing binutils" + make install 2>&1 |CT_DoLog DEBUG + + # Make those new tools available to the core C compiler to come: + # Note: some components want the ${TARGET}-{ar,as,ld,strip} commands as + # well. Create that (libfloat is one such sucker). + mkdir -p "${CT_CC_CORE_PREFIX_DIR}/${CT_TARGET}/bin" + mkdir -p "${CT_CC_CORE_PREFIX_DIR}/bin" + for t in ar as ld strip; do + ln -sv "${CT_PREFIX_DIR}/bin/${CT_TARGET}-${t}" "${CT_CC_CORE_PREFIX_DIR}/${CT_TARGET}/bin/${t}" + ln -sv "${CT_PREFIX_DIR}/bin/${CT_TARGET}-${t}" "${CT_CC_CORE_PREFIX_DIR}/bin/${CT_TARGET}-${t}" + done |CT_DoLog DEBUG + + CT_EndStep +} |