aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2013-06-13 07:42:58 +0200
committerKevin O'Connor <kevin@koconnor.net>2013-06-13 20:50:15 -0400
commit95983866a2f2a17095a9bdc6e5aa610b0586560d (patch)
tree2a6c1b90cbff77b6f7c9cdf8569863edab06418a /src
parenta88c19772a0fe5124d3d282931b17461bac022b1 (diff)
downloadseabios-hppa-95983866a2f2a17095a9bdc6e5aa610b0586560d.zip
seabios-hppa-95983866a2f2a17095a9bdc6e5aa610b0586560d.tar.gz
seabios-hppa-95983866a2f2a17095a9bdc6e5aa610b0586560d.tar.bz2
tweak coreboot qemu detection
I have patches for coreboot in the queue adding q35 support there, which will change the mainboard names (adding the detected chipset). Make SeaBIOS check the mainboard name starts with "QEMU" instead of doing a full string match to handle this. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/coreboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coreboot.c b/src/coreboot.c
index 2c8bd2d..6ad4cfc 100644
--- a/src/coreboot.c
+++ b/src/coreboot.c
@@ -167,7 +167,7 @@ coreboot_preinit(void)
CBvendor = &cbmb->strings[cbmb->vendor_idx];
CBpart = &cbmb->strings[cbmb->part_idx];
if (strcmp(CBvendor, "Emulation") == 0 &&
- strcmp(CBpart, "QEMU x86") == 0) {
+ memcmp(CBpart, "QEMU", 4) == 0) {
PlatformRunningOn |= PF_QEMU;
}
dprintf(1, "Found mainboard %s %s\n", CBvendor, CBpart);