summaryrefslogtreecommitdiff
path: root/src/device/Kconfig
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-06-16 19:49:53 +0200
committerNico Huber <nico.h@gmx.de>2020-06-18 21:15:02 +0000
commit4cb2f7684e6ec746d7de1b51f9c86935f9d3d64f (patch)
treee0acaeec4381b08868d34e7403b0bacf79f44a37 /src/device/Kconfig
parentf13b6ebc89706b8298f6eea3ce70d9f1f9e020f0 (diff)
src/device/Kconfig: Introduce WANT_LINEAR_FRAMEBUFFER
This decouples the linear framebuffer type from the symbols needing it. Change-Id: I733e630e0aa2fb2947d079caef26253ce443fe91 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/42432 Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/device/Kconfig')
-rw-r--r--src/device/Kconfig11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/device/Kconfig b/src/device/Kconfig
index f7f4b90c5e..6bb326506f 100644
--- a/src/device/Kconfig
+++ b/src/device/Kconfig
@@ -401,12 +401,15 @@ config FRAMEBUFFER_VESA_MODE
default 0x118 if FRAMEBUFFER_VESA_MODE_USER
endif # FRAMEBUFFER_SET_VESA_MODE
+config WANT_LINEAR_FRAMEBUFFER
+ bool
+ default y if CHROMEOS
+ default y if PAYLOAD_TIANOCORE
+
choice
prompt "Framebuffer mode"
- default VBE_LINEAR_FRAMEBUFFER if HAVE_VBE_LINEAR_FRAMEBUFFER && CHROMEOS
- default GENERIC_LINEAR_FRAMEBUFFER if HAVE_LINEAR_FRAMEBUFFER && CHROMEOS
- default VBE_LINEAR_FRAMEBUFFER if HAVE_VBE_LINEAR_FRAMEBUFFER && PAYLOAD_TIANOCORE
- default GENERIC_LINEAR_FRAMEBUFFER if HAVE_LINEAR_FRAMEBUFFER && PAYLOAD_TIANOCORE
+ default VBE_LINEAR_FRAMEBUFFER if HAVE_VBE_LINEAR_FRAMEBUFFER && WANT_LINEAR_FRAMEBUFFER
+ default GENERIC_LINEAR_FRAMEBUFFER if HAVE_LINEAR_FRAMEBUFFER && WANT_LINEAR_FRAMEBUFFER
default VGA_TEXT_FRAMEBUFFER
config VGA_TEXT_FRAMEBUFFER