config/libc/uClibc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu Mar 26 18:47:34 2009 +0000 (2009-03-26)
changeset 1268 5594b05bc2d8
parent 1209 1fc98c1419a7
child 1269 17e37102a037
permissions -rw-r--r--
Add support for building toolchains with gcc-4.4 snapshots.
Initial patch by Dmitry PLOTNIKOV: http://sourceware.org/ml/crossgcc/2009-03/msg00053.html
It [the toolchain] uses current ct-ng (nightly snapshot 20090324, latest
release 1.3.2 work also), glibc 2.9 (from CVS), binutils 2.19 and latest
snapshot of GCC 4.4.0 (as of March 20, 2009).

We have successfully built linux kernel 2.6.29 and a lot of other stuff
with this toolchain.

Here's the patch that adds GCC 4.4.0 to the ct-ng menu and enables it to
download a 4.4.0 snapshot from ftp.

Patch was adpated by me, mostly to better fit the configuration layout.

/trunk/scripts/build/cc/gcc.sh | 34 22 12 0 ++++++++++++++++++++++------------
/trunk/config/cc/gcc.in | 35 30 5 0 ++++++++++++++++++++++++++++++-----
2 files changed, 52 insertions(+), 17 deletions(-)
     1 # uClibc options
     2 
     3 config LIBC_uClibc
     4     select LIBC_SUPPORT_LINUXTHREADS
     5     help
     6       The de-facto standard for embeded linux systems.
     7       Highly configurable, thus as feature-rich as you need, without
     8       compromising for size.
     9 
    10 choice
    11     bool
    12     prompt "uClibc version"
    13 
    14 config LIBC_V_0_9_28
    15     bool
    16     prompt "0.9.28 (OBSOLETE)"
    17     depends on OBSOLETE
    18 
    19 config LIBC_V_0_9_28_1
    20     bool
    21     prompt "0.9.28.1 (OBSOLETE)"
    22     depends on OBSOLETE
    23 
    24 config LIBC_V_0_9_28_2
    25     bool
    26     prompt "0.9.28.2 (OBSOLETE)"
    27     depends on OBSOLETE
    28 
    29 config LIBC_V_0_9_28_3
    30     bool
    31     prompt "0.9.28.3"
    32 
    33 config LIBC_V_0_9_29
    34     bool
    35     prompt "0.9.29"
    36 
    37 config LIBC_V_0_9_30
    38     bool
    39     prompt "0.9.30"
    40 
    41 config LIBC_V_0_9_30_1
    42     bool
    43     prompt "0.9.30.1"
    44 
    45 # CT_INSERT_VERSION_ABOVE
    46 # Don't remove above line!
    47 
    48 config LIBC_V_snapshot
    49     bool
    50     prompt "latest snapshot (EXPERIMENTAL)"
    51     depends on EXPERIMENTAL
    52 
    53 config LIBC_V_specific_date
    54     bool
    55     prompt "<specific date> (EXPERIMENTAL)"
    56     depends on EXPERIMENTAL
    57 
    58 endchoice
    59 
    60 config LIBC_VERSION
    61     string
    62     prompt "Enter date (YYYYMMDD)" if LIBC_V_specific_date
    63     default "snapshot" if LIBC_V_snapshot
    64     default "0.9.28" if LIBC_V_0_9_28
    65     default "0.9.28.1" if LIBC_V_0_9_28_1
    66     default "0.9.28.2" if LIBC_V_0_9_28_2
    67     default "0.9.28.3" if LIBC_V_0_9_28_3
    68     default "0.9.29" if LIBC_V_0_9_29
    69     default "0.9.30" if LIBC_V_0_9_30
    70     default "0.9.30.1" if LIBC_V_0_9_30_1
    71 # CT_INSERT_VERSION_STRING_ABOVE
    72 # Don't remove above line!
    73 
    74 config LIBC_UCLIBC_PARALLEL
    75     bool
    76     prompt "Build uClibc in //" if LIBC_V_snapshot || LIBC_V_specific_date
    77     default n
    78     help
    79       Build uClibc using parallel jobs.
    80       Some 'old' versions won't build in //, but it works starting with
    81       0.9.30 release candidates.
    82 
    83 choice
    84     bool
    85     prompt "uClibc verbosity:"
    86     default LIBC_UCLIBC_VERBOSITY_0
    87 
    88 config LIBC_UCLIBC_VERBOSITY_0
    89     bool
    90     prompt "Simplified"
    91     help
    92       Print simplified command lines.
    93 
    94 config LIBC_UCLIBC_VERBOSITY_1
    95     bool
    96     prompt "Full commands"
    97     help
    98       Print full command lines.
    99 
   100 endchoice
   101 
   102 config LIBC_UCLIBC_VERBOSITY
   103     string
   104     default ""      if LIBC_UCLIBC_VERBOSITY_0
   105     default "V=1"   if LIBC_UCLIBC_VERBOSITY_1
   106 
   107 choice
   108     bool
   109     prompt "Debug level"
   110     default LIBC_UCLIBC_DEBUG_LEVEL_0
   111 
   112 config LIBC_UCLIBC_DEBUG_LEVEL_0
   113     bool
   114     prompt "none"
   115 
   116 config LIBC_UCLIBC_DEBUG_LEVEL_1
   117     bool
   118     prompt "minimal"
   119 
   120 config LIBC_UCLIBC_DEBUG_LEVEL_2
   121     bool
   122     prompt "all"
   123 
   124 endchoice
   125 
   126 config LIBC_UCLIBC_DEBUG_LEVEL
   127     int
   128     default 0 if LIBC_UCLIBC_DEBUG_LEVEL_0
   129     default 1 if LIBC_UCLIBC_DEBUG_LEVEL_1
   130     default 2 if LIBC_UCLIBC_DEBUG_LEVEL_2
   131 
   132 config LIBC_UCLIBC_BUILD_CROSS_LDD
   133     bool
   134     prompt "Build cross-ldd"
   135     default y
   136     help
   137       Say 'y' here to build a cross-ldd to run in the host.
   138       
   139       Building a cross-ldd only works on ELF systems, that is,
   140       if you build under Cygwin, you *must* say 'n' here.
   141 
   142 config LIBC_UCLIBC_CONFIG_FILE
   143     string
   144     prompt "Configuration file"
   145     default ""
   146     help
   147       Path to the configuration file.
   148       
   149       You _must_ provide one (for now).
   150 
   151 config LIBC_UCLIBC_LOCALES
   152     bool
   153     prompt "Add support for locales"
   154     default n
   155     help
   156       Say y if you want uClibc to support localisation.
   157 
   158       Note that seems to be broken on recent uClibc releases.