config/global/download_extract.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Jun 24 16:24:09 2008 +0000 (2008-06-24)
changeset 611 eac4dc8da8a9
parent 508 4968462088aa
permissions -rw-r--r--
New patches from Ioannis E. VENETIS to allow building more up-to-date Alpha x-compilers.
Some patches are still missing, though.
See: http://sourceware.org/ml/libc-help/2008-06/msg00061.html

/trunk/patches/glibc/2.5.1/270-glibc-alpha-cfi.patch | 25 25 0 0 ++++++++++
/trunk/patches/glibc/2.5.1/280-glibc-alpha-sigsuspend.patch | 24 24 0 0 ++++++++++
/trunk/patches/glibc/2.5/270-glibc-alpha-cfi.patch | 25 25 0 0 ++++++++++
/trunk/patches/glibc/2.5/280-glibc-alpha-sigsuspend.patch | 24 24 0 0 ++++++++++
/trunk/patches/glibc/linuxthreads-2.3.6/270-glibc-linuxthreads-alpha-cfi.patch | 25 25 0 0 ++++++++++
/trunk/patches/gcc/4.2.0/940-gcc-alpha-signal_h.patch | 17 17 0 0 +++++++
/trunk/patches/gcc/4.2.1/940-gcc-alpha-signal_h.patch | 17 17 0 0 +++++++
/trunk/patches/gcc/4.3.0/940-gcc-alpha-signal_h.patch | 17 17 0 0 +++++++
/trunk/patches/gcc/4.2.2/940-gcc-alpha-signal_h.patch | 17 17 0 0 +++++++
/trunk/patches/gcc/4.3.1/940-gcc-alpha-signal_h.patch | 17 17 0 0 +++++++
/trunk/patches/gcc/4.2.3/940-gcc-alpha-signal_h.patch | 17 17 0 0 +++++++
11 files changed, 225 insertions(+)
yann@445
     1
# Options specific to downloading and extracting packages
yann@174
     2
yann@63
     3
comment "Downloading"
yann@1
     4
yann@63
     5
config FORCE_DOWNLOAD
yann@1
     6
    bool
yann@63
     7
    prompt "Force downloads"
yann@1
     8
    default n
yann@1
     9
    help
yann@63
    10
      Force downloading tarballs, even if one already exists.
yann@63
    11
      
yann@63
    12
      Usefull if you suspect a tarball to be damaged.
yann@1
    13
yann@1
    14
config ONLY_DOWNLOAD
yann@1
    15
    bool
yann@63
    16
    prompt "Stop after downloading tarballs"
yann@1
    17
    default n
yann@1
    18
    help
yann@1
    19
      Only download the tarballs. Exit once it done.
yann@1
    20
      
yann@1
    21
      Usefull to pre-retrieve the tarballs before going off-line.
yann@1
    22
yann@492
    23
config CONNECT_TIMEOUT
yann@492
    24
    int
yann@492
    25
    prompt "connection timeout"
yann@492
    26
    default 10
yann@492
    27
    help
yann@492
    28
      From the curl manual:
yann@492
    29
        Maximum time in seconds that you allow the connection to the server to take.
yann@492
    30
yann@492
    31
      The scenario is as follows;
yann@492
    32
        - some enterprise networks have firewalls that prohibit FTP traffic, while
yann@492
    33
          still allowing HTTP
yann@492
    34
        - most download sites have http:// equivalent for the ftp:// URL
yann@492
    35
        - after this number of seconds, it is considered that the connection could
yann@492
    36
          not be established, and the next URL in the list is tried, until we reach
yann@492
    37
          an URL that will go through the firewall, most probably an http:// URL.
yann@492
    38
yann@492
    39
      If you have a slow network, you'd better set this value higher than the default
yann@492
    40
      10s. If you know a firewall is blocking connections, but your network is globally
yann@492
    41
      fast, you can try to lower this value to jump more quickly to allowed URLs. YMMV.
yann@492
    42
yann@492
    43
      Note that this value applies equally to wget if you have that installed.
yann@492
    44
yann@492
    45
      Of course, you'd be better off to use a proxy, as offered by the following
yann@492
    46
      choice of options.
yann@492
    47
yann@441
    48
choice
yann@441
    49
    bool
yann@441
    50
    prompt "Proxy type"
