summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/cbmem_console.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/cbmem_console.c b/src/lib/cbmem_console.c
index ac1d8bbd7e..fec11f7564 100644
--- a/src/lib/cbmem_console.c
+++ b/src/lib/cbmem_console.c
@@ -53,7 +53,13 @@ static struct cbmem_console car_cbmem_console CAR_CBMEM;
* to be concatenated with the CBMEM console buffer contents accumulated
* during the ROM stage, once CBMEM becomes available at RAM stage.
*/
-static u8 static_console[40000];
+
+#if CONFIG_DYNAMIC_CBMEM
+#define STATIC_CONSOLE_SIZE 1024
+#else
+#define STATIC_CONSOLE_SIZE 40000
+#endif
+static u8 static_console[STATIC_CONSOLE_SIZE];
#endif
static inline struct cbmem_console *current_console(void)