]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
include/config_fallbacks.h: add default for CONFIG_SYS_MAXARGS
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 23 Aug 2017 20:59:03 +0000 (22:59 +0200)
committerTom Rini <trini@konsulko.com>
Sun, 3 Sep 2017 19:30:29 +0000 (15:30 -0400)
CONFIG_SYS_MAXARGS contains the maximum number of arguments accepted
by U-Boot commands. Since the vast majority of the platforms define it
to 16, it makes sense to have a default definition to 16, which will
allow to remove this definition from a significant number of
platforms.

It will allow to remove the default definition from 216 platform .h
files, leaving only 56 platforms with non-default values (15, 24, 32,
48, 64, 96, 128 or 256).

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
include/config_fallbacks.h

index 6a6350e0a14bf8859923dc6a0684e135daeb8c99..46b7a2a6f2b748e0da5f0efdbff5cd7bb18b9c89 100644 (file)
 #define CONFIG_SYS_PBSIZE      (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
 #endif
 
+#ifndef CONFIG_SYS_MAXARGS
+#define CONFIG_SYS_MAXARGS     16
+#endif
+
 #ifndef CONFIG_FIT_SIGNATURE
 #define CONFIG_IMAGE_FORMAT_LEGACY
 #endif