]> git.baikalelectronics.ru Git - uboot.git/commit
include/config_fallbacks.h: add default for CONFIG_SYS_CBSIZE
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 23 Aug 2017 20:58:59 +0000 (22:58 +0200)
committerTom Rini <trini@konsulko.com>
Sun, 3 Sep 2017 15:04:52 +0000 (11:04 -0400)
commit854029e265e09abcf9db9536114dd40a23dcf2af
tree35be523dee46b5e4d3321a53abfe055adb955d46
parent816778475e39f1ab71f5898c1a9edd7f59166f86
include/config_fallbacks.h: add default for CONFIG_SYS_CBSIZE

CONFIG_SYS_CBSIZE contains the buffer size for input for the
console. The vast majority of platforms define them to some reasonable
value (256, 512 or 1024 bytes), and it is quite annoying to repeat
this definition for all platforms while it isn't really HW-related.

Therefore, let's provide a sane fallback value in config_fallbacks.h,
so that platforms can rely on it instead of having to explicitly
define it.

We use 1024 when KGDB is enabled, and 256 otherwise, which is what the
majority of the platforms are doing.

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