From 4a06d297179eed9318c4b8d25f72a404b3fb9317 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Sun, 4 Jan 2009 14:21:00 +0000 Subject: [PATCH] Get rid of CT_BINUTILS_FILE. /trunk/scripts/build/binutils.sh | 56 28 28 0 +++++++++++++++++++++++----------------------- /trunk/scripts/crosstool.sh | 1 0 1 0 - 2 files changed, 28 insertions(+), 29 deletions(-) --- scripts/build/binutils.sh | 56 +++++++++++++++++++-------------------- scripts/crosstool.sh | 1 - 2 files changed, 28 insertions(+), 29 deletions(-) diff --git a/scripts/build/binutils.sh b/scripts/build/binutils.sh index fe8d2d96..d1f3522d 100644 --- a/scripts/build/binutils.sh +++ b/scripts/build/binutils.sh @@ -4,14 +4,14 @@ # Download binutils do_binutils_get() { - CT_GetFile "${CT_BINUTILS_FILE}" \ + CT_GetFile "binutils-${CT_BINUTILS_VERSION}" \ {ftp,http}://{ftp.gnu.org/gnu,ftp.kernel.org/pub/linux/devel}/binutils \ ftp://gcc.gnu.org/pub/binutils/{releases,snapshots} } # Extract binutils do_binutils_extract() { - CT_ExtractAndPatch "${CT_BINUTILS_FILE}" + CT_ExtractAndPatch "binutils-${CT_BINUTILS_VERSION}" } # Build binutils @@ -29,19 +29,19 @@ do_binutils() { fi CT_DoLog EXTRA "Configuring binutils" - CFLAGS="${CT_CFLAGS_FOR_HOST}" \ - CT_DoExecLog ALL \ - "${CT_SRC_DIR}/${CT_BINUTILS_FILE}/configure" \ - --build=${CT_BUILD} \ - --host=${CT_HOST} \ - --target=${CT_TARGET} \ - --prefix=${CT_PREFIX_DIR} \ - --disable-nls \ - --disable-multilib \ - --disable-werror \ - ${binutils_opts} \ - ${CT_ARCH_WITH_FLOAT} \ - ${CT_BINUTILS_EXTRA_CONFIG} \ + CFLAGS="${CT_CFLAGS_FOR_HOST}" \ + CT_DoExecLog ALL \ + "${CT_SRC_DIR}/binutils-${CT_BINUTILS_VERSION}/configure" \ + --build=${CT_BUILD} \ + --host=${CT_HOST} \ + --target=${CT_TARGET} \ + --prefix=${CT_PREFIX_DIR} \ + --disable-nls \ + --disable-multilib \ + --disable-werror \ + ${binutils_opts} \ + ${CT_ARCH_WITH_FLOAT} \ + ${CT_BINUTILS_EXTRA_CONFIG} \ ${BINUTILS_SYSROOT_ARG} CT_DoLog EXTRA "Building binutils" @@ -86,19 +86,19 @@ do_binutils_target() { CT_Pushd "${CT_BUILD_DIR}/build-binutils-for-target" CT_DoLog EXTRA "Configuring binutils for target" - CT_DoExecLog ALL \ - "${CT_SRC_DIR}/${CT_BINUTILS_FILE}/configure" \ - --build=${CT_BUILD} \ - --host=${CT_TARGET} \ - --target=${CT_TARGET} \ - --prefix=/usr \ - --disable-werror \ - --enable-shared \ - --enable-static \ - --disable-nls \ - --disable-multilib \ - ${binutils_opts} \ - ${CT_ARCH_WITH_FLOAT} \ + CT_DoExecLog ALL \ + "${CT_SRC_DIR}/binutils-${CT_BINUTILS_VERSION}/configure" \ + --build=${CT_BUILD} \ + --host=${CT_TARGET} \ + --target=${CT_TARGET} \ + --prefix=/usr \ + --disable-werror \ + --enable-shared \ + --enable-static \ + --disable-nls \ + --disable-multilib \ + ${binutils_opts} \ + ${CT_ARCH_WITH_FLOAT} \ ${CT_BINUTILS_EXTRA_CONFIG} build_targets=$(echo "${targets}" |sed -r -e 's/(^| +)/\1all-/g;') diff --git a/scripts/crosstool.sh b/scripts/crosstool.sh index 373036b2..b4ecba8a 100755 --- a/scripts/crosstool.sh +++ b/scripts/crosstool.sh @@ -85,7 +85,6 @@ CT_CC_CORE_EXTRA_CONFIG="${CT_ARCH_CC_CORE_EXTRA_CONFIG} ${CT_CC_CORE_EXTRA_CONF CT_CC_EXTRA_CONFIG="${CT_ARCH_CC_EXTRA_CONFIG} ${CT_CC_EXTRA_CONFIG}" # Now, build up the variables from the user-configured options. -CT_BINUTILS_FILE="binutils-${CT_BINUTILS_VERSION}" CT_GMP_FILE="gmp-${CT_GMP_VERSION}" CT_MPFR_FILE="mpfr-${CT_MPFR_VERSION}" CT_CC_FILE="${CT_CC}-${CT_CC_VERSION}"