config/global/download.in
author "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
Tue May 31 20:12:35 2011 +0200 (2011-05-31)
changeset 2487 481cd34691f0
parent 2203 ac3e215141a1
child 2564 5d4e91c0343e
permissions -rw-r--r--
gcc: promote PKGVERSION and BUGURL options to toolchain level

This patch promotes the PKGVERSION and BUGURL options to toolchain level so that
all toolchain components supporting them can benefit from them.

These options are passed to configure through --with-pkgversion and
--with-bugurl.

They are supported by binutils 2.18+, gcc 4.3+, eglibc 2.9+ and gdb 7.0+.

Signed-off-by: "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
yann@693
     1
# Options specific to downloading packages
yann@693
     2
yann@693
     3
comment "Downloading"
yann@693
     4
yann@1131
     5
config FORBID_DOWNLOAD
yann@1131
     6
    bool
yann@1131
     7
    prompt "Forbid downloads"
yann@1131
     8
    help
yann@1131
     9
      Normally, crosstool-NG will try to download missing tarballs (or
yann@1131
    10
      checkout from CVS/SVN...).
yann@1131
    11
      If you do not have network connectivity when you run crosstool-NG,
yann@1131
    12
      and some files are missing, it can be a long time before crosstool-NG
yann@1131
    13
      fails.
yann@1131
    14
      
yann@1131
    15
      Saying 'y' here will prevent crosstool-NG from downloading missing
yann@1131
    16
      files, thus failing early so that you don't get stuck.
yann@1131
    17
yann@1131
    18
if ! FORBID_DOWNLOAD
yann@1131
    19
yann@693
    20
config FORCE_DOWNLOAD
yann@693
    21
    bool
yann@693
    22
    prompt "Force downloads"
yann@693
    23
    help
yann@693
    24
      Force downloading tarballs, even if one already exists.
yann@693
    25
      
yann@693
    26
      Usefull if you suspect a tarball to be damaged.
yann@693
    27
yann@2013
    28
config USE_MIRROR
yann@754
    29
    bool
yann@1777
    30
    prompt "Use a mirror"
yann@754
    31
    help
yann@754
    32
      If you have a machine on your LAN that mirrors some of the needed
yann@754
    33
      tarballs, you can say 'Y' here, and configure adequate values in
yann@754
    34
      the following options.
yann@754
    35
      
yann@754
    36
      Obviously, nothing prevents you from using a mirror that is in fact
yann@754
    37
      *not* on your LAN, for example on another subnet of your company's
yann@754
    38
      network, or a mirror on the Internet.
yann@1294
    39
yann@1294
    40
if USE_MIRROR
yann@1294
    41
yann@1294
    42
config PREFER_MIRROR
yann@1294
    43
    bool
yann@1294
    44
    prompt "Prefer the mirror"
yann@1294
    45
    help
yann@1294
    46
      Say 'Y' here if you prefer the LAN miror over the upstream sources.
yann@1294
    47
yann@1294
    48
config MIRROR_BASE_URL
yann@1294
    49
    string
yann@1294
    50
    prompt "Base URL"
yann@1295
    51
    default "http://ymorin.is-a-geek.org/mirrors/"
yann@1294
    52
    help
yann@1294
    53
      This is the base URL searched in for tarballs.
yann@1022
    54
      
yann@1022
    55
      I (Yann E. MORIN) have set up such a mirror to host snapshots of
yann@1022
    56
      some components, when those snapshots are volatile on the upstream
yann@1022
    57
      servers. The mirror is *slow*, because it is hosted behind an ADSL
yann@1022
    58
      line. For the time being, I haven't set up bandwidth limitations,
yann@1022
    59
      but should the mirror be abused, I will. Please avoid using my
yann@1294
    60
      machine when you can... Also, no guarantee is made as to its
yann@1294
    61
      availability. Use at your own risks.
yann@754
    62
      
yann@1294
    63
      The mirror is available at:
yann@1294
    64
        http://ymorin.is-a-geek.org/mirrors/
yann@754
    65
yann@1022
    66
endif # USE_MIRROR
yann@754
    67
yann@695
    68
config CONNECT_TIMEOUT
yann@695
    69
    int
yann@1669
    70
    prompt "Connection timeout"
yann@695
    71
    default 10
yann@695
    72
    help
yann@695
    73
      From the curl manual:
yann@695
    74
        Maximum time in seconds that you allow the connection to the server to take.
yann@754
    75
      
yann@695
    76
      The scenario is as follows;
yann@695
    77
        - some enterprise networks have firewalls that prohibit FTP traffic, while
yann@695
    78
          still allowing HTTP
yann@695
    79
        - most download sites have http:// equivalent for the ftp:// URL
yann@695
    80
        - after this number of seconds, it is considered that the connection could
yann@695
    81
          not be established, and the next URL in the list is tried, until we reach
yann@695
    82
          an URL that will go through the firewall, most probably an http:// URL.
yann@754
    83
      
yann@695
    84
      If you have a slow network, you'd better set this value higher than the default
yann@695
    85
      10s. If you know a firewall is blocking connections, but your network is globally
yann@695
    86
      fast, you can try to lower this value to jump more quickly to allowed URLs. YMMV.
yann@754
    87
      
yann@695
    88
      Note that this value applies equally to wget if you have that installed.
yann@695
    89
yann@695
    90
config ONLY_DOWNLOAD
yann@695
    91
    bool
yann@695
    92
    prompt "Stop after downloading tarballs"
yann@695
    93
    help
yann@695
    94
      Only download the tarballs. Exit once it done.
yann@695
    95
      
yann@695
    96
      Usefull to pre-retrieve the tarballs before going off-line.
yann@1131
    97
yann@1131
    98
endif # ! FORBID_DOWNLOAD