From: Gerd Hoffmann Date: Thu, 13 Jun 2013 05:42:58 +0000 (+0200) Subject: tweak coreboot qemu detection X-Git-Tag: rel-1.7.3~3 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=95983866a2f2a17095a9bdc6e5aa610b0586560d;p=seabios.git 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 --- 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);