config/global/download.in
author Cody P Schafer <dev@codyps.com>
Sun May 11 23:31:54 2014 +0200 (2014-05-11)
changeset 3319 283cebef7061
parent 3307 d7eaba5831d5
permissions -rw-r--r--
cc/gcc: add 4.9.0

Signed-off-by: Cody P Schafer <dev@codyps.com>
[yann.morin.1998@free.fr: latest is now a 4.9]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <5bac788539bb272893ed.1399801933@gun>
Patchwork-Id: 347774
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
      
antony@2564
    26
      Useful if you suspect a tarball to be damaged.
yann@693
    27
yann@695
    28
config CONNECT_TIMEOUT
yann@695
    29
    int
yann@1669
    30
    prompt "Connection timeout"
yann@695
    31
    default 10
yann@695
    32
    help
yann@3308
    33
      Maximum time in seconds that you allow the connection to the server to take.
yann@754
    34
      
yann@695
    35
      The scenario is as follows;
yann@695
    36
        - some enterprise networks have firewalls that prohibit FTP traffic, while
yann@695
    37
          still allowing HTTP
yann@695
    38
        - most download sites have http:// equivalent for the ftp:// URL
yann@695
    39
        - after this number of seconds, it is considered that the connection could
yann@695
    40
          not be established, and the next URL in the list is tried, until we reach
yann@695
    41
          an URL that will go through the firewall, most probably an http:// URL.
yann@754
    42
      
yann@695
    43
      If you have a slow network, you'd better set this value higher than the default
yann@695
    44
      10s. If you know a firewall is blocking connections, but your network is globally
yann@695
    45
      fast, you can try to lower this value to jump more quickly to allowed URLs. YMMV.
yann@754
    46
      
yann@3308
    47
      If '-1' is specified, no timeout reconfiguration options are passed to wget.
dev@3307
    48
yann@695
    49
config ONLY_DOWNLOAD
yann@695
    50
    bool
yann@695
    51
    prompt "Stop after downloading tarballs"
yann@695
    52
    help
yann@695
    53
      Only download the tarballs. Exit once it done.
yann@695
    54
      
antony@2564
    55
      Useful to pre-retrieve the tarballs before going off-line.
yann@1131
    56
yann@2595
    57
config USE_MIRROR
yann@2595
    58
    bool
yann@2595
    59
    prompt "Use a mirror"
yann@2595
    60
    help
yann@2595
    61
      If you have a machine on your LAN that mirrors some of the needed
yann@2595
    62
      tarballs, you can say 'Y' here, and configure adequate values in
yann@2595
    63
      the following options.
yann@2595
    64
      
yann@2595
    65
      Obviously, nothing prevents you from using a mirror that is in fact
yann@2595
    66
      *not* on your LAN, for example on another subnet of your company's
yann@2595
    67
      network, or a mirror on the Internet.
yann@2595
    68
austinpmorton@3048
    69
if USE_MIRROR
austinpmorton@3048
    70
austinpmorton@3048
    71
config FORCE_MIRROR
austinpmorton@3048
    72
    bool
austinpmorton@3048
    73
    prompt "Only use mirror"
austinpmorton@3048
    74
    help
austinpmorton@3048
    75
      Only allow downloading from the mirror specified, other download locations
austinpmorton@3048
    76
      will NOT be used, and the package will fail to be located if not present
austinpmorton@3048
    77
      on the mirror provided
austinpmorton@3048
    78
yann@2595
    79
config MIRROR_BASE_URL
yann@2595
    80
    string
yann@2595
    81
    prompt "Base URL"
yann@2725
    82
    default "http://crosstool-ng.org/mirrors/"
yann@2595
    83
    help
yann@2595
    84
      This is the base URL searched in for tarballs.
yann@2595
    85
      
yann@2725
    86
      The crosstool-NG server hosts a few of the required components, but
yann@2725
    87
      it is limited to volatile snashots (eg. uClibc) that are used in some
yann@2725
    88
      samples, or to mirror some archives which upstream can be flaky (eg.
yann@2725
    89
      mpfr), or for which upstream releases can be missing due to upstream
yann@2725
    90
      not doing archives (eg. glibc-ports).
yann@2725
    91
      
yann@2725
    92
      The mirror is provided as-is, no guarantee is made as to the actual
yann@2725
    93
      content of the archives, or to the availability of the mirror.
yann@2725
    94
      
yann@2725
    95
      Excercise caution, use at your own risks!
yann@2595
    96
      
yann@2595
    97
      The mirror is available at:
yann@2725
    98
        http://crosstool-ng.org/mirrors/
austinpmorton@3048
    99
austinpmorton@3048
   100
endif # USE_MIRROR
austinpmorton@3048
   101
austinpmorton@3048
   102
endif # ! FORBID_DOWNLOAD