回复: [edk2-devel] [PATCH 1/1] MdePkg/BaseRngLibDxe: Add DXE_RUNTIME_DRIVER class to RngLib

gaoliming gaoliming at byosoft.com.cn
Thu Nov 12 01:52:20 UTC 2020


I agree this library instance can be used for RUNTIME driver before boot to
OS. 

Can you let me know which runtime driver consumes it? And, please make sure
the consumer code runs in boot phase only. 

Thanks
Liming
> -----邮件原件-----
> 发件人: bounce+27952+67295+4905953+8761045 at groups.io
> <bounce+27952+67295+4905953+8761045 at groups.io> 代表 Samer
> El-Haj-Mahmoud
> 发送时间: 2020年11月12日 1:38
> 收件人: Pete Batard <pete at akeo.ie>; devel at edk2.groups.io
> 抄送: michael.d.kinney at intel.com; gaoliming at byosoft.com.cn;
> zhiguang.liu at intel.com
> 主题: Re: [edk2-devel] [PATCH 1/1] MdePkg/BaseRngLibDxe: Add
> DXE_RUNTIME_DRIVER class to RngLib
> 
> Reviewed-by: Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud at arm.com>
> 
> > -----Original Message-----
> > From: Pete Batard <pete at akeo.ie>
> > Sent: Wednesday, November 4, 2020 2:04 PM
> > To: devel at edk2.groups.io
> > Cc: michael.d.kinney at intel.com; gaoliming at byosoft.com.cn;
> > zhiguang.liu at intel.com; Samer El-Haj-Mahmoud <Samer.El-Haj-
> > Mahmoud at arm.com>
> > Subject: [PATCH 1/1] MdePkg/BaseRngLibDxe: Add DXE_RUNTIME_DRIVER
> > class to RngLib
> >
> > The Raspberry Pi platform with Secure Boot enabled currently fails to
build
> > with error:
> >
> >   Module type [DXE_RUNTIME_DRIVER] is not supported by library
> instance
> >
> > [/home/appveyor/projects/rpi4/edk2/MdePkg/Library/DxeRngLib/DxeRngLi
> > b.inf]
> >
> > Add the missing class to fix this issue.
> >
> > Signed-off-by: Pete Batard <pete at akeo.ie>
> > ---
> >  MdePkg/Library/DxeRngLib/DxeRngLib.inf | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/MdePkg/Library/DxeRngLib/DxeRngLib.inf
> > b/MdePkg/Library/DxeRngLib/DxeRngLib.inf
> > index 68554ad21146..9c11959f8aeb 100644
> > --- a/MdePkg/Library/DxeRngLib/DxeRngLib.inf
> > +++ b/MdePkg/Library/DxeRngLib/DxeRngLib.inf
> > @@ -14,7 +14,7 @@ [Defines]
> >    FILE_GUID       = FF9F84C5-A33E-44E3-9BB5-0D654B2D4149
> >    MODULE_TYPE     = DXE_DRIVER
> >    VERSION_STRING  = 1.0
> > -  LIBRARY_CLASS   = RngLib|DXE_DRIVER UEFI_APPLICATION
> UEFI_DRIVER
> > +  LIBRARY_CLASS   = RngLib|DXE_DRIVER DXE_RUNTIME_DRIVER
> > UEFI_APPLICATION UEFI_DRIVER
> >
> >  [Packages]
> >    MdePkg/MdePkg.dec
> > --
> > 2.21.0.windows.1
> 
> IMPORTANT NOTICE: The contents of this email and any attachments are
> confidential and may also be privileged. If you are not the intended
recipient,
> please notify the sender immediately and do not disclose the contents to
any
> other person, use it for any purpose, or store or copy the information in
any
> medium. Thank you.
> 
> 
> 
> 





-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#67338): https://edk2.groups.io/g/devel/message/67338
Mute This Topic: https://groups.io/mt/78198050/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