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