From 5af75ee7f94ceef1a1162328a3a720bd93bd310c Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Tue, 15 Mar 2016 10:30:59 +0000 Subject: build/roms/seabios: support both text-mode and vesafb mode --- resources/scripts/helpers/build/roms/withseabios_helper | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'resources') diff --git a/resources/scripts/helpers/build/roms/withseabios_helper b/resources/scripts/helpers/build/roms/withseabios_helper index ed96ce2a..6a9eb9e6 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" -- cgit v1.2.3-70-g09d2