From d93b3a38d5f847ec7420c86c98286c5d5d55c788 Mon Sep 17 00:00:00 2001 From: Jonas Karlman Date: Tue, 6 Jan 2026 20:34:30 +0000 Subject: 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 Acked-by: Jerome Forissier --- include/env_default.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/env_default.h b/include/env_default.h index 7f8dc1c35a7..014873e304d 100644 --- a/include/env_default.h +++ b/include/env_default.h @@ -58,6 +58,9 @@ const char default_environment[] = { #ifdef CONFIG_USE_SERVERIP "serverip=" CONFIG_SERVERIP "\0" #endif +#ifdef CONFIG_USE_TFTPSERVERIP + "tftpserverip=" CONFIG_TFTPSERVERIP "\0" +#endif #ifdef CONFIG_SYS_DISABLE_AUTOLOAD "autoload=0\0" #endif -- cgit v1.2.3