scripts/build/kernel/windows.sh
author Martin Guy <martinwguy@gmail.com>
Sun Mar 31 04:07:38 2013 +0000 (2013-03-31)
changeset 3203 74fd467be5aa
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
diorcet@3112
     1
# This file declares functions to install the kernel headers for mingw64
diorcet@3112
     2
# Copyright 2012 Yann Diorcet
diorcet@3112
     3
# Licensed under the GPL v2. See COPYING in the root of this package
diorcet@3112
     4
diorcet@3112
     5
CT_DoKernelTupleValues() {
diorcet@3112
     6
    # Even we compile for x86_64 target architecture, the target OS have to
diorcet@3112
     7
    # bet mingw32 (require by gcc and mingw-w64)
diorcet@3112
     8
    CT_TARGET_KERNEL="mingw32"
diorcet@3112
     9
    CT_TARGET_SYS=
diorcet@3112
    10
}
diorcet@3112
    11
diorcet@3112
    12
do_kernel_get() {
diorcet@3112
    13
    :
diorcet@3112
    14
}
diorcet@3112
    15
diorcet@3112
    16
do_kernel_extract() {
diorcet@3112
    17
    :
diorcet@3112
    18
}
diorcet@3112
    19
diorcet@3112
    20
do_kernel_headers() {
diorcet@3112
    21
   :
diorcet@3112
    22
}