diff options
author | Francis Rowe <info@gluglug.org.uk> | 2016-03-15 10:30:59 +0000 |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2016-03-15 10:30:59 +0000 |
commit | 5af75ee7f94ceef1a1162328a3a720bd93bd310c (patch) | |
tree | 42c08f413aa86ce5bb099727fed08d95a1b1421d /resources/scripts | |
parent | 8515852f6be032b22844b78e7daac199a8bc5c90 (diff) | |
download | librebootfr-5af75ee7f94ceef1a1162328a3a720bd93bd310c.tar.gz librebootfr-5af75ee7f94ceef1a1162328a3a720bd93bd310c.zip |
build/roms/seabios: support both text-mode and vesafb mode
Diffstat (limited to 'resources/scripts')
-rwxr-xr-x | resources/scripts/helpers/build/roms/withseabios_helper | 16 |
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 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" |