config/libc/eglibc.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 1195 b6b576b16e7c
child 1269 17e37102a037
child 1360 ea6ce077e35e
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(-)
yann@922
     1
# EXPERIMENTAL
yann@787
     2
# eglibc options
yann@787
     3
yann@922
     4
config LIBC_eglibc
yann@922
     5
    select LIBC_SUPPORT_NPTL
yann@922
     6
    select LIBC_SUPPORT_LINUXTHREADS
yann@922
     7
    help
yann@922
     8
      EGLIBC (Embedded GLIBC) is a variant of the standard GNU GLIBC
yann@922
     9
      that is designed to work well on embedded systems.  EGLIBC strives
yann@922
    10
      to be source and binary compatible with GLIBC.  Its goals include
yann@922
    11
      a reduced footprint, configurable components, and improved
yann@922
    12
      cross-compilation support.  EGLIBC also includes some embedded ports
yann@922
    13
      (such as e500/spe) that are normally separate add-ons of GLIBC.
yann@852
    14
yann@787
    15
choice
yann@787
    16
    bool
yann@787
    17
    prompt "eglibc version"
yann@787
    18
yann@787
    19
config EGLIBC_V_2_5
yann@787
    20
    bool
yann@1195
    21
    prompt "2_5"
yann@787
    22
yann@787
    23
config EGLIBC_V_2_6
yann@787
    24
    bool
yann@1195
    25
    prompt "2_6"
yann@787
    26
yann@787
    27
config EGLIBC_V_2_7
yann@787
    28
    bool
yann@1195
    29
    prompt "2_7"
yann@787
    30
yann@787
    31
config EGLIBC_V_2_8
yann@787
    32
    bool
yann@1195
    33
    prompt "2_8"
yann@1195
    34
yann@1204
    35
config EGLIBC_V_2_9
yann@1195
    36
    bool
yann@1195
    37
    prompt "2_9"
yann@787
    38
yann@787
    39
# CT_INSERT_VERSION_ABOVE
yann@787
    40
# Don't remove above line!
yann@865
    41
yann@865
    42
config EGLIBC_V_TRUNK
yann@865
    43
    bool
yann@865
    44
    prompt "'trunk'"
yann@865
    45
    help
yann@865
    46
      Selecting this will export the trunk of the eglibc subversion repository.
yann@865
    47
yann@787
    48
endchoice
yann@787
    49
yann@787
    50
config LIBC_VERSION
yann@787
    51
    string
yann@787
    52
    default "trunk" if EGLIBC_V_TRUNK
yann@787
    53
    default "2_5" if EGLIBC_V_2_5
yann@787
    54
    default "2_6" if EGLIBC_V_2_6
yann@787
    55
    default "2_7" if EGLIBC_V_2_7
yann@787
    56
    default "2_8" if EGLIBC_V_2_8
yann@1204
    57
    default "2_9" if EGLIBC_V_2_9
yann@787
    58
# CT_INSERT_VERSION_STRING_ABOVE
yann@787
    59
# Don't remove above line!
yann@787
    60
yann@787
    61
config EGLIBC_REVISION
yann@787
    62
    string
yann@787
    63
    prompt "Revision to use"
yann@787
    64
    default "HEAD"
yann@787
    65
    help
yann@787
    66
      Enter the revision of trunk you want to use.
yann@787
    67
      Default is HEAD.
yann@787
    68
      
yann@787
    69
      A revision argument can be one of:
yann@787
    70
          NUMBER       revision number
yann@787
    71
          '{' DATE '}' revision at start of the date (*)
yann@787
    72
          'HEAD'       latest in repository
yann@787
    73
      
yann@787
    74
      (*) If you want to use a date, please use ISO-8601 formats if
yann@787
    75
          at all possible.
yann@787
    76
yann@787
    77
config EGLIBC_CHECKOUT
yann@787
    78
    bool
yann@787
    79
    prompt "checkout instead of export"
yann@787
    80
    default y if EGLIBC_V_TRUNK
yann@787
    81
    default n if ! EGLIBC_V_TRUNK
yann@787
    82
    help
yann@787
    83
      By default, the eglibc download will be an export of the subversion
yann@787
    84
      repository. If you say 'y' here, then the repository will instead be
yann@787
    85
      checked-out, so that you can update it later.
yann@787
    86
      
yann@787
    87
      Note that crosstool-NG will *not* update your working copy, you will
yann@787
    88
      have to do that yourself.