yann@487
    51
    default PROXY_TYPE_NONE
yann@441
    52
yann@442
    53
config PROXY_TYPE_NONE
yann@441
    54
    bool
yann@441
    55
    prompt "No proxy"
yann@441
    56
    help
yann@441
    57
      Select this option if you have a direct connection to the internet,
yann@441
    58
      or if you already set the environment adequately.
yann@441
    59
yann@442
    60
config PROXY_TYPE_HTTP
yann@441
    61
    bool
yann@441
    62
    prompt "HTTP proxy"
yann@441
    63
    help
yann@441
    64
      Use an HTTP proxy to connect to to the internet.
yann@442
    65
      Only the http and ftp protocols will be tunneled through this
yann@441
    66
      proxy.
yann@441
    67
yann@442
    68
      Alternatively to setting this option, you can set and export the
yann@442
    69
      following variables in your environment:
yann@441
    70
        ftp_proxy=http://user:passwd@proxy.server:port/
yann@441
    71
        http_proxy=http://user:passwd@proxy.server:port/
yann@441
    72
        https_proxy=http://user:passwd@proxy.server:port/
yann@441
    73
yann@441
    74
# Haha! Here is an interesting feature/bug of mconf!
yann@441
    75
# The following config entries will be shown out-side the
yann@441
    76
# choice menu!
yann@441
    77
# To add a third entry in the choice menu, add it after the
yann@441
    78
# if...endif conditional below, and so on for a fourth entry...
yann@442
    79
if PROXY_TYPE_HTTP
yann@441
    80
yann@442
    81
config PROXY_HOST
yann@441
    82
    string
yann@442
    83
    prompt "hostname/IP"
yann@441
    84
yann@442
    85
config PROXY_PORT
yann@441
    86
    int
yann@442
    87
    prompt "port"
yann@452
    88
    default 8080
yann@441
    89
    
yann@442
    90
config PROXY_USER
yann@441
    91
    string
yann@442
    92
    prompt "user name"
yann@441
    93
yann@442
    94
config PROXY_PASS
yann@441
    95
    string
yann@442
    96
    prompt "password"
yann@441
    97
yann@441
    98
endif # USE_HTTP_PROXY
yann@441
    99
yann@442
   100
config PROXY_TYPE_SOCKS
yann@442
   101
    bool
yann@451
   102
    prompt "SOCKS 4/5 proxy (EXPERIMENTAL)"
yann@451
   103
    depends on EXPERIMENTAL
yann@442
   104
    help
yann@442
   105
      Use a Socks 4/5 proxy to connect to the internet.
yann@442
   106
      All protocols can get tunneled through this kind of proxy (depending
yann@601
   107
      on your proxy configuration, some do not allow all protocols, but
yann@442
   108
      chances are that protocols needed by crosstool-NG are allowed).
yann@442
   109
yann@452
   110
      Alternatively to setting this option, you can configure tsocks
yann@452
   111
      system-wide, and set and export the following variable in your
yann@452
   112
      environment:
yann@442
   113
        LD_PRELOAD=/path/to/your/tsocks-library.so
yann@442
   114
yann@442
   115
      This option makes use of the tsocks library. You will have to have tsocks
yann@442
   116
      installed on your system, of course.
yann@442
   117
yann@442
   118
      If you think you do not know what tsocks is, or how to configure it,
yann@442
   119
      chances are that you do not need to set this option.
yann@442
   120
yann@442
   121
if PROXY_TYPE_SOCKS
yann@442
   122
yann@442
   123
choice
yann@442
   124
    bool
yann@442
   125
    prompt "type"
yann@451
   126
    default PROXY_TYPE_SOCKS_SYS
yann@451
   127
yann@451
   128
config PROXY_TYPE_SOCKS_SYS
yann@451
   129
    bool
yann@451
   130
    prompt "Use system settings"
yann@451
   131
    help
yann@452
   132
      Use that if tsocks is already configured on your system.
yann@451
   133
yann@451
   134
config PROXY_TYPE_SOCKS_AUTO
yann@451
   135
    bool
yann@601
   136
    prompt "Auto"
yann@451
   137
    help
yann@452
   138
      crosstool-NG will attempt to guess what type of SOCKS version
yann@452
   139
      the proxy speaks.
yann@451
   140
