summaryrefslogtreecommitdiff
path: root/src/lib/fallback_boot.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/fallback_boot.c')
-rw-r--r--src/lib/fallback_boot.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/fallback_boot.c b/src/lib/fallback_boot.c
index 1c1255776b..443f209b1d 100644
--- a/src/lib/fallback_boot.c
+++ b/src/lib/fallback_boot.c
@@ -6,11 +6,13 @@ void __attribute__((weak)) set_boot_successful(void) { }
void boot_successful(void)
{
-#if CONFIG_FRAMEBUFFER_SET_VESA_MODE && !CONFIG_FRAMEBUFFER_KEEP_VESA_MODE
- void vbe_textmode_console(void);
+ if (IS_ENABLED(CONFIG_FRAMEBUFFER_SET_VESA_MODE) &&
+ IS_ENABLED(CONFIG_VGA_TEXT_FRAMEBUFFER)) {
+ void vbe_textmode_console(void);
+
+ vbe_textmode_console();
+ }
- vbe_textmode_console();
-#endif
/* Remember this was a successful boot */
set_boot_successful();