include/config_fallbacks.h: change fallback for CONFIG_SYS_PBSIZE
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 23 Aug 2017 20:59:01 +0000 (22:59 +0200)
committerTom Rini <trini@konsulko.com>
Sun, 3 Sep 2017 19:30:27 +0000 (15:30 -0400)
Most of the platforms are using CONFIG_SYS_CBSIZE +
sizeof(CONFIG_SYS_PROMPT) + 16 as their value for CONFIG_SYS_PBSIZE,
so let's adopt this for the fallback value of CONFIG_SYS_PBSIZE.

This will allow us to drop an explicit definition of CONFIG_SYS_PBSIZE
from a large number of platforms.

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

index 07df99664c48753390a0bb134b46d8d24341de2c..6a6350e0a14bf8859923dc6a0684e135daeb8c99 100644 (file)
@@ -82,7 +82,7 @@
 #endif
 
 #ifndef CONFIG_SYS_PBSIZE
-#define CONFIG_SYS_PBSIZE      (CONFIG_SYS_CBSIZE + 128)
+#define CONFIG_SYS_PBSIZE      (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
 #endif
 
 #ifndef CONFIG_FIT_SIGNATURE