diff --git a/SOURCES/seabios-smbios-set-bios-vendor-version-fields-to-Seabios-0.5.patch b/SOURCES/seabios-smbios-set-bios-vendor-version-fields-to-Seabios-0.5.patch new file mode 100644 index 0000000..d564f17 --- /dev/null +++ b/SOURCES/seabios-smbios-set-bios-vendor-version-fields-to-Seabios-0.5.patch @@ -0,0 +1,49 @@ +From e56e4275b3c4e8af573e9beb4b8d45f303e05ecd Mon Sep 17 00:00:00 2001 +From: Gerd Hoffmann +Date: Mon, 28 Jul 2014 12:29:01 +0200 +Subject: [PATCH] smbios: set bios vendor/version fields to Seabios/0.5.1 + +Message-id: <1406550541-26947-2-git-send-email-kraxel@redhat.com> +Patchwork-id: 60265 +O-Subject: [RHEL-7.0.z seabios PATCH 1/1] smbios: set bios vendor/version fields to Seabios/0.5.1 +Bugzilla: 1124216 +RH-Acked-by: Miroslav Rezanina +RH-Acked-by: Laszlo Ersek +RH-Acked-by: Paolo Bonzini + +Mimic rhel6/seabios commit 1389643dad35a63362cd7d8357693f01175ef473. +Affects all 6.x and 7.0 machine types. + +Note: 7.1+ machine types will switch over to the new-style smbios +handling in qemu 2.1 + seabios 1.7.5 (and ovmf), where seabios will +fill in the actual version information instead of the bogous 0.5.1 +which we are using here for backward compatibility reasons. + +Signed-off-by: Gerd Hoffmann +--- + src/smbios.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +Signed-off-by: Miroslav Rezanina +--- + src/smbios.c | 4 ++-- + 1 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/smbios.c b/src/smbios.c +index 4e6df14..2ff4d98 100644 +--- a/src/smbios.c ++++ b/src/smbios.c +@@ -110,8 +110,8 @@ smbios_init_type_0(void *start) + p->header.length = sizeof(struct smbios_type_0); + p->header.handle = 0; + +- load_str_field_with_default(0, vendor_str, CONFIG_APPNAME); +- load_str_field_with_default(0, bios_version_str, CONFIG_APPNAME); ++ load_str_field_with_default(0, vendor_str, "Seabios"); ++ load_str_field_with_default(0, bios_version_str, "0.5.1"); + + p->bios_starting_address_segment = 0xe800; + +-- +1.7.1 + diff --git a/SPECS/seabios.spec b/SPECS/seabios.spec index b576da9..973014c 100644 --- a/SPECS/seabios.spec +++ b/SPECS/seabios.spec @@ -1,6 +1,6 @@ Name: seabios Version: 1.7.2.2 -Release: 12%{?dist} +Release: 12%{?dist}.1 Summary: Open-source legacy BIOS implementation Group: Applications/Emulators @@ -74,6 +74,8 @@ Patch24: seabios-pci-log-pci-windows.patch Patch25: seabios-pci-improve-io-address-space-allocation.patch # For bz#1050775 - [whql]KVM internal error. Suberror: 1 when win8.1-32 guest run HCK jobs Patch26: seabios-Workaround-for-a-win8.1-32-S4-resume-bug.patch +# For bz#1124216 - smbios table 0 vendor string should be Seabios (for rhel6 compatibility) [7.1+7.0.z] +Patch27: seabios-smbios-set-bios-vendor-version-fields-to-Seabios-0.5.patch BuildRequires: python iasl ExclusiveArch: x86_64 @@ -147,6 +149,7 @@ SeaVGABIOS is an open-source VGABIOS implementation. %patch24 -p1 %patch25 -p1 %patch26 -p1 +%patch27 -p1 # Store version to be used echo "%{name}-%{version}-%release" > .version @@ -202,6 +205,11 @@ install -m 0644 binaries/vgabios*.bin $RPM_BUILD_ROOT%{_datadir}/seavgabios %changelog +* Wed Aug 13 2014 Miroslav Rezanina - 1.7.2.2-12.el7_0.1 +- seabios-smbios-set-bios-vendor-version-fields-to-Seabios-0.5.patch [bz#1124216] +- Resolves: bz#1124216 + (smbios table 0 vendor string should be Seabios (for rhel6 compatibility) [7.1+7.0.z]) + * Tue Mar 11 2014 Miroslav Rezanina - 1.7.2.2-12.el7 - seabios-Workaround-for-a-win8.1-32-S4-resume-bug.patch [bz#1050775] - Resolves: bz#1050775