libreboot

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 5af75ee7f94ceef1a1162328a3a720bd93bd310c
parent 8515852f6be032b22844b78e7daac199a8bc5c90
Author: Francis Rowe <info@gluglug.org.uk>
Date:   Tue, 15 Mar 2016 10:30:59 +0000

build/roms/seabios: support both text-mode and vesafb mode

Diffstat:
resources/scripts/helpers/build/roms/withseabios_helper | 16++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)

diff --git 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"