From: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Date: Mon, 15 Jan 2024 13:46:56 +0000 (+0100)
Subject: cmd: increase default for SYS_MAXARGS
X-Git-Tag: v2025.01-rc5-pxa1908~664^2~14
X-Git-Url: http://git.dujemihanovic.xyz/html/static/git-logo.png?a=commitdiff_plain;h=cc7e3d1929342f9beb998933e26ce5e89d52a8fb;p=u-boot.git

cmd: increase default for SYS_MAXARGS

The value of CONFIG SYS_MAXARGS limits the usability of the 'for' command.
The current default of 16 is too low for some use case. Cf.
https://bugs.launchpad.net/snap-core18/+bug/1910094

Increase the default to 64.

Reported-by: Dave Jones <dave.jones@canonical.com>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
---

diff --git a/cmd/Kconfig b/cmd/Kconfig
index 58ab357c70..06aae30df3 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -94,7 +94,7 @@ config SYS_PROMPT_HUSH_PS2
 
 config SYS_MAXARGS
 	int "Maximum number arguments accepted by commands"
-	default 16
+	default 64
 
 config SYS_XTRACE
 	bool "Command execution tracer"