mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-15 17:34:43 +00:00
net: Kconfig: add CONFIG_WGET symbol
Let net/wget.c and net/lwip/wget.c depend on CONFIG_WGET, and cmd/wget.c depend on CONFIG_CMD_WGET. This way, the wget code can be used regardless of whether the wget command is available. Signed-off-by: Adriano Cordova <adrianox@gmail.com> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
c71d451033
commit
657b799585
4 changed files with 12 additions and 6 deletions
|
@ -2115,11 +2115,8 @@ config CMD_TFTPBOOT
|
||||||
|
|
||||||
config CMD_WGET
|
config CMD_WGET
|
||||||
bool "wget"
|
bool "wget"
|
||||||
depends on CMD_NET
|
|
||||||
default y if SANDBOX
|
default y if SANDBOX
|
||||||
select PROT_TCP if NET
|
select WGET
|
||||||
select PROT_TCP_LWIP if NET_LWIP
|
|
||||||
select PROT_DNS_LWIP if NET_LWIP
|
|
||||||
help
|
help
|
||||||
wget is a simple command to download kernel, or other files,
|
wget is a simple command to download kernel, or other files,
|
||||||
from a http server over TCP.
|
from a http server over TCP.
|
||||||
|
|
|
@ -244,6 +244,15 @@ config NET_RANDOM_ETHADDR
|
||||||
generated. It will be saved to the appropriate environment variable,
|
generated. It will be saved to the appropriate environment variable,
|
||||||
too.
|
too.
|
||||||
|
|
||||||
|
config WGET
|
||||||
|
bool "Enable wget"
|
||||||
|
select PROT_TCP if NET
|
||||||
|
select PROT_TCP_LWIP if NET_LWIP
|
||||||
|
select PROT_DNS_LWIP if NET_LWIP
|
||||||
|
help
|
||||||
|
Selecting this will enable wget, an interface to send HTTP requests
|
||||||
|
via the network stack.
|
||||||
|
|
||||||
config TFTP_BLOCKSIZE
|
config TFTP_BLOCKSIZE
|
||||||
int "TFTP block size"
|
int "TFTP block size"
|
||||||
default 1468
|
default 1468
|
||||||
|
|
|
@ -29,7 +29,7 @@ obj-$(CONFIG_$(PHASE_)TCP_FUNCTION_FASTBOOT) += fastboot_tcp.o
|
||||||
obj-$(CONFIG_CMD_WOL) += wol.o
|
obj-$(CONFIG_CMD_WOL) += wol.o
|
||||||
obj-$(CONFIG_PROT_UDP) += udp.o
|
obj-$(CONFIG_PROT_UDP) += udp.o
|
||||||
obj-$(CONFIG_PROT_TCP) += tcp.o
|
obj-$(CONFIG_PROT_TCP) += tcp.o
|
||||||
obj-$(CONFIG_CMD_WGET) += wget.o
|
obj-$(CONFIG_WGET) += wget.o
|
||||||
|
|
||||||
# Disable this warning as it is triggered by:
|
# Disable this warning as it is triggered by:
|
||||||
# sprintf(buf, index ? "foo%d" : "foo", index)
|
# sprintf(buf, index ? "foo%d" : "foo", index)
|
||||||
|
|
|
@ -5,4 +5,4 @@ obj-$(CONFIG_CMD_DHCP) += dhcp.o
|
||||||
obj-$(CONFIG_CMD_DNS) += dns.o
|
obj-$(CONFIG_CMD_DNS) += dns.o
|
||||||
obj-$(CONFIG_CMD_PING) += ping.o
|
obj-$(CONFIG_CMD_PING) += ping.o
|
||||||
obj-$(CONFIG_CMD_TFTPBOOT) += tftp.o
|
obj-$(CONFIG_CMD_TFTPBOOT) += tftp.o
|
||||||
obj-$(CONFIG_CMD_WGET) += wget.o
|
obj-$(CONFIG_WGET) += wget.o
|
||||||
|
|
Loading…
Add table
Reference in a new issue