diff options
author | Martin Guy <martinwguy@gmail.com> | 2013-03-31 04:07:38 +0000 |
---|---|---|
committer | Martin Guy <martinwguy@gmail.com> | 2013-03-31 04:07:38 +0000 |
commit | e284b218a7c52b666082fc552a21fc03b13459c1 (patch) | |
tree | bd1566fb3aa7d3d4abbd50556ef99a1840ad42f2 /scripts/functions | |
parent | f60abd80ae398a2327875eb77d353fcfd918b316 (diff) | |
download | crosstool-ng-e284b218a7c52b666082fc552a21fc03b13459c1.tar.gz crosstool-ng-e284b218a7c52b666082fc552a21fc03b13459c1.tar.bz2 crosstool-ng-e284b218a7c52b666082fc552a21fc03b13459c1.zip |
arch/avr32: Fix download of header files
This patch fixes the download of the avr32 headers in crosstool-ng by
fetching them directly from Atmel's web site instead of the now-broken URL
given by the original author of the avr32-header-fetching modification,
who fetched them from a copy on his own, now-defunct server.
It also adds the necessary logic to extract from a zip file, as that is
how the headers are packaged.
To configure it for avr32 after launching ct-ng menuconfig in an empty
directory:
Paths and misc options ->
Shell to use as CONFIG_SHELL = sh
Target options ->
Target Architecture = avr32
Toolchain options ->
Tuple's alias = avr32
Binary utilities ->
binutils version = 2.18a
C compiler
gcc version = 4.2.2
C-library
newlib version = 1.17.0
Enable IOs on long long = yes
Enable IOs on floats and doubles = yes
Disable the syscalls supplied with newlib = yes
CONFIG_SHELL is necessary to get round the "fragment: command not
found" bug when binutils-2.18 is configured using bash.
Prepared against crosstool-ng mercurial trunk on 31 March 2012.
Signed-off-by: Martin Guy <martinwguy@gmail.com>
[yann.morin.1998@free.fr: update bundles sample accordingly]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <CAL4-wQrg_NQ7jm-NCADqeyQr9twyhtx42OUGNThP6gWeqZc=kw@mail.gmail.com>
Patchwork-Id: 232612
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/functions b/scripts/functions index a4118202..e6defa85 100644 --- a/scripts/functions +++ b/scripts/functions @@ -523,6 +523,7 @@ CT_DoListTarballExt() { printf ".tar.bz2\n" printf ".tar.gz\n.tgz\n" printf ".tar\n" + printf ".zip\n" } # Get the file name extension of a component @@ -861,7 +862,7 @@ CT_GetGit() { # by the caller, that did a 'cd' into the correct path before calling us # and sets nochdir to 'nochdir'. # Note also that this function handles the git trees! -# Usage: CT_Extract <basename> [nochdir] [options] +# Usage: CT_Extract [nochdir] <basename> [options] # where 'options' are dependent on the source (eg. git branch/tag...) CT_Extract() { local nochdir="$1" @@ -926,6 +927,7 @@ CT_Extract() { .tar.bz2) bzip2 -dc "${full_file}" | CT_DoExecLog FILE tar "${tar_opts[@]}" -f -;; .tar.gz|.tgz) gzip -dc "${full_file}" | CT_DoExecLog FILE tar "${tar_opts[@]}" -f -;; .tar) CT_DoExecLog FILE tar "${tar_opts[@]}" -f "${full_file}";; + .zip) CT_DoExecLog FILE unzip "${@}" "${full_file}";; /.git) CT_ExtractGit "${basename}" "${@}";; *) CT_DoLog WARN "Don't know how to handle '${basename}${ext}': unknown extension" return 1 |