config/libc/newlib.in
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Thu Dec 27 12:45:22 2012 +0100 (2012-12-27)
changeset 3152 b286c7993be5
parent 3149 e1611da4bb05
child 3258 b966620c7b1e
permissions -rw-r--r--
scripts/addToolsVersion: properly handle .in vs. .in.2

While most components have their version in the .in file, some
have it in the .in.2 (eg. elf2flt).

Currently, to handle this case, we indiscriminately munge both files,
but this is wrong: in the elf2flt case, if we add a binutils version,
we do not want it to be added to elf2flt, and conversely.

So, for each tool, we need to explicitly know what file to munge.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
mgl@1371
     1
# newlib options
mgl@1371
     2
yann@2444
     3
## depends on BARE_METAL
yann@2444
     4
##
yann@2444
     5
## select LIBC_SUPPORT_THREADS_NONE
diorcet@3131
     6
## select CC_CORE_PASSES_NEEDED
yann@2444
     7
##
yann@2444
     8
## help Newlib is a C library intended for use on embedded systems. It is a
yann@2444
     9
## help conglomeration of several library parts, all under free software
yann@2444
    10
## help licenses that make them easily usable on embedded products. Newlib
yann@2444
    11
## help is only available in source form. It can be compiled for a wide
yann@2444
    12
## help array of processors, and will usually work on any architecture with
yann@2444
    13
## help the addition of a few low-level routines.
mgl@1371
    14
mgl@1371
    15
choice
mgl@1371
    16
    bool
mgl@1371
    17
    prompt "newlib version"
yann@1535
    18
# Don't remove next line
yann@1535
    19
# CT_INSERT_VERSION_BELOW
mgl@1371
    20
yann@3151
    21
config LIBC_NEWLIB_V_2_0_0
yann@3151
    22
    bool
yann@3151
    23
    prompt "2.0.0 (EXPERIMENTAL)"
yann@3151
    24
    depends on EXPERIMENTAL
yann@3151
    25
austinpmorton@3047
    26
config LIBC_NEWLIB_V_1_20_0
austinpmorton@3047
    27
    bool
yann@3149
    28
    prompt "1.20.0"
austinpmorton@3047
    29
yann@2539
    30
config LIBC_NEWLIB_V_1_19_0
yann@2539
    31
    bool
yann@3149
    32
    prompt "1.19.0"
yann@2539
    33
yann@1724
    34
config LIBC_NEWLIB_V_1_18_0
yann@1724
    35
    bool
yann@3149
    36
    prompt "1.18.0"
yann@1724
    37
yann@1590
    38
config LIBC_NEWLIB_V_1_17_0
mgl@1371
    39
    bool
mgl@1371
    40
    prompt "1.17.0"
mgl@1371
    41
david@3094
    42
config LIBC_NEWLIB_CUSTOM
david@3094
    43
    bool
david@3094
    44
    prompt "Custom newlib"
david@3094
    45
    depends on EXPERIMENTAL
david@3094
    46
mgl@1371
    47
endchoice
mgl@1371
    48
david@3094
    49
if LIBC_NEWLIB_CUSTOM
david@3094
    50
david@3094
    51
config LIBC_NEWLIB_CUSTOM_LOCATION
david@3094
    52
    string
david@3094
    53
    prompt "Full path to custom newlib source"
david@3094
    54
    default ""
david@3094
    55
    help
david@3094
    56
      Enter the path to the directory (or tarball) of your source for newlib,
david@3094
    57
      or leave blank to use default CT_CUSTOM_LOCATION_ROOT_DIR/newlib
david@3094
    58
david@3094
    59
endif # LIBC_NEWLIB_CUSTOM
david@3094
    60
mgl@1371
    61
config LIBC_VERSION
mgl@1371
    62
    string
yann@1535
    63
# Don't remove next line
yann@1535
    64
# CT_INSERT_VERSION_STRING_BELOW
yann@3151
    65
    default "2.0.0" if LIBC_NEWLIB_V_2_0_0
austinpmorton@3047
    66
    default "1.20.0" if LIBC_NEWLIB_V_1_20_0
yann@2539
    67
    default "1.19.0" if LIBC_NEWLIB_V_1_19_0
yann@1724
    68
    default "1.18.0" if LIBC_NEWLIB_V_1_18_0
yann@1590
    69
    default "1.17.0" if LIBC_NEWLIB_V_1_17_0
david@3094
    70
    default "custom" if LIBC_NEWLIB_CUSTOM
yann@1593
    71
    help
yann@1593
    72
      Enter the tag you want to use.
yann@1593
    73
      Leave empty to use the 'head' of the repository.
yann@1593
    74
yann@1593
    75
comment "Architecture specific options"
mgl@1371
    76
mgl@1373
    77
config ATMEL_AVR32_HEADERS
mgl@1373
    78
    bool
mgl@1373
    79
    prompt "Install Atmel AVR32 headers"
yann@1591
    80
    depends on ARCH_avr32
mgl@1373
    81
    default y
mgl@1373
    82
    help
mgl@1373
    83
      Install Atmel AVR32 headers for native AVR32 development. Most
mgl@1373
    84
      AVR32 MCU devices are supported.
mgl@1373
    85
      
mgl@1373
    86
      If you do native AVR32 development you want to say 'Y' here.