summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2016-03-15 06:30:59 (EDT)
committer Francis Rowe <info@gluglug.org.uk>2016-03-15 06:30:59 (EDT)
commit5af75ee7f94ceef1a1162328a3a720bd93bd310c (patch)
tree42c08f413aa86ce5bb099727fed08d95a1b1421d
parent8515852f6be032b22844b78e7daac199a8bc5c90 (diff)
downloadlibreboot-5af75ee7f94ceef1a1162328a3a720bd93bd310c.zip
libreboot-5af75ee7f94ceef1a1162328a3a720bd93bd310c.tar.gz
libreboot-5af75ee7f94ceef1a1162328a3a720bd93bd310c.tar.bz2
build/roms/seabios: support both text-mode and vesafb mode
-rwxr-xr-xresources/scripts/helpers/build/roms/withseabios_helper16
1 files changed, 14 insertions, 2 deletions
diff --git a/resources/scripts/helpers/build/roms/withseabios_helper b/resources/scripts/helpers/build/roms/withseabios_helper
index ed96ce2..6a9eb9e 100755
--- a/resources/scripts/helpers/build/roms/withseabios_helper
+++ b/resources/scripts/helpers/build/roms/withseabios_helper
@@ -84,11 +84,23 @@ do
fi
fi
+ if [ "${boardtarget}" = "qemu_i440fx_piix4" ] || [ "${boardtarget}" = "qemu_q35_ich9" ]
+ then
+ # assume that the default config enable framebuffer mode, duplicate and patch for text-mode
+ # necessary, otherwise it will ask you to enter the Y/X resolution of the framebuffer at build time
+ cp "../../../resources/libreboot/config/seabios/${boardtarget}/config" "config_vesafb"
+ sed 's/CONFIG_FRAMEBUFFER_KEEP_VESA_MODE=y/# CONFIG_FRAMEBUFFER_KEEP_VESA_MODE is not set/' < "config_vesafb" > "config_txtmode"
+ else
+ # assume that the default config enables text-mode, duplicate and patch for framebuffer mode
+ cp "../../../resources/libreboot/config/seabios/${boardtarget}/config" "config_txtmode"
+ sed 's/# CONFIG_FRAMEBUFFER_KEEP_VESA_MODE is not set/CONFIG_FRAMEBUFFER_KEEP_VESA_MODE=y/' < "config_txtmode" > "config_vesafb"
+ fi
+
# Build coreboot ROM image
make clean
- cp "../../../resources/libreboot/config/seabios/${boardtarget}/config" ".config"
cp "../../../seabios/out/bios.bin.elf" "seabios.elf"
- make -j${cores}
+ mv "config_${romtype}" .config
+ make -j${cores}
rm -f "seabios.elf"
mv "build/coreboot.rom" "${boardtarget}_${romtype}.rom"