config/cc.in
author Martin Guy <martinwguy@gmail.com>
Sun Mar 31 04:07:38 2013 +0000 (2013-03-31)
changeset 3203 74fd467be5aa
parent 2564 5d4e91c0343e
child 3244 8ff20760e93b
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
     1 # Compiler options
     2 
     3 menu "C compiler"
     4 
     5 config CC
     6     string
     7 
     8 config CC_VERSION
     9     string
    10 
    11 config CC_CORE_PASSES_NEEDED
    12 	bool
    13 
    14 source "config.gen/cc.in"
    15 
    16 config CC_SUPPORT_CXX
    17     bool
    18 
    19 config CC_SUPPORT_FORTRAN
    20     bool
    21 
    22 config CC_SUPPORT_JAVA
    23     bool
    24 
    25 config CC_SUPPORT_ADA
    26     bool
    27 
    28 config CC_SUPPORT_OBJC
    29     bool
    30 
    31 config CC_SUPPORT_OBJCXX
    32     bool
    33 
    34 comment "Additional supported languages:"
    35 
    36 config CC_LANG_CXX
    37     bool
    38     prompt "C++"
    39     depends on CC_SUPPORT_CXX
    40     help
    41       Enable building a C++ compiler.
    42 
    43       Only select this if you know that your specific version of the
    44       compiler supports this language.
    45 
    46 if ! BARE_METAL
    47 
    48 config CC_LANG_FORTRAN
    49     bool
    50     prompt "Fortran"
    51     depends on CC_SUPPORT_FORTRAN
    52     help
    53       Enable building a FORTRAN compiler.
    54 
    55       Only select this if you know that your specific version of the
    56       compiler supports this language.
    57 
    58 config CC_LANG_JAVA
    59     bool
    60     prompt "Java"
    61     depends on CC_SUPPORT_JAVA
    62     help
    63       Enable building a Java compiler.
    64 
    65       Only select this if you know that your specific version of the
    66       compiler supports this language.
    67 
    68 config CC_LANG_ADA
    69     bool
    70     prompt "ADA (EXPERIMENTAL)"
    71     depends on CC_SUPPORT_ADA
    72     depends on EXPERIMENTAL
    73     help
    74       Enable building an Ada compiler.
    75 
    76       Only select this if you know that your specific version of the
    77       compiler supports this language.
    78 
    79 config CC_LANG_OBJC
    80     bool
    81     prompt "Objective-C (EXPERIMENTAL)"
    82     depends on CC_SUPPORT_OBJC
    83     depends on EXPERIMENTAL
    84     help
    85       Enable building an Objective C compiler.
    86 
    87       Only select this if you know that your specific version of the
    88       compiler supports this language.
    89 
    90 config CC_LANG_OBJCXX
    91     bool
    92     prompt "Objective-C++ (EXPERIMENTAL)"
    93     depends on EXPERIMENTAL
    94     depends on CC_SUPPORT_OBJCXX
    95     help
    96       Enable building an Objective C++ compiler.
    97 
    98       Only select this if you know that your specific version of the
    99       compiler supports this language.
   100 
   101 config CC_LANG_OTHERS
   102     string
   103     prompt "Other languages (EXPERIMENTAL)"
   104     default ""
   105     depends on EXPERIMENTAL
   106     help
   107       Enter here a comma-separated list of languages that you know your compiler
   108       supports, besides those listed above.
   109 
   110       Eg. gcc-4.1+ has a toy programming language, treelang. As it is not useful
   111       in real life, it is not available in the selection above.
   112 
   113 endif # ! BARE_METAL
   114 
   115 source "config.gen/cc.in.2"
   116 
   117 endmenu