From 8319b87ffe2e9b89a69223c088c9a33786e9d486 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Thu, 29 Jan 2015 23:59:16 -0500 Subject: Add QEMU (i440fx/piix4) support to libreboot --- (limited to 'buildrom-withgrub') diff --git a/buildrom-withgrub b/buildrom-withgrub index 04108bf..dce4bbb 100755 --- a/buildrom-withgrub +++ b/buildrom-withgrub @@ -36,8 +36,17 @@ cd coreboot # Build ROM images with text-mode and corebootfb modes. # --------------------------------------------------------------------------------------------------------------- -cp ../resources/libreboot/config/"$1"/config config_txtmode -sed 's/# CONFIG_FRAMEBUFFER_KEEP_VESA_MODE is not set/CONFIG_FRAMEBUFFER_KEEP_VESA_MODE=y/' < config_txtmode > config_vesafb +if [ "$1" = "qemu_i440fx_piix4" ] +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/"$1"/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/"$1"/config config_txtmode + sed 's/# CONFIG_FRAMEBUFFER_KEEP_VESA_MODE is not set/CONFIG_FRAMEBUFFER_KEEP_VESA_MODE=y/' < config_txtmode > config_vesafb +fi for romtype in txtmode vesafb do -- cgit v0.9.1