config/libc/glibc.in
author Bart vdr Meulen <bartvdrmeulen@gmail.com>
Sun Jul 11 21:36:20 2010 +0200 (2010-07-11)
changeset 2017 f637b6c2162b
parent 1760 19ee61f81c72
child 2235 20d61f6e05e5
permissions -rw-r--r--
kernel: add mingw

Add the option to build a cross-compiler for kernel type 'mingw'.
The resulting cross-compiler can be used to build applications on a Linux host
that can be run on a Windows target.

Compiler is build using the mingwrt and w32-api packages aviable from the
MinGW project (http://sourceforge.net/projects/mingw).

The windows headers (w32-api package) are extracting with the kernel_headers
step The libraries and other headers from both packages are build and
installed in the various steps of libc

Signed-off-by: Bart vdr Meulen <bartvdrmeulen@gmail.com>
[yann.morin.1998@anciens.enib.fr: fix kernel headers comment, don't "return 0"]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
yann@448
     1
# glibc options
bartvdrmeulen@2017
     2
# depends on ! MINGW32 && ! BARE_METAL && ARCH_USE_MMU
yann@448
     3
yann@922
     4
config LIBC_glibc
yann@922
     5
    select LIBC_SUPPORT_NPTL
yann@922
     6
    select LIBC_SUPPORT_LINUXTHREADS
yann@922
     7
    help
yann@922
     8
      The de-facto standard for Linux distributions.
yann@922
     9
      Feature-rich, but large...  Most usefull for desktop-like systems.
yann@852
    10
yann@448
    11
choice
yann@448
    12
    bool
yann@1760
    13
    prompt "Retrieval method"
yann@1760
    14
    default LIBC_GLIBC_TARBALL
yann@1760
    15
yann@1760
    16
config LIBC_GLIBC_TARBALL
yann@1760
    17
    bool
yann@1760
    18
    prompt "Released tarball"
yann@1760
    19
    help
yann@1760
    20
      Until end of Februrary 2009, there was no tarball for glibc releases
yann@1760
    21
      2.8 and later. This was intentional.
yann@1760
    22
      
yann@1760
    23
      Then, all of a sudden, tarballs for those releases have appeared at the
yann@1760
    24
      traditional download place (ftp.gnu.org).
yann@1760
    25
      
yann@1760
    26
      Some of the glibc people argue that fixes are committed to the maintenance
yann@1760
    27
      branch, and thus it is the best plac e to retrieve the glibc from.
yann@1760
    28
      On the other hand, it might be preferable to always generate a toolchain
yann@1760
    29
      using a known code-base, so the toolchain can be reproducible.
yann@1760
    30
      
yann@1760
    31
      For version prior to 2.8, tarballs were readily available.
yann@1760
    32
      
yann@1760
    33
      If you want your toolchain to really be reproducible, say 'Y' here.
yann@1760
    34
      If you can live with a moving code-base, look at the other choice
yann@1760
    35
      entries, below.
yann@1760
    36
yann@1760
    37
endchoice
yann@1760
    38
yann@1760
    39
choice
yann@1760
    40
    bool
yann@448
    41
    prompt "glibc version"
yann@1535
    42
# Don't remove next line
yann@1535
    43
# CT_INSERT_VERSION_BELOW
yann@448
    44
yann@1758
    45
config LIBC_GLIBC_V_2_11_1
yann@1758
    46
    bool
yann@1758
    47
    prompt "2.11.1 (EXPERIMENTAL)"
yann@1758
    48
    depends on EXPERIMENTAL
yann@1758
    49
yann@1758
    50
config LIBC_GLIBC_V_2_11
yann@1758
    51
    bool
yann@1758
    52
    prompt "2.11 (EXPERIMENTAL)"
yann@1758
    53
    depends on EXPERIMENTAL
yann@1758
    54
yann@1625
    55
config LIBC_V_2_10_1
yann@1625
    56
    bool
yann@1625
    57
    prompt "2.10.1 (EXPERIMENTAL)"
yann@1625
    58
    depends on EXPERIMENTAL
yann@1625
    59
    select LIBC_GLIBC_USE_PORTS
yann@1625
    60
yann@1534
    61
config LIBC_V_2_9
yann@448
    62
    bool
yann@1534
    63
    prompt "2.9"
yann@448
    64
yann@1114
    65
config LIBC_V_2_8
yann@1114
    66
    bool
yann@1260
    67
    prompt "2.8"
yann@1114
    68
yann@1534
    69
config LIBC_V_2_7
yann@1114
    70
    bool
yann@1615
    71
    prompt "2.7 (OBSOLETE)"
yann@1615
    72
    depends on OBSOLETE
yann@1534
    73
yann@1534
    74
config LIBC_V_2_6_1
yann@1534
    75
    bool
yann@1615
    76
    prompt "2.6.1 (OBSOLETE)"
yann@1615
    77
    depends on OBSOLETE
yann@1534
    78
yann@1534
    79
config LIBC_V_2_6
yann@1534
    80
    bool
yann@1615
    81
    prompt "2.6 (OBSOLETE)"
yann@1615
    82
    depends on OBSOLETE
yann@1534
    83
yann@1534
    84
config LIBC_V_2_5_1
yann@1534
    85
    bool
yann@1615
    86
    prompt "2.5.1 (OBSOLETE)"
yann@1615
    87
    depends on OBSOLETE
yann@1534
    88
yann@1534
    89
config LIBC_V_2_5
yann@1534
    90
    bool
yann@1615
    91
    prompt "2.5 (OBSOLETE)"
yann@1615
    92
    depends on OBSOLETE
yann@1534
    93
yann@1534
    94
config LIBC_V_2_3_6
yann@1534
    95
    bool
yann@1534
    96
    prompt "2.3.6 (OBSOLETE)"
yann@1534
    97
    depends on OBSOLETE
yann@1114
    98
yann@448
    99
endchoice
yann@448
   100
yann@448
   101
config LIBC_VERSION
yann@448
   102
    string
yann@1535
   103
# Don't remove next line
yann@1535
   104
# CT_INSERT_VERSION_STRING_BELOW
yann@1758
   105
    default "2.11.1" if LIBC_GLIBC_V_2_11_1
yann@1758
   106
    default "2.11" if LIBC_GLIBC_V_2_11
yann@1625
   107
    default "2.10.1" if LIBC_V_2_10_1
yann@1534
   108
    default "2.9" if LIBC_V_2_9
yann@1534
   109
    default "2.8" if LIBC_V_2_8
yann@1534
   110
    default "2.7" if LIBC_V_2_7
yann@1534
   111
    default "2.6.1" if LIBC_V_2_6_1
yann@1534
   112
    default "2.6" if LIBC_V_2_6
yann@1534
   113
    default "2.5.1" if LIBC_V_2_5_1
yann@1534
   114
    default "2.5" if LIBC_V_2_5
yann@448
   115
    default "2.3.6" if LIBC_V_2_3_6