tftp: make TFTP ports unconditionally configurable
authorAlvin Šipraga <alvin@pqrs.dk>
Thu, 2 Oct 2025 09:43:36 +0000 (11:43 +0200)
committerJerome Forissier <jerome.forissier@linaro.org>
Wed, 22 Oct 2025 09:09:24 +0000 (11:09 +0200)
commitcaa2ad6f8c8cc4c295c77aaff464c580d52c3ba6
tree4c95c8477bfb6444c260e5ec8fdd1a3fa143fb93
parent813a0df27a8af587bd25a6a4719f68066b370091
tftp: make TFTP ports unconditionally configurable

A few lines of code being guarded by the CONFIG_TFTP_PORT option seems
an unnecessary restriction on the TFTP support provided by a vanilla
U-Boot image. In cases where the TFTP server cannot run as superuser -
and hence cannot run on the well-known port 69 - this quirk incurs a
full reconfiguration and rebuild of the bootloader only in order to
select the appropriate destination port.

Remove the CONFIG_TFTP_PORT option entirely and make the tftpdstp and
tftpsrcp variables always have an effect. Their being unset will mean
that U-Boot behaves the same as if CONFIG_TFTP_PORT was unset. Update
the documentation accordingly. And fix up the single board which was
originally enabling this option.

Signed-off-by: Alvin Šipraga <alvin@pqrs.dk>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
configs/gurnard_defconfig
doc/usage/cmd/tftpput.rst
net/Kconfig
net/tftp.c