summaryrefslogtreecommitdiffstats
path: root/buildrom-withgrub
diff options
context:
space:
mode:
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