diff options
author | Tero Kristo <kristo@kernel.org> | 2021-05-12 11:03:04 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-06-08 21:38:51 -0400 |
commit | 2509493cc1482b2b07ea6fd883960cd6bc068af5 (patch) | |
tree | 2cb15b0d850dfe5c497e5aafc76a53db40371a94 /net | |
parent | da29243251651e631d916b3554ad1ee57134793b (diff) | |
download | u-boot-2509493cc1482b2b07ea6fd883960cd6bc068af5.zip u-boot-2509493cc1482b2b07ea6fd883960cd6bc068af5.tar.gz u-boot-2509493cc1482b2b07ea6fd883960cd6bc068af5.tar.bz2 |
net: convert TFTP_TSIZE to proper Kconfig option
TFTP transfer size can be used to re-size the TFTP progress bar on
single line based on the server reported file size. The support for
this has been around from 2019, but it was never converted to proper
Kconfig.
While adding this new Kconfig, enable it by default for OMAP2+ and K3
devices also.
Signed-off-by: Tero Kristo <kristo@kernel.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/Kconfig | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/Kconfig b/net/Kconfig index c4b4dae..ba0ca81 100644 --- a/net/Kconfig +++ b/net/Kconfig @@ -74,6 +74,17 @@ config TFTP_WINDOWSIZE before an ack response is required. The default TFTP implementation implies a window size of 1. +config TFTP_TSIZE + bool "Track TFTP transfers based on file size option" + depends on CMD_TFTPBOOT + default y if (ARCH_OMAP2PLUS || ARCH_K3) + help + By default, TFTP progress bar is increased for each received UDP + frame, which can lead into long time being spent for sending + data over the UART. Enabling this option, TFTP queries the file + size from server, and if supported, limits the progress bar to + 50 characters total which fits on single line. + config SERVERIP_FROM_PROXYDHCP bool "Get serverip value from Proxy DHCP response" help |