2008-04-17 20:02:07 +00:00
|
|
|
# Options specific to downloading and extracting packages
|
|
|
|
|
|
|
|
comment "Downloading"
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
choice
|
|
|
|
bool
|
|
|
|
prompt "Proxy type"
|
2008-05-03 17:56:40 +00:00
|
|
|
default PROXY_TYPE_NONE
|
2008-04-17 20:02:07 +00:00
|
|
|
|
|
|
|
config PROXY_TYPE_NONE
|
|
|
|
bool
|
|
|
|
prompt "No proxy"
|
|
|
|
help
|
|
|
|
Select this option if you have a direct connection to the internet,
|
|
|
|
or if you already set the environment adequately.
|
|
|
|
|
|
|
|
config PROXY_TYPE_HTTP
|
|
|
|
bool
|
|
|
|
prompt "HTTP proxy"
|
|
|
|
help
|
|
|
|
Use an HTTP proxy to connect to to the internet.
|
|
|
|
Only the http and ftp protocols will be tunneled through this
|
|
|
|
proxy.
|
|
|
|
|
|
|
|
Alternatively to setting this option, you can set and export the
|
|
|
|
following variables in your environment:
|
|
|
|
ftp_proxy=http://user:passwd@proxy.server:port/
|
|
|
|
http_proxy=http://user:passwd@proxy.server:port/
|
|
|
|
https_proxy=http://user:passwd@proxy.server:port/
|
|
|
|
|
|
|
|
# Haha! Here is an interesting feature/bug of mconf!
|
|
|
|
# The following config entries will be shown out-side the
|
|
|
|
# choice menu!
|
|
|
|
# To add a third entry in the choice menu, add it after the
|
|
|
|
# if...endif conditional below, and so on for a fourth entry...
|
|
|
|
if PROXY_TYPE_HTTP
|
|
|
|
|
|
|
|
config PROXY_HOST
|
|
|
|
string
|
|
|
|
prompt "hostname/IP"
|
|
|
|
|
|
|
|
config PROXY_PORT
|
|
|
|
int
|
|
|
|
prompt "port"
|
2008-04-20 16:46:17 +00:00
|
|
|
default 8080
|
2008-04-17 20:02:07 +00:00
|
|
|
|
|
|
|
config PROXY_USER
|
|
|
|
string
|
|
|
|
prompt "user name"
|
|
|
|
|
|
|
|
config PROXY_PASS
|
|
|
|
string
|
|
|
|
prompt "password"
|
|
|
|
|
|
|
|
endif # USE_HTTP_PROXY
|
|
|
|
|
|
|
|
config PROXY_TYPE_SOCKS
|
|
|
|
bool
|
2008-04-18 22:16:28 +00:00
|
|
|
prompt "SOCKS 4/5 proxy (EXPERIMENTAL)"
|
|
|
|
depends on EXPERIMENTAL
|
2008-04-17 20:02:07 +00:00
|
|
|
help
|
|
|
|
Use a Socks 4/5 proxy to connect to the internet.
|
|
|
|
All protocols can get tunneled through this kind of proxy (depending
|
|
|
|
on your proxy configuration, so;e do not allow all protocols, but
|
|
|
|
chances are that protocols needed by crosstool-NG are allowed).
|
|
|
|
|
2008-04-20 16:46:17 +00:00
|
|
|
Please note that the proxy you are using MUST be on the same subnet
|
|
|
|
as your machine. That is, it must be reachable without a hop through
|
|
|
|
any gate. If this is not the case, then do NOT use this option, and
|
|
|
|
setup tsocks system-wide.
|
2008-04-17 20:02:07 +00:00
|
|
|
|
2008-04-20 16:46:17 +00:00
|
|
|
Alternatively to setting this option, you can configure tsocks
|
|
|
|
system-wide, and set and export the following variable in your
|
|
|
|
environment:
|
|
|
|
LD_PRELOAD=/path/to/your/tsocks-library.so
|
2008-04-17 20:02:07 +00:00
|
|
|
|
|
|
|
This option makes use of the tsocks library. You will have to have tsocks
|
|
|
|
installed on your system, of course.
|
|
|
|
|
|
|
|
If you think you do not know what tsocks is, or how to configure it,
|
|
|
|
chances are that you do not need to set this option.
|
|
|
|
|
|
|
|
if PROXY_TYPE_SOCKS
|
|
|
|
|
|
|
|
choice
|
|
|
|
bool
|
|
|
|
prompt "type"
|
2008-04-18 22:16:28 +00:00
|
|
|
default PROXY_TYPE_SOCKS_SYS
|
2008-04-17 20:02:07 +00:00
|
|
|
|
2008-04-18 22:16:28 +00:00
|
|
|
config PROXY_TYPE_SOCKS_SYS
|
2008-04-17 20:02:07 +00:00
|
|
|
bool
|
2008-04-18 22:16:28 +00:00
|
|
|
prompt "Use system settings"
|
|
|
|
help
|
2008-04-20 16:46:17 +00:00
|
|
|
Use that if tsocks is already configured on your system.
|
2008-04-18 22:16:28 +00:00
|
|
|
|
|
|
|
config PROXY_TYPE_SOCKS_AUTO
|
|
|
|
bool
|
2008-04-20 16:46:17 +00:00
|
|
|
prompt "Auto (BROKEN)"
|
|
|
|
depends on BROKEN
|
2008-04-18 22:16:28 +00:00
|
|
|
help
|
2008-04-20 16:46:17 +00:00
|
|
|
crosstool-NG will attempt to guess what type of SOCKS version
|
|
|
|
the proxy speaks.
|
2008-04-17 20:02:07 +00:00
|
|
|
|
|
|
|
config PROXY_TYPE_SOCKS_4
|
|
|
|
bool
|
2008-04-20 16:46:17 +00:00
|
|
|
prompt "SOCKS 4 (BROKEN)"
|
|
|
|
depends on BROKEN
|
2008-04-17 20:02:07 +00:00
|
|
|
|
2008-04-18 22:16:28 +00:00
|
|
|
config PROXY_TYPE_SOCKS_5
|
|
|
|
bool
|
2008-04-20 16:46:17 +00:00
|
|
|
prompt "SOCKS 5 (BROKEN)"
|
|
|
|
depends on BROKEN
|
2008-04-18 22:16:28 +00:00
|
|
|
|
2008-04-17 20:02:07 +00:00
|
|
|
endchoice
|
|
|
|
|
2008-04-18 22:16:28 +00:00
|
|
|
if ! PROXY_TYPE_SOCKS_SYS
|
|
|
|
|
2008-04-17 20:02:07 +00:00
|
|
|
config PROXY_HOST
|
|
|
|
string
|
|
|
|
prompt "hostname/IP"
|
|
|
|
|
|
|
|
config PROXY_PORT
|
|
|
|
int
|
|
|
|
prompt "port"
|
2008-04-20 16:46:17 +00:00
|
|
|
default 1080
|
2008-04-17 20:02:07 +00:00
|
|
|
|
|
|
|
config PROXY_USER
|
|
|
|
string
|
|
|
|
prompt "user name"
|
|
|
|
|
|
|
|
config PROXY_PASS
|
|
|
|
string
|
|
|
|
prompt "password"
|
|
|
|
|
2008-04-18 22:16:28 +00:00
|
|
|
endif # ! PROXY_TYPE_SOCKS_SYS
|
|
|
|
|
2008-04-17 20:02:07 +00:00
|
|
|
endif # USE_SOCKS_PROXY
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config PROXY_TYPE
|
|
|
|
string
|
2008-04-18 22:16:28 +00:00
|
|
|
default "none" if PROXY_TYPE_NONE
|
|
|
|
default "http" if PROXY_TYPE_HTTP
|
|
|
|
default "sockssys" if PROXY_TYPE_SOCKS_SYS
|
|
|
|
default "socksauto" if PROXY_TYPE_SOCKS_AUTO
|
|
|
|
default "socks4" if PROXY_TYPE_SOCKS_4
|
|
|
|
default "socks5" if PROXY_TYPE_SOCKS_5
|
2008-04-17 20:02:07 +00:00
|
|
|
|
|
|
|
# Force restore indentation
|
|
|
|
config BREAK_INDENT
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
if ! ONLY_DOWNLOAD
|
|
|
|
|
|
|
|
comment "Extracting"
|
|
|
|
|
|
|
|
config FORCE_EXTRACT
|
|
|
|
bool
|
|
|
|
prompt "Force extractions"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Force extraction of already exctracted tarballs.
|
|
|
|
|
|
|
|
Usefull if you suspect a previous extract did not complete (eg. broken
|
|
|
|
tarball), or you added a new set of patches for this component.
|
|
|
|
|
|
|
|
config ONLY_EXTRACT
|
|
|
|
bool
|
|
|
|
prompt "Stop after extracting tarballs"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Exit after unpacking and patching tarballs.
|
|
|
|
|
|
|
|
Usefull to look at the code before doing the build itself.
|
|
|
|
|
|
|
|
endif # ! ONLY_DOWNLOAD
|