]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
config_fallbacks: Add a default entry for CONFIG_SYS_PBSIZE
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 27 Nov 2014 22:41:44 +0000 (20:41 -0200)
committerStefano Babic <sbabic@denx.de>
Mon, 1 Dec 2014 09:20:21 +0000 (10:20 +0100)
Entering the maximum number of characters defined by CONFIG_SYS_CBSIZE into
the console and hitting enter afterwards, causes a hang in the system because
CONFIG_SYS_PBSIZE is not capable of storing the characters of the error message:
"Unknown command '' - try 'help'".

Provide a default size for CONFIG_SYS_PBSIZE so that it can store the error
message and allows the error message to be printed correctly with no hang.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
include/config_fallbacks.h

index 7d8daa2b8e5332f421b9bb616812d494927f1c71..508db5626bbeb9fa533ce2ee0ee3731e664659d5 100644 (file)
 #define CONFIG_SYS_PROMPT      "=> "
 #endif
 
+#ifndef CONFIG_SYS_PBSIZE
+#define CONFIG_SYS_PBSIZE      (CONFIG_SYS_CBSIZE + 128)
+#endif
+
 #ifndef CONFIG_FIT_SIGNATURE
 #define CONFIG_IMAGE_FORMAT_LEGACY
 #endif