ct-ng.comp
author Martin Guy <martinwguy@gmail.com>
Sun Mar 31 04:07:38 2013 +0000 (2013-03-31)
changeset 3203 74fd467be5aa
parent 3167 15f57d843296
permissions -rw-r--r--
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
yann@835
     1
# To be sourced
yann@835
     2
yann@2988
     3
_ct_ng () {
yann@835
     4
    local cur prev samples show_samples actions steps start_steps stop_steps ct_ng_opts vars
yann@835
     5
    COMPREPLY=()
yann@835
     6
    cur=$(_get_cword)
yann@835
     7
    prev=${COMP_WORDS[COMP_CWORD-1]}
yann@835
     8
yann@2053
     9
    samples=$( "${COMP_WORDS[0]}" list-samples-short 2>/dev/null )
yann@835
    10
    show_samples=$(echo "${samples}" |sed -r -e 's/(^| )/\1show-/g;')
yann@1025
    11
    build_samples=$(echo "${samples}" |sed -r -e 's/(^| )/\1build-/g;')
yann@3168
    12
    check_samples=$(echo "${samples}" |sed -r -e 's/(^| )/\1check-/g;')
yann@835
    13
yann@918
    14
    steps=$(${COMP_WORDS[0]} list-steps 2>/dev/null |awk '$1 == "-" { print $2; }')
yann@934
    15
    start_steps=$(echo "${steps}" |sed -r -e 's/($| )/\1+/;')
yann@835
    16
    stop_steps=$(echo "${steps}" |sed -r -e 's/(^| )/+\1/;')
yann@835
    17
yann@1803
    18
    actions='help menuconfig oldconfig saveconfig extractconfig
yann@3167
    19
             defconfig savedefconfig
yann@1025
    20
             build build. build-all build-all.
yann@3168
    21
             wiki-samples list-samples list-samples-short check-samples
yann@3168
    22
             list-steps
yann@2053
    23
             show-tuple show-all show-config
yann@2053
    24
             clean distclean updatetools
yann@932
    25
             tarball version'
yann@835
    26
yann@3034
    27
    vars="RESTART= STOP= PREFIX= V= DEFCONFIG="
yann@835
    28
yann@3168
    29
    ct_ng_opts="${samples} ${show_samples} ${build_samples} ${check_samples}
yann@835
    30
                ${steps} ${start_steps} ${stop_steps}
yann@835
    31
                ${actions} ${vars}"
yann@835
    32
yann@835
    33
    COMPREPLY=($(compgen -W "${ct_ng_opts}" -- "${cur}"))
yann@835
    34
    return 0
yann@835
    35
}
yann@2988
    36
complete -F _ct_ng ct-ng