config/libc.in
author Bart vdr Meulen <bartvdrmeulen@gmail.com>
Sun Jul 11 21:36:20 2010 +0200 (2010-07-11)
changeset 2017 f637b6c2162b
parent 2016 46366b11da3d
child 2034 c3967b2c49b4
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>
     1 # C library options
     2 
     3 menu "C-library"
     4 
     5 config LIBC
     6     string
     7 
     8 config LIBC_VERSION
     9     string
    10     help
    11       Enter the date of the snapshot you want to use in the form: YYYYMMDD
    12       where YYYY is the 4-digit year, MM the 2-digit month and DD the 2-digit
    13       day in the month.
    14       
    15       Please note:
    16       - glibc has snapshots done every monday, and only the last ten are kept.
    17       - uClibc has daily snapshots, and only the last 30-or-so are kept.
    18       
    19       So if you want to be able to re-build your toolchain later, you will
    20       have to save your C library tarball by yourself.
    21 
    22 source "config.gen/libc.in"
    23 
    24 config LIBC_SUPPORT_THREADS_ANY
    25     bool
    26     default n
    27 
    28 config LIBC_SUPPORT_NPTL
    29     bool
    30     default n
    31     select LIBC_SUPPORT_THREADS_ANY
    32 
    33 config LIBC_SUPPORT_LINUXTHREADS
    34     bool
    35     default n
    36     select LIBC_SUPPORT_THREADS_ANY
    37 
    38 config LIBC_SUPPORT_WIN32THREADS
    39     bool
    40     default n
    41     select LIBC_SUPPORT_THREADS_ANY
    42 
    43 config THREADS
    44     string
    45     default "nptl"          if THREADS_NPTL
    46     default "linuxthreads"  if THREADS_LINUXTHREADS
    47     default "win32"         if THREADS_WIN32THREADS
    48     default "none"          if THREADS_NONE || LIBC_none
    49 #                              No C library, no threads!
    50 
    51 if ! LIBC_none
    52 
    53 comment "Common C library options"
    54 
    55 choice
    56     bool
    57     prompt "Threading implementation to use:"
    58     default THREADS_NPTL           if LIBC_SUPPORT_NPTL
    59     default THREADS_LINUXTHREADS   if LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL
    60     default THREADS_WIN32          if LIBC_SUPPORT_WIN32THREADS
    61     default THREADS_NONE           if ! LIBC_SUPPORT_THREADS_ANY
    62 
    63 config THREADS_NPTL
    64     bool
    65     prompt "nptl"
    66     depends on LIBC_SUPPORT_NPTL
    67 
    68 config THREADS_LINUXTHREADS
    69     bool
    70     prompt "linuxthreads"
    71     depends on LIBC_SUPPORT_LINUXTHREADS
    72 
    73 config THREADS_WIN32THREADS
    74     bool
    75     prompt "win32"
    76     depends on LIBC_SUPPORT_WIN32THREADS
    77 
    78 config THREADS_NONE
    79     bool
    80     prompt "none"
    81 
    82 endchoice
    83 
    84 source "config.gen/libc.in.2"
    85 
    86 endif # ! LIBC_none
    87 
    88 endmenu