2008-07-19 21:22:58 +00:00
|
|
|
# Options specific to downloading packages
|
2008-04-17 20:02:07 +00:00
|
|
|
|
|
|
|
comment "Downloading"
|
|
|
|
|
2017-02-12 21:51:42 +00:00
|
|
|
choice
|
|
|
|
prompt "Download agent"
|
|
|
|
|
|
|
|
config DOWNLOAD_AGENT_WGET
|
|
|
|
bool "wget"
|
|
|
|
depends on CONFIGURE_has_wget
|
|
|
|
|
|
|
|
config DOWNLOAD_AGENT_CURL
|
|
|
|
bool "curl"
|
|
|
|
depends on CONFIGURE_has_curl
|
|
|
|
|
|
|
|
config DOWNLOAD_AGENT_NONE
|
|
|
|
bool "none (forbid download)"
|
|
|
|
select FORBID_DOWNLOAD
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2009-01-06 22:34:36 +00:00
|
|
|
config FORBID_DOWNLOAD
|
|
|
|
bool
|
|
|
|
prompt "Forbid downloads"
|
|
|
|
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.
|
2017-02-12 21:51:42 +00:00
|
|
|
|
2009-01-06 22:34:36 +00:00
|
|
|
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"
|
|
|
|
help
|
|
|
|
Force downloading tarballs, even if one already exists.
|
2017-02-12 21:51:42 +00:00
|
|
|
|
2011-07-17 14:53:40 +00:00
|
|
|
Useful if you suspect a tarball to be damaged.
|
2008-04-17 20:02:07 +00:00
|
|
|
|
2008-07-19 22:45:17 +00:00
|
|
|
config CONNECT_TIMEOUT
|
|
|
|
int
|
2009-12-30 14:36:22 +00:00
|
|
|
prompt "Connection timeout"
|
2008-07-19 22:45:17 +00:00
|
|
|
default 10
|
|
|
|
help
|
2014-05-10 10:33:37 +00:00
|
|
|
Maximum time in seconds that you allow the connection to the server to take.
|
2017-02-12 21:51:42 +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.
|
2017-02-12 21:51:42 +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.
|
2017-02-12 21:51:42 +00:00
|
|
|
|
2014-05-10 10:33:37 +00:00
|
|
|
If '-1' is specified, no timeout reconfiguration options are passed to wget.
|
2014-05-10 02:07:02 +00:00
|
|
|
|
2017-02-12 21:51:42 +00:00
|
|
|
if DOWNLOAD_AGENT_WGET
|
|
|
|
|
|
|
|
config DOWNLOAD_WGET_OPTIONS
|
|
|
|
string "Extra options to wget"
|
|
|
|
default "--passive-ftp --tries=3 -nc --progress=dot:binary"
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
if DOWNLOAD_AGENT_CURL
|
|
|
|
|
|
|
|
config DOWNLOAD_CURL_OPTIONS
|
|
|
|
string "Extra options to curl"
|
|
|
|
default "--location --ftp-pasv --retry 3 --fail --silent"
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2008-07-19 22:45:17 +00:00
|
|
|
config ONLY_DOWNLOAD
|
|
|
|
bool
|
|
|
|
prompt "Stop after downloading tarballs"
|
|
|
|
help
|
|
|
|
Only download the tarballs. Exit once it done.
|
|
|
|
|
2011-07-17 14:53:40 +00:00
|
|
|
Useful to pre-retrieve the tarballs before going off-line.
|
2009-01-06 22:34:36 +00:00
|
|
|
|
2011-08-02 21:10:37 +00:00
|
|
|
config USE_MIRROR
|
|
|
|
bool
|
|
|
|
prompt "Use a mirror"
|
|
|
|
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.
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
2012-08-12 11:45:42 +00:00
|
|
|
if USE_MIRROR
|
|
|
|
|
|
|
|
config FORCE_MIRROR
|
|
|
|
bool
|
|
|
|
prompt "Only use mirror"
|
|
|
|
help
|
|
|
|
Only allow downloading from the mirror specified, other download locations
|
|
|
|
will NOT be used, and the package will fail to be located if not present
|
|
|
|
on the mirror provided
|
|
|
|
|
2011-08-02 21:10:37 +00:00
|
|
|
config MIRROR_BASE_URL
|
|
|
|
string
|
|
|
|
prompt "Base URL"
|
2011-10-18 18:17:41 +00:00
|
|
|
default "http://crosstool-ng.org/mirrors/"
|
2011-08-02 21:10:37 +00:00
|
|
|
help
|
|
|
|
This is the base URL searched in for tarballs.
|
|
|
|
|
2011-10-18 18:17:41 +00:00
|
|
|
The crosstool-NG server hosts a few of the required components, but
|
|
|
|
it is limited to volatile snashots (eg. uClibc) that are used in some
|
|
|
|
samples, or to mirror some archives which upstream can be flaky (eg.
|
|
|
|
mpfr), or for which upstream releases can be missing due to upstream
|
|
|
|
not doing archives (eg. glibc-ports).
|
|
|
|
|
|
|
|
The mirror is provided as-is, no guarantee is made as to the actual
|
|
|
|
content of the archives, or to the availability of the mirror.
|
|
|
|
|
|
|
|
Excercise caution, use at your own risks!
|
2011-08-02 21:10:37 +00:00
|
|
|
|
|
|
|
The mirror is available at:
|
2011-10-18 18:17:41 +00:00
|
|
|
http://crosstool-ng.org/mirrors/
|
2012-08-12 11:45:42 +00:00
|
|
|
|
|
|
|
endif # USE_MIRROR
|
|
|
|
|
2017-09-28 05:29:35 +00:00
|
|
|
config VERIFY_DOWNLOAD_DIGEST
|
|
|
|
bool "Verify download digests (checksums)"
|
|
|
|
default y
|
2018-04-28 23:41:16 +00:00
|
|
|
depends on CONFIGURE_has_sha512sum || CONFIGURE_has_sha256sum || CONFIGURE_has_sha1sum || CONFIGURE_has_md5sum
|
2017-09-28 05:29:35 +00:00
|
|
|
|
|
|
|
if VERIFY_DOWNLOAD_DIGEST
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Digest algorithm"
|
|
|
|
|
|
|
|
config VERIFY_DOWNLOAD_DIGEST_SHA512
|
|
|
|
bool "SHA-512"
|
2018-04-28 23:41:16 +00:00
|
|
|
depends on CONFIGURE_has_sha512sum
|
2017-09-28 05:29:35 +00:00
|
|
|
|
|
|
|
config VERIFY_DOWNLOAD_DIGEST_SHA256
|
2018-04-28 23:41:16 +00:00
|
|
|
depends on CONFIGURE_has_sha256sum
|
2017-09-28 05:29:35 +00:00
|
|
|
bool "SHA-256"
|
|
|
|
|
|
|
|
config VERIFY_DOWNLOAD_DIGEST_SHA1
|
2018-04-28 23:41:16 +00:00
|
|
|
depends on CONFIGURE_has_sha1sum
|
2017-09-28 05:29:35 +00:00
|
|
|
bool "SHA-1"
|
|
|
|
|
|
|
|
config VERIFY_DOWNLOAD_DIGEST_MD5
|
2018-04-28 23:41:16 +00:00
|
|
|
depends on CONFIGURE_has_md5sum
|
2017-09-28 05:29:35 +00:00
|
|
|
bool "MD5"
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config VERIFY_DOWNLOAD_DIGEST_ALG
|
|
|
|
string
|
|
|
|
default "md5" if VERIFY_DOWNLOAD_DIGEST_MD5
|
|
|
|
default "sha1" if VERIFY_DOWNLOAD_DIGEST_SHA1
|
|
|
|
default "sha256" if VERIFY_DOWNLOAD_DIGEST_SHA256
|
|
|
|
default "sha512" if VERIFY_DOWNLOAD_DIGEST_SHA512
|
|
|
|
|
|
|
|
endif # VERIFY_DOWNLOAD_DIGEST
|
|
|
|
|
|
|
|
config VERIFY_DOWNLOAD_SIGNATURE
|
|
|
|
bool "Verify detached signatures"
|
|
|
|
help
|
|
|
|
Verify the signatures for the downloads where available.
|
|
|
|
This requires the public keys for all the packages used in the build
|
|
|
|
to be imported into a keyring on the build machine.
|
|
|
|
|
|
|
|
Note that the validation will succeed so long as the signature
|
|
|
|
is known and valid, even if the signature is not trusted! GnuPG
|
|
|
|
issues a warning in this case, but ultimately reports that validation
|
|
|
|
succeeded. Check the log file if this is a concern; crosstool-NG
|
|
|
|
may add an option to verify this more paranoidally later.
|
|
|
|
|
2012-08-12 11:45:42 +00:00
|
|
|
endif # ! FORBID_DOWNLOAD
|