config/libc/uClibc.in
author Bart vdr Meulen <bartvdrmeulen@gmail.com>
Sun Jul 11 21:36:20 2010 +0200 (2010-07-11)
changeset 2017 f637b6c2162b
parent 2009 7e19c1de65cd
child 2030 7dc77b443864
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 # uClibc options
     2 # depends on ! MINGW32 && ! BARE_METAL
     3 
     4 config LIBC_uClibc
     5     select LIBC_SUPPORT_LINUXTHREADS
     6     help
     7       The de-facto standard for embeded linux systems.
     8       Highly configurable, thus as feature-rich as you need, without
     9       compromising for size.
    10 
    11 choice
    12     bool
    13     prompt "uClibc version"
    14 # Don't remove next line
    15 # CT_INSERT_VERSION_BELOW
    16 
    17 config LIBC_UCLIBC_V_0_9_31
    18     bool
    19     prompt "0.9.31 (EXPERIMENTAL)"
    20     depends on EXPERIMENTAL
    21     select LIBC_UCLIBC_0_9_30_or_later
    22 
    23 config LIBC_UCLIBC_V_0_9_30_2
    24     bool
    25     prompt "0.9.30.2"
    26     select LIBC_UCLIBC_0_9_30_or_later
    27 
    28 config LIBC_V_0_9_30_1
    29     bool
    30     prompt "0.9.30.1"
    31     select LIBC_UCLIBC_0_9_30_or_later
    32 
    33 config LIBC_V_0_9_30
    34     bool
    35     prompt "0.9.30"
    36     select LIBC_UCLIBC_0_9_30_or_later
    37 
    38 config LIBC_V_0_9_29
    39     bool
    40     prompt "0.9.29 (OBSOLETE)"
    41     depends on OBSOLETE
    42 
    43 config LIBC_V_0_9_28_3
    44     bool
    45     prompt "0.9.28.3 (OBSOLETE)"
    46     depends on OBSOLETE
    47 
    48 # As of today (20100702) we can be pretty sure that every
    49 # snapshots made since a month ago are post -0.9.30.
    50 
    51 config LIBC_V_snapshot
    52     bool
    53     prompt "latest snapshot (EXPERIMENTAL)"
    54     depends on EXPERIMENTAL
    55     select LIBC_SUPPORT_NPTL
    56     select LIBC_UCLIBC_0_9_30_or_later
    57 
    58 config LIBC_V_specific_date
    59     bool
    60     prompt "<specific date> (EXPERIMENTAL)"
    61     depends on EXPERIMENTAL
    62     select LIBC_SUPPORT_NPTL
    63     select LIBC_UCLIBC_0_9_30_or_later
    64 
    65 endchoice
    66 
    67 config LIBC_VERSION
    68     string
    69     prompt "Enter date (YYYYMMDD)" if LIBC_V_specific_date
    70 # Don't remove next line
    71 # CT_INSERT_VERSION_STRING_BELOW
    72     default "0.9.31" if LIBC_UCLIBC_V_0_9_31
    73     default "0.9.30.2" if LIBC_UCLIBC_V_0_9_30_2
    74     default "0.9.30.1" if LIBC_V_0_9_30_1
    75     default "0.9.30" if LIBC_V_0_9_30
    76     default "0.9.29" if LIBC_V_0_9_29
    77     default "0.9.28.3" if LIBC_V_0_9_28_3
    78     default "snapshot" if LIBC_V_snapshot
    79 
    80 config LIBC_UCLIBC_0_9_30_or_later
    81     bool
    82     default n
    83     select LIBC_UCLIBC_PARALLEL
    84 
    85 config LIBC_UCLIBC_PARALLEL
    86     bool
    87     default n
    88 
    89 choice
    90     bool
    91     prompt "uClibc verbosity:"
    92     default LIBC_UCLIBC_VERBOSITY_0
    93 
    94 config LIBC_UCLIBC_VERBOSITY_0
    95     bool
    96     prompt "Simplified"
    97     help
    98       Print simplified command lines.
    99 
   100 config LIBC_UCLIBC_VERBOSITY_1
   101     bool
   102     prompt "Full commands"
   103     help
   104       Print full command lines.
   105 
   106 endchoice
   107 
   108 config LIBC_UCLIBC_VERBOSITY
   109     string
   110     default ""      if LIBC_UCLIBC_VERBOSITY_0
   111     default "V=1"   if LIBC_UCLIBC_VERBOSITY_1
   112 
   113 choice
   114     bool
   115     prompt "Debug level"
   116     default LIBC_UCLIBC_DEBUG_LEVEL_0
   117 
   118 config LIBC_UCLIBC_DEBUG_LEVEL_0
   119     bool
   120     prompt "none"
   121 
   122 config LIBC_UCLIBC_DEBUG_LEVEL_1
   123     bool
   124     prompt "minimal"
   125 
   126 config LIBC_UCLIBC_DEBUG_LEVEL_2
   127     bool
   128     prompt "all"
   129 
   130 endchoice
   131 
   132 config LIBC_UCLIBC_DEBUG_LEVEL
   133     int
   134     default 0 if LIBC_UCLIBC_DEBUG_LEVEL_0
   135     default 1 if LIBC_UCLIBC_DEBUG_LEVEL_1
   136     default 2 if LIBC_UCLIBC_DEBUG_LEVEL_2
   137 
   138 config LIBC_UCLIBC_BUILD_CROSS_LDD
   139     bool
   140     prompt "Build cross-ldd"
   141     default y
   142     help
   143       Say 'y' here to build a cross-ldd to run in the host.
   144       
   145       Building a cross-ldd only works on ELF systems, that is,
   146       if you build under Cygwin, you *must* say 'n' here.
   147 
   148 config LIBC_UCLIBC_CONFIG_FILE
   149     string
   150     prompt "Configuration file"
   151     default ""
   152     help
   153       Path to the configuration file.
   154       
   155       You _must_ provide one (for now).
   156 
   157 config LIBC_UCLIBC_LOCALES
   158     bool
   159     select LIBC_UCLIBC_WCHAR
   160     prompt "Add support for locales"
   161     default n
   162     help
   163       Say y if you want uClibc to support localisation.
   164 
   165       Note that seems to be broken on recent uClibc releases.
   166 
   167 config LIBC_UCLIBC_WCHAR
   168     bool
   169     prompt "Add support for WCHAR"
   170     default n
   171     help
   172       Say y if you want uClibc to support WCHAR.
   173 
   174       Maybe this is needed, if you're building a C++-Compiler