From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: redhat.com, ip: 209.132.183.28, mailfrom: lersek@redhat.com) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by groups.io with SMTP; Thu, 13 Jun 2019 07:15:24 -0700 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 06ACD300740D; Thu, 13 Jun 2019 14:15:06 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-117-127.ams2.redhat.com [10.36.117.127]) by smtp.corp.redhat.com (Postfix) with ESMTP id 32BEC5427E; Thu, 13 Jun 2019 14:15:03 +0000 (UTC) Subject: Re: [edk2-devel] [PATCH v2 07/10] OvmfPkg/Csm/LegacyBiosDxe: Update to make it build for OVMF To: devel@edk2.groups.io, hao.a.wu@intel.com Cc: David Woodhouse , Ray Ni , Jordan Justen , Ard Biesheuvel References: <20190527030350.11996-1-hao.a.wu@intel.com> <20190527030350.11996-8-hao.a.wu@intel.com> From: "Laszlo Ersek" Message-ID: <88a238ac-599d-432b-3b2e-94e00bd3325f@redhat.com> Date: Thu, 13 Jun 2019 16:15:02 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20190527030350.11996-8-hao.a.wu@intel.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Thu, 13 Jun 2019 14:15:13 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 05/27/19 05:03, Wu, Hao A wrote: > REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1811 > > This commit will update the driver's INF file to: > > A) Assign a new file GUID; > B) Consume the PCDs duplicated in OvmfPkg DEC file; > C) Remove the IntelFramework[Module]Pkg DEC file dependency. > > Please note that a subsequent commit (final patch of the series) will: > > Replace the use of LegacyBiosDxe in IntelFrameworkModulePkg with the one > copied in OvmfPkg within DSC/FDF files. > > Cc: David Woodhouse > Cc: Ray Ni > Cc: Jordan Justen > Cc: Laszlo Ersek > Cc: Ard Biesheuvel > Signed-off-by: Hao A Wu > --- > OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf | 22 +++++++++----------- > 1 file changed, 10 insertions(+), 12 deletions(-) > > diff --git a/OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf b/OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf > index 471d37365c..f6379dcc46 100644 > --- a/OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf > +++ b/OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf > @@ -3,7 +3,7 @@ > # > # This driver installs Legacy Bios Protocol to support CSM module work in EFI system. > # > -# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
> +# Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.
> # > # SPDX-License-Identifier: BSD-2-Clause-Patent > # > @@ -13,7 +13,7 @@ [Defines] > INF_VERSION = 0x00010005 > BASE_NAME = LegacyBiosDxe > MODULE_UNI_FILE = LegacyBiosDxe.uni > - FILE_GUID = F122A15C-C10B-4d54-8F48-60F4F06DD1AD > + FILE_GUID = 46482D14-7CA1-4977-9DDB-64D747E13DE6 > MODULE_TYPE = DXE_DRIVER > VERSION_STRING = 1.0 > > @@ -50,9 +50,7 @@ [Sources.X64] > [Packages] > MdePkg/MdePkg.dec > MdeModulePkg/MdeModulePkg.dec > - IntelFrameworkPkg/IntelFrameworkPkg.dec > - IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec > - > + OvmfPkg/OvmfPkg.dec > > [LibraryClasses] > DevicePathLib > @@ -116,13 +114,13 @@ [Protocols] > gEdkiiIoMmuProtocolGuid ## CONSUMES > > [Pcd] > - gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLegacyBiosCacheLegacyRegion ## CONSUMES > - gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdEbdaReservedMemorySize ## CONSUMES > - gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdEndOpromShadowAddress ## SOMETIMES_CONSUMES > - gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLowPmmMemorySize ## CONSUMES > - gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdHighPmmMemorySize ## CONSUMES > - gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdOpromReservedMemoryBase ## CONSUMES > - gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdOpromReservedMemorySize ## CONSUMES > + gUefiOvmfPkgTokenSpaceGuid.PcdLegacyBiosCacheLegacyRegion ## CONSUMES > + gUefiOvmfPkgTokenSpaceGuid.PcdEbdaReservedMemorySize ## CONSUMES > + gUefiOvmfPkgTokenSpaceGuid.PcdEndOpromShadowAddress ## SOMETIMES_CONSUMES > + gUefiOvmfPkgTokenSpaceGuid.PcdLowPmmMemorySize ## CONSUMES > + gUefiOvmfPkgTokenSpaceGuid.PcdHighPmmMemorySize ## CONSUMES > + gUefiOvmfPkgTokenSpaceGuid.PcdOpromReservedMemoryBase ## CONSUMES > + gUefiOvmfPkgTokenSpaceGuid.PcdOpromReservedMemorySize ## CONSUMES > > [Depex] > gEfiLegacyRegion2ProtocolGuid AND gEfiLegacyInterruptProtocolGuid AND gEfiLegacyBiosPlatformProtocolGuid AND gEfiLegacy8259ProtocolGuid AND gEfiGenericMemTestProtocolGuid AND gEfiCpuArchProtocolGuid AND gEfiTimerArchProtocolGuid AND gEfiVariableWriteArchProtocolGuid > Reviewed-by: Laszlo Ersek