回复: [edk2-discuss] Is the PCD database static?


gaoliming
 

Aladyshev:
Yes. Pcd database is static. It is generated on the build time. Pcd entry can't be added/removed at runtime.

Thanks
Liming

-----邮件原件-----
发件人: discuss@edk2.groups.io <discuss@edk2.groups.io> 代表
Konstantin Aladyshev
发送时间: 2022年1月22日 20:54
收件人: discuss <discuss@edk2.groups.io>
主题: [edk2-discuss] Is the PCD database static?

Hello!

I'm trying to understand Dynamic PCDs in EDK2.
Is the PCD database static
(https://github.com/tianocore/edk2/blob/master/MdeModulePkg/Universal/
PCD/Dxe/Service.c)?
I mean is it possible to add new PCD entries at runtime?
For example I have compiled OVMF and run it under QEMU. Is it possible
to create an UEFI_APPLICATION that would add some new PCD to the
database, and another UEFI_APPLICATION that would read that PCD from
the database?

Best regards,
Konstantin Aladyshev



Join discuss@edk2.groups.io to automatically receive all group messages.