2008-07-19 21:22:58 +00:00
|
|
|
# Options specific to downloading packages
|
2008-04-17 20:02:07 +00:00
|
|
|
|
|
|
|
comment "Downloading"
|
|
|
|
|
2009-01-06 22:34:36 +00:00
|
|
|
config FORBID_DOWNLOAD
|
|
|
|
bool
|
|
|
|
prompt "Forbid downloads"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Normally, crosstool-NG will try to download missing tarballs (or
|
|
|
|
checkout from CVS/SVN...).
|
|
|
|
If you do not have network connectivity when you run crosstool-NG,
|
|
|
|
and some files are missing, it can be a long time before crosstool-NG
|
|
|
|
fails.
|
|
|
|
|
|
|
|
Saying 'y' here will prevent crosstool-NG from downloading missing
|
|
|
|
files, thus failing early so that you don't get stuck.
|
|
|
|
|
|
|
|
if ! FORBID_DOWNLOAD
|
|
|
|
|
2008-04-17 20:02:07 +00:00
|
|
|
config FORCE_DOWNLOAD
|
|
|
|
bool
|
|
|
|
prompt "Force downloads"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Force downloading tarballs, even if one already exists.
|
|
|
|
|
|
|
|
Usefull if you suspect a tarball to be damaged.
|
|
|
|
|
2008-10-31 18:27:27 +00:00
|
|
|
menuconfig USE_MIRROR
|
2008-08-01 09:23:58 +00:00
|
|
|
bool
|
|
|
|
prompt "Use LAN mirror"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
If you have a machine on your LAN that mirrors some of the needed
|
|
|
|
tarballs, you can say 'Y' here, and configure adequate values in
|
|
|
|
the following options.
|
|
|
|
|
|
|
|
Tarballs will be be preferably fetched from the LAN mirror, and if
|
|
|
|
not found there, standard places will be searched for.
|
|
|
|
|
|
|
|
Obviously, nothing prevents you from using a mirror that is in fact
|
|
|
|
*not* on your LAN, for example on another subnet of your company's
|
|
|
|
network, or a mirror on the Internet.
|
2008-10-31 18:27:27 +00:00
|
|
|
|
|
|
|
I (Yann E. MORIN) have set up such a mirror to host snapshots of
|
|
|
|
some components, when those snapshots are volatile on the upstream
|
|
|
|
servers. The mirror is *slow*, because it is hosted behind an ADSL
|
|
|
|
line. For the time being, I haven't set up bandwidth limitations,
|
|
|
|
but should the mirror be abused, I will. Please avoid using my
|
|
|
|
machine when you can...
|
|
|
|
The mirror is available as (fill in those values in the fields
|
|
|
|
below):
|
|
|
|
host name: ymorin.is-a-geek.org
|
|
|
|
base dir : /mirrors
|
|
|
|
|
|
|
|
if USE_MIRROR
|
|
|
|
|
|
|
|
config PREFER_MIRROR
|
2008-08-01 09:23:58 +00:00
|
|
|
bool
|
2008-10-31 18:27:27 +00:00
|
|
|
prompt "Prefer the LAN mirror"
|
2008-08-01 09:23:58 +00:00
|
|
|
default n
|
|
|
|
help
|
2008-10-31 18:27:27 +00:00
|
|
|
Say 'Y' here if you prefer the LAN miror over the upstream sources.
|
2008-08-01 09:23:58 +00:00
|
|
|
|
|
|
|
choice
|
|
|
|
bool
|
|
|
|
prompt "Server type:"
|
|
|
|
|
2008-10-31 18:27:27 +00:00
|
|
|
config MIRROR_HTTP
|
2008-08-01 09:23:58 +00:00
|
|
|
bool
|
|
|
|
prompt "http"
|
|
|
|
|
2008-10-31 18:27:27 +00:00
|
|
|
config MIRROR_FTP
|
2008-08-01 09:23:58 +00:00
|
|
|
bool
|
|
|
|
prompt "ftp"
|
|
|
|
|
|
|
|
endchoice # Server type
|
|
|
|
|
2008-10-31 18:27:27 +00:00
|
|
|
config MIRROR_SCHEME
|
2008-08-01 09:23:58 +00:00
|
|
|
string
|
2008-10-31 18:27:27 +00:00
|
|
|
default "http" if MIRROR_HTTP
|
|
|
|
default "ftp" if MIRROR_FTP
|
2008-08-01 09:23:58 +00:00
|
|
|
|
2008-10-31 18:27:27 +00:00
|
|
|
config MIRROR_HOSTNAME
|
2008-08-01 09:23:58 +00:00
|
|
|
string
|
|
|
|
prompt "hostname"
|
|
|
|
default ""
|
|
|
|
help
|
|
|
|
Enter here the hostname on your LAN mirror.
|
|
|
|
|
2008-10-31 18:27:27 +00:00
|
|
|
config MIRROR_BASE
|
2008-08-01 09:23:58 +00:00
|
|
|
string
|
|
|
|
prompt "Base directory"
|
|
|
|
default ""
|
|
|
|
help
|
|
|
|
This is the base directory searched for for tarballs. If you enter
|
|
|
|
/mirror, then the search is performed in the following directories
|
|
|
|
on the server:
|
|
|
|
/mirror/<name>/
|
|
|
|
/mirror/
|
|
|
|
|
|
|
|
where <name> is replaced with the actual package name.
|
|
|
|
|
2008-10-31 18:27:27 +00:00
|
|
|
config MIRROR_LS_R
|
2008-08-01 09:23:58 +00:00
|
|
|
bool
|
|
|
|
# prompt "Use ls-lR et al."
|
|
|
|
depends on EXPERIMENTAL
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
If the tarball was not found at the above location, see if the server
|
|
|
|
has a ls-lr.gz (or similar) file, and use that file to see if the
|
|
|
|
tarball is listed somewhere in that file.
|
|
|
|
|
|
|
|
Common file names looked for are:
|
|
|
|
ls-lrRt.txt (used at ftp.gnu.org)
|
|
|
|
find.txt (ditto)
|
|
|
|
ls-lR
|
|
|
|
|
2008-10-31 18:27:27 +00:00
|
|
|
endif # USE_MIRROR
|
2008-08-01 09:23:58 +00:00
|
|
|
|
2008-07-19 22:45:17 +00:00
|
|
|
config CONNECT_TIMEOUT
|
|
|
|
int
|
|
|
|
prompt "connection timeout"
|
|
|
|
default 10
|
|
|
|
help
|
|
|
|
From the curl manual:
|
|
|
|
Maximum time in seconds that you allow the connection to the server to take.
|
2008-08-01 09:23:58 +00:00
|
|
|
|
2008-07-19 22:45:17 +00:00
|
|
|
The scenario is as follows;
|
|
|
|
- some enterprise networks have firewalls that prohibit FTP traffic, while
|
|
|
|
still allowing HTTP
|
|
|
|
- most download sites have http:// equivalent for the ftp:// URL
|
|
|
|
- after this number of seconds, it is considered that the connection could
|
|
|
|
not be established, and the next URL in the list is tried, until we reach
|
|
|
|
an URL that will go through the firewall, most probably an http:// URL.
|
2008-08-01 09:23:58 +00:00
|
|
|
|
2008-07-19 22:45:17 +00:00
|
|
|
If you have a slow network, you'd better set this value higher than the default
|
|
|
|
10s. If you know a firewall is blocking connections, but your network is globally
|
|
|
|
fast, you can try to lower this value to jump more quickly to allowed URLs. YMMV.
|
2008-08-01 09:23:58 +00:00
|
|
|
|
2008-07-19 22:45:17 +00:00
|
|
|
Note that this value applies equally to wget if you have that installed.
|
|
|
|
|
|
|
|
config ONLY_DOWNLOAD
|
|
|
|
bool
|
|
|
|
prompt "Stop after downloading tarballs"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Only download the tarballs. Exit once it done.
|
|
|
|
|
|
|
|
Usefull to pre-retrieve the tarballs before going off-line.
|
2009-01-06 22:34:36 +00:00
|
|
|
|
|
|
|
endif # ! FORBID_DOWNLOAD
|