config/libc/newlib.in
author Johannes Stezenbach <js@sig21.net>
Tue Oct 30 00:22:25 2012 +0000 (2012-10-30)
changeset 3097 5c67476c7342
parent 3094 07a87075fa2d
child 3131 bd172b161ff8
permissions -rw-r--r--
scripts/functions: fix endless loop in debug-shell with IO redirection

CT_DEBUG_INTERACTIVE is disabled when stdin, stdout or
stderr are redirected, but the check is only done at
the start of the build and doesn't catch when individual
build commands use redirection. When stdin is redirected
it will cause the debug shell to exit immediately, causing
and endless loop. Thus, save the stdin/our/err file handles
and restore them before invoking the debug shell.

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