summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-09-22 11:49:02 +0100
committerLeah Rowe <leah@libreboot.org>2026-09-22 11:50:09 +0100
commit31ae615a38d700faee56d8e65d0edf881208b765 (patch)
tree153406310644385cbbd65fd5f2e2ef45e8b91ce4 /include
parentb1aad228e8feef8e9854f976f6a2d3bf0203d299 (diff)
rom.sh: only use edk2 on libgfx/cbfb or fspgop
don't use it on vgarom or textmode it's assumed that on vgarom mode, which we have only ever used once anyway, it'll boot in text mode. "normal" is allowed, because that's on systems with only a graphics card, where presumably a gop rom would be present. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rw-r--r--include/fw/rom.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/fw/rom.sh b/include/fw/rom.sh
index 84f2e2bb..284616e4 100644
--- a/include/fw/rom.sh
+++ b/include/fw/rom.sh
@@ -177,6 +177,12 @@ mkcorebootbin_real()
[ "$payload_grub" != "y" ] && \
payload_grubsea="n"
+ if [ "$initmode" != "libgfxinit" ] || \
+ [ "$displaymode" != "corebootfb" ]; then
+ [ "$initmode" != "fspgop" ] && [ "$initmode" != "normal" ] && \
+ payload_edk2="" # disable on txtmode
+ fi
+
$if_not_skip_build prep_tmprom
if grep "CONFIG_PAYLOAD_NONE=y" "$buildcfg"; then