Blame SOURCES/seabios-smbios-set-bios-vendor-version-fields-to-Seabios-0.5.patch

51d367
From 1141076a607c566707186d5e6e317d79b16b2661 Mon Sep 17 00:00:00 2001
ce227c
From: Gerd Hoffmann <kraxel@redhat.com>
51d367
Date: Mon, 28 Jul 2014 12:14:11 +0200
ce227c
Subject: [PATCH] smbios: set bios vendor/version fields to Seabios/0.5.1
ce227c
51d367
Message-id: <1406549651-26021-2-git-send-email-kraxel@redhat.com>
51d367
Patchwork-id: 60264
51d367
O-Subject: [RHEL-7.1 seabios PATCH 1/1] smbios: set bios vendor/version fields to Seabios/0.5.1
51d367
Bugzilla: 1123299
ce227c
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
ce227c
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
ce227c
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
ce227c
ce227c
Mimic rhel6/seabios commit 1389643dad35a63362cd7d8357693f01175ef473.
ce227c
Affects all 6.x and 7.0 machine types.
ce227c
ce227c
Note: 7.1+ machine types will switch over to the new-style smbios
ce227c
handling in qemu 2.1 + seabios 1.7.5 (and ovmf), where seabios will
ce227c
fill in the actual version information instead of the bogous 0.5.1
ce227c
which we are using here for backward compatibility reasons.
ce227c
ce227c
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ce227c
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
ce227c
---
51d367
 src/fw/smbios.c |    4 ++--
ce227c
 1 files changed, 2 insertions(+), 2 deletions(-)
ce227c
51d367
diff --git a/src/fw/smbios.c b/src/fw/smbios.c
51d367
index dba0541..465b9ee 100644
51d367
--- a/src/fw/smbios.c
51d367
+++ b/src/fw/smbios.c
51d367
@@ -174,8 +174,8 @@ smbios_init_type_0(void *start)
ce227c
     p->header.length = sizeof(struct smbios_type_0);
ce227c
     p->header.handle = 0;
ce227c
 
51d367
-    load_str_field_with_default(0, vendor_str, BUILD_APPNAME);
51d367
-    load_str_field_with_default(0, bios_version_str, BUILD_APPNAME);
ce227c
+    load_str_field_with_default(0, vendor_str, "Seabios");
ce227c
+    load_str_field_with_default(0, bios_version_str, "0.5.1");
ce227c
 
ce227c
     p->bios_starting_address_segment = 0xe800;
ce227c
 
ce227c
-- 
ce227c
1.7.1
ce227c