diff options
| author | Jonas Karlman <[email protected]> | 2026-01-06 20:34:30 +0000 |
|---|---|---|
| committer | Jerome Forissier <[email protected]> | 2026-02-04 09:04:36 +0100 |
| commit | d93b3a38d5f847ec7420c86c98286c5d5d55c788 (patch) | |
| tree | 09391591b844afd3a5eae86b8abc7fb5149d3781 /net | |
| parent | 72d4e94b2ec3099a312c85c4b8f5cdbc920416ff (diff) | |
net: lwip: add TFTPSERVERIP Kconfig option
With the legacy networking stack, it is possible to use USE_SERVERIP,
SERVERIP and BOOTP_PREFER_SERVERIP Kconfg options to force use of a
specific TFTP server ip.
Using the lwIP networking stack use of the 'tftpserverip' environment
variable provide the closest equivalent functionality.
Add USE_TFTPSERVERIP and TFTPSERVERIP Kconfig options that can be used
to add the 'tftpserverip' environment variable to force use of a
specific TFTP server ip.
Signed-off-by: Jonas Karlman <[email protected]>
Acked-by: Jerome Forissier <[email protected]>
Diffstat (limited to 'net')
| -rw-r--r-- | net/lwip/Kconfig | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net/lwip/Kconfig b/net/lwip/Kconfig index 5789766fe62..0cfd3eb2684 100644 --- a/net/lwip/Kconfig +++ b/net/lwip/Kconfig @@ -72,4 +72,16 @@ config LWIP_TCP_WND but QEMU with "-net user" needs no more than a few KB or the transfer will stall and eventually time out. +config USE_TFTPSERVERIP + bool "Set a default 'tftpserverip' value in the environment" + depends on CMD_TFTPBOOT + help + Defines a default value for the IP address of a TFTP server to + contact when using the "tftpboot" command. (Environment variable + "tftpserverip") + +config TFTPSERVERIP + string "Value of the default 'tftpserverip' value in the environment" + depends on USE_TFTPSERVERIP + endif # NET_LWIP |
