summaryrefslogtreecommitdiff
path: root/cmd/Kconfig
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-08-27 16:37:55 +0200
committerTom Rini <trini@konsulko.com>2022-09-15 09:55:30 -0400
commit1b3e68203cab4dfdd90d0934ec08762be723f3b1 (patch)
tree1f9532d68122b9c5e6491ee12f35a2b6149fb731 /cmd/Kconfig
parent56ce22c0cd5a9cea09044f62d5f641f38e41f909 (diff)
xyz-modem: Allow to configure initial timeout for loadx and loady
Now when loadx and loady commands could be aborted / cancelled by CTRL+C, allow to configure timeout for initial x/y-modem packet via env variable $loadxy_timeout and by default use value from new compile-time config option CONFIG_CMD_LOADXY_TIMEOUT. Value is in seconds and zero value means infinite timeout. Default value is 90s which is the value used before this change for loadx command. Other load commands loadb and loads already waits infinitely. Same behavior for loadx and loady commands can be achieved by setting $loadxy_timeout or CONFIG_CMD_LOADXY_TIMEOUT to 0. Signed-off-by: Pali Rohár <pali@kernel.org>
Diffstat (limited to 'cmd/Kconfig')
-rw-r--r--cmd/Kconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 37bc64dcfb..08821b0bd4 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -1194,6 +1194,13 @@ config CMD_LOADS
help
Load an S-Record file over serial line
+config CMD_LOADXY_TIMEOUT
+ int "loadxy_timeout"
+ range 0 2000
+ default 90
+ help
+ Initial timeout for loadx and loady commands. Zero means infinity.
+
config CMD_LSBLK
depends on BLK
bool "lsblk - list block drivers and devices"