diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-05-07 09:04:02 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-05-07 09:04:02 +0000 |
commit | 58b4c6d0a44d57b15d7857ecb27711a2224949e9 (patch) | |
tree | a44e1c3fbeac57ff5601b1cbd1400172b3c64bbe /scripts/build/binutils.sh | |
parent | 45e6df196be73e799e220810f9c48f8884d1049c (diff) | |
download | crosstool-ng-58b4c6d0a44d57b15d7857ecb27711a2224949e9.tar.gz crosstool-ng-58b4c6d0a44d57b15d7857ecb27711a2224949e9.tar.bz2 crosstool-ng-58b4c6d0a44d57b15d7857ecb27711a2224949e9.zip |
Merge the save-sample branch to trunk:
- reorder most of the environment setup,
- geting, extracting and patching are now components' sub-actions,
- save the current config as a sample to be used as a pre-configured target.
Diffstat (limited to 'scripts/build/binutils.sh')
-rw-r--r-- | scripts/build/binutils.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/build/binutils.sh b/scripts/build/binutils.sh index 26493c43..7a3497df 100644 --- a/scripts/build/binutils.sh +++ b/scripts/build/binutils.sh @@ -2,6 +2,19 @@ # Copyright 2007 Yann E. MORIN # Licensed under the GPL v2. See COPYING in the root of this package +# Download binutils +do_binutils_get() { + CT_GetFile "${CT_BINUTILS_FILE}" \ + ftp://ftp.gnu.org/gnu/binutils \ + ftp://ftp.kernel.org/pub/linux/devel/binutils +} + +# Extract binutils +do_binutils_extract() { + CT_ExtractAndPatch "${CT_BINUTILS_FILE}" +} + +# Build binutils do_binutils() { mkdir -p "${CT_BUILD_DIR}/build-binutils" cd "${CT_BUILD_DIR}/build-binutils" |