]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Convert CONFIG_TFTP_PORT to Kconfig
authorTom Rini <trini@konsulko.com>
Fri, 18 Mar 2022 12:38:23 +0000 (08:38 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 25 Mar 2022 12:01:15 +0000 (12:01 +0000)
This converts the following to Kconfig:
   CONFIG_TFTP_PORT

Cc: Ramon Fried <rfried.dev@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
README
configs/gurnard_defconfig
configs/snapper9260_defconfig
configs/snapper9g20_defconfig
include/configs/snapper9260.h
include/configs/snapper9g45.h
net/Kconfig

diff --git a/README b/README
index 9cddb1314c9d86c00b9704c701a2c250e0576baf..c704d0a007a85d1b2470d0ed7df19c4e09a9deef 100644 (file)
--- a/README
+++ b/README
@@ -1612,26 +1612,6 @@ The following options need to be configured:
                this is instead controlled by the value of
                /config/load-environment.
 
-- TFTP Fixed UDP Port:
-               CONFIG_TFTP_PORT
-
-               If this is defined, the environment variable tftpsrcp
-               is used to supply the TFTP UDP source port value.
-               If tftpsrcp isn't defined, the normal pseudo-random port
-               number generator is used.
-
-               Also, the environment variable tftpdstp is used to supply
-               the TFTP UDP destination port value.  If tftpdstp isn't
-               defined, the normal port 69 is used.
-
-               The purpose for tftpsrcp is to allow a TFTP server to
-               blindly start the TFTP transfer using the pre-configured
-               target IP address and UDP port. This has the effect of
-               "punching through" the (Windows XP) firewall, allowing
-               the remainder of the TFTP transfer to proceed normally.
-               A better solution is to properly configure the firewall,
-               but sometimes that is not allowed.
-
                CONFIG_STANDALONE_LOAD_ADDR
 
                This option defines a board specific value for the
index 47678e6c5124ad02e40cd487b0bacec33fb927bb..fc6c2b96b7bea6ea0567d24ccc8a6728fd2720e7 100644 (file)
@@ -40,6 +40,7 @@ CONFIG_ENV_OVERWRITE=y
 CONFIG_ENV_IS_IN_NAND=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_NET_RETRY_COUNT=20
+CONFIG_TFTP_PORT=y
 CONFIG_TFTP_TSIZE=y
 CONFIG_AT91_GPIO=y
 CONFIG_GENERIC_ATMEL_MCI=y
index 76b51d9fd4b781630b4bd54012c04f62af5e53bd..04b3f7cdde53476fb7abab00e26b3a684c95e081 100644 (file)
@@ -38,6 +38,7 @@ CONFIG_ENV_OVERWRITE=y
 CONFIG_ENV_IS_IN_NAND=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_NET_RETRY_COUNT=20
+CONFIG_TFTP_PORT=y
 CONFIG_TFTP_TSIZE=y
 CONFIG_AT91_GPIO=y
 CONFIG_CMD_PCA953X=y
index c6eca225e27e663a4de0e7d430637a90802a5f1e..7eb512d92f6c9b3c62932097a4294c1238293fc7 100644 (file)
@@ -37,6 +37,7 @@ CONFIG_ENV_OVERWRITE=y
 CONFIG_ENV_IS_IN_NAND=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_NET_RETRY_COUNT=20
+CONFIG_TFTP_PORT=y
 CONFIG_TFTP_TSIZE=y
 CONFIG_AT91_GPIO=y
 CONFIG_CMD_PCA953X=y
index 2f0309f0ccdebbbd84c1430c3511a908faac90fd..f7ee9dbac3508905b413418c651432a5621738ae 100644 (file)
@@ -37,9 +37,6 @@
 #define CONFIG_SYS_NAND_ENABLE_PIN     AT91_PIN_PC14
 #define CONFIG_SYS_NAND_READY_PIN      AT91_PIN_PC13
 
-/* Ethernet */
-#define CONFIG_TFTP_PORT
-
 /* USB */
 #define CONFIG_USB_ATMEL
 #define CONFIG_USB_ATMEL_CLK_SEL_PLLB
index 72611fe8503d4ebed365b3323c4697194b389d90..9e78fd219ccd65ece5576ebe8b59a4ebdbe16afe 100644 (file)
@@ -38,9 +38,6 @@
 #define CONFIG_SYS_NAND_ENABLE_PIN     AT91_PIN_PC14
 #define CONFIG_SYS_NAND_READY_PIN      AT91_PIN_PC8
 
-/* Ethernet */
-#define CONFIG_TFTP_PORT
-
 /* LCD */
 #define CONFIG_ATMEL_LCD
 #define CONFIG_GURNARD_SPLASH
index 650551606d329ccd8f9d78ec86c8a134f46d1f8e..af6856f7fc3b38d834381329df713e17be51eea2 100644 (file)
@@ -83,6 +83,24 @@ config TFTP_BLOCKSIZE
          almost-MTU block sizes.
          You can also activate CONFIG_IP_DEFRAG to set a larger block.
 
+config TFTP_PORT
+       bool "Set TFTP UDP source/destination ports via the environment"
+       help
+         If this is defined, the environment variable tftpsrcp is used to
+         supply the TFTP UDP source port value.  If tftpsrcp isn't defined,
+         the normal pseudo-random port number generator is used.
+
+         Also, the environment variable tftpdstp is used to supply the TFTP
+         UDP destination port value.  If tftpdstp isn't defined, the normal
+         port 69 is used.
+
+         The purpose for tftpsrcp is to allow a TFTP server to blindly start
+         the TFTP transfer using the pre-configured target IP address and UDP
+         port. This has the effect of "punching through" the (Windows XP)
+         firewall, allowing the remainder of the TFTP transfer to proceed
+         normally.  A better solution is to properly configure the firewall,
+         but sometimes that is not allowed.
+
 config TFTP_WINDOWSIZE
        int "TFTP window size"
        default 1