From 31ae615a38d700faee56d8e65d0edf881208b765 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 22 Sep 2026 11:49:02 +0100 Subject: 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 --- include/fw/rom.sh | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.1