[edk2-devel] [PATCH 1/1] EmbeddedPkg: add TimeBaseLib resolution to EmbeddedPkg.dsc

Leif Lindholm leif at nuviainc.com
Fri Jan 8 14:15:26 UTC 2021


On Thu, Jan 07, 2021 at 21:25:17 +0100, Laszlo Ersek wrote:
> On 01/07/21 20:41, Leif Lindholm wrote:
> > Commit 55ee36b0c490
> > ("EmbeddedPkg/RealTimeClockRuntimeDxe: Use helper functions from TimeBaseLib")
> > added a TimeBaseLib dependency to RealTimeClockRuntimeDxe, which now breaks
> > build of EmbeddedPkg.dsc.
> > 
> > Add a resolution for EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf.
> > 
> > Cc: Ard Biesheuvel <ard.biesheuvel at arm.com>
> > Cc: Nhi Pham <nhi at os.amperecomputing.com>
> > Signed-off-by: Leif Lindholm <leif at nuviainc.com>
> > ---
> >  EmbeddedPkg/EmbeddedPkg.dsc | 2 ++
> >  1 file changed, 2 insertions(+)
> > 
> > diff --git a/EmbeddedPkg/EmbeddedPkg.dsc b/EmbeddedPkg/EmbeddedPkg.dsc
> > index e88d76ab2f04..8e83e50c3ef0 100644
> > --- a/EmbeddedPkg/EmbeddedPkg.dsc
> > +++ b/EmbeddedPkg/EmbeddedPkg.dsc
> > @@ -103,6 +103,8 @@ [LibraryClasses.common]
> >    DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
> >    DtPlatformDtbLoaderLib|EmbeddedPkg/Library/DxeDtPlatformDtbLoaderLibDefault/DxeDtPlatformDtbLoaderLibDefault.inf
> >  
> > +  TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf
> > +
> >  [LibraryClasses.common.DXE_DRIVER]
> >    PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
> >    ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
> > 
> 
> Reviewed-by: Laszlo Ersek <lersek at redhat.com>

Thanks.
Apologies for missing your R-b on the patch I just pushed.

> A similar patch is needed for "OvmfPkg/OvmfXen.dsc" please:
> 
> OvmfPkg/OvmfXen.dsc(...): error 4000: Instance of library class [TimeBaseLib] is not found
>         in [EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf] [X64]
>         consumed by module [EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf]

Agh, I mistakenly assumed we had only ARM consumers of that lib in the
main repo. Next time I'll actually grep. Patch sent.

/
    Leif

> Thanks,
> Laszlo
> 


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#70047): https://edk2.groups.io/g/devel/message/70047
Mute This Topic: https://groups.io/mt/79507127/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-





More information about the edk2-devel-archive mailing list