summaryrefslogtreecommitdiffstats
path: root/buildrom-withgrub
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-01-29 23:59:16 (EST)
committer Francis Rowe <info@gluglug.org.uk>2015-01-29 23:59:16 (EST)
commit8319b87ffe2e9b89a69223c088c9a33786e9d486 (patch)
tree159890a2c68c511c806e9ad1cf3cef9ce1cae3d9 /buildrom-withgrub
parent4bb4474878d4ef71021de73d1be61640810f6599 (diff)
downloadlibreboot-8319b87ffe2e9b89a69223c088c9a33786e9d486.zip
libreboot-8319b87ffe2e9b89a69223c088c9a33786e9d486.tar.gz
libreboot-8319b87ffe2e9b89a69223c088c9a33786e9d486.tar.bz2
Add QEMU (i440fx/piix4) support to libreboot
Diffstat (limited to 'buildrom-withgrub')
-rwxr-xr-xbuildrom-withgrub13
1 files changed, 11 insertions, 2 deletions
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