yann@451
   141
config PROXY_TYPE_SOCKS_4
yann@451
   142
    bool
yann@601
   143
    prompt "SOCKS 4"
yann@442
   144
yann@442
   145
config PROXY_TYPE_SOCKS_5
yann@442
   146
    bool
yann@601
   147
    prompt "SOCKS 5"
yann@442
   148
yann@451
   149
endchoice
yann@442
   150
yann@451
   151
if ! PROXY_TYPE_SOCKS_SYS
yann@451
   152
yann@442
   153
config PROXY_HOST
yann@442
   154
    string
yann@442
   155
    prompt "hostname/IP"
yann@442
   156
yann@442
   157
config PROXY_PORT
yann@442
   158
    int
yann@442
   159
    prompt "port"
yann@452
   160
    default 1080
yann@442
   161
yann@442
   162
config PROXY_USER
yann@442
   163
    string
yann@442
   164
    prompt "user name"
yann@442
   165
yann@442
   166
config PROXY_PASS
yann@442
   167
    string
yann@442
   168
    prompt "password"
yann@442
   169
yann@451
   170
endif # ! PROXY_TYPE_SOCKS_SYS
yann@451
   171
yann@442
   172
endif # USE_SOCKS_PROXY
yann@442
   173
yann@442
   174
endchoice
yann@442
   175
yann@442
   176
config PROXY_TYPE
yann@442
   177
    string
yann@451
   178
    default "none"      if PROXY_TYPE_NONE
yann@451
   179
    default "http"      if PROXY_TYPE_HTTP
yann@451
   180
    default "sockssys"  if PROXY_TYPE_SOCKS_SYS
yann@451
   181
    default "socksauto" if PROXY_TYPE_SOCKS_AUTO
yann@451
   182
    default "socks4"    if PROXY_TYPE_SOCKS_4
yann@451
   183
    default "socks5"    if PROXY_TYPE_SOCKS_5
yann@442
   184
yann@441
   185
# Force restore indentation
yann@445
   186
config BREAK_INDENT
yann@445
   187
    bool
yann@445
   188
    default n
yann@121
   189
yann@244
   190
if ! ONLY_DOWNLOAD
yann@244
   191
yann@63
   192
comment "Extracting"
yann@1
   193
yann@1
   194
config FORCE_EXTRACT
yann@1
   195
    bool
yann@1
   196
    prompt "Force extractions"
yann@1
   197
    default n
yann@1
   198
    help
yann@1
   199
      Force extraction of already exctracted tarballs.
yann@1
   200
      
yann@1
   201
      Usefull if you suspect a previous extract did not complete (eg. broken
yann@1
   202
      tarball), or you added a new set of patches for this component.
yann@1
   203
yann@508
   204
config OVERIDE_CONFIG_GUESS_SUB
yann@508
   205
    bool
yann@508
   206
    prompt "Override config.{guess,sub}"
yann@508
   207
    default y
yann@508
   208
    help
yann@508
   209
      Override tools' versions of config.guess and config.sub with the ones
yann@508
   210
      from crosstool-NG. This means that all instances of config.guess and
yann@508
   211
      config.sub in gcc, binutils, glibc, etc... will be replaced.
yann@508
   212
yann@508
   213
      Most of the time, the versions of those scripts found in packages are old
yann@508
   214
      versions, thus lacking some target definitions. This is the case for
yann@508
   215
      uClibc-based tuples in old versions of gcc and gdb, for example.
yann@508
   216
yann@508
   217
      Also, doing so will guarantee that all components have the same tuples
yann@508
   218
      definitions for your target, and not diverging ones.
yann@508
   219
yann@508
   220
      You can update the ones provided with crosstool-NG by first running:
yann@508
   221
        ct-ng updatetools
yann@508
   222
      in the directory where you want to run crosstool-NG prior to the build.
yann@508
   223
yann@63
   224
config ONLY_EXTRACT
yann@63
   225
    bool
yann@63
   226
    prompt "Stop after extracting tarballs"
yann@63
   227
    default n
yann@63
   228
    help
yann@63
   229
      Exit after unpacking and patching tarballs.
yann@63
   230
      
yann@63
   231
      Usefull to look at the code before doing the build itself.
yann@63
   232
yann@244
   233
endif # ! ONLY_DOWNLOAD