summaryrefslogtreecommitdiff
path: root/src/include/console/cbmem_console.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/console/cbmem_console.h')
-rw-r--r--src/include/console/cbmem_console.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/console/cbmem_console.h b/src/include/console/cbmem_console.h
index f8b398221e..a8519d28a9 100644
--- a/src/include/console/cbmem_console.h
+++ b/src/include/console/cbmem_console.h
@@ -21,10 +21,11 @@
void cbmemc_init(void);
void cbmemc_tx_byte(unsigned char data);
-#define __CBMEM_CONSOLE_ENABLE__ (CONFIG_CONSOLE_CBMEM && \
+#define __CBMEM_CONSOLE_ENABLE__ (IS_ENABLED(CONFIG_CONSOLE_CBMEM) && \
(ENV_RAMSTAGE || ENV_VERSTAGE || ENV_POSTCAR || \
(IS_ENABLED(CONFIG_EARLY_CBMEM_INIT) && \
- (ENV_ROMSTAGE || (ENV_BOOTBLOCK && CONFIG_BOOTBLOCK_CONSOLE)))\
+ (ENV_ROMSTAGE || \
+ (ENV_BOOTBLOCK && IS_ENABLED(CONFIG_BOOTBLOCK_CONSOLE))))\
))
#if __CBMEM_CONSOLE_ENABLE__