]> git.proxmox.com Git - mirror_edk2.git/commit
UefiPayloadPkg: Use DynamicEx instead of Dynamic to pass PCD across binary
authorZhiguang Liu <zhiguang.liu@intel.com>
Wed, 2 Jun 2021 14:30:08 +0000 (22:30 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 16 Jun 2021 05:20:19 +0000 (05:20 +0000)
commitfa24b6ed2679ce238de312204ff516928c34e631
tree49cbcc30a6caa250e902c4adc3c9b4b7ca0c8068
parent8c0d678063833a7b2b81462b78de3d8d70de9a5c
UefiPayloadPkg: Use DynamicEx instead of Dynamic to pass PCD across binary

When passing PCD database from Edk2 boot loader to Universal Payload, the
local token number in boot loader PCD database can be different with that
in Payload PCD database.
Dynamic PCD directly use local token number, while DynamicEx will search
token number by Guid and ExTokenNumber, which are unique pair and can make
sure finding the correct token number in boot loader's PCD database.
Therefore, using DynamicEx instead of Dynamic.
Also, explicitly define some PCDs as DynamicEx, or their default type will
be Dynamic

Cc: Maurice Ma <maurice.ma@intel.com>
Cc: Guo Dong <guo.dong@intel.com>
Cc: Benjamin You <benjamin.you@intel.com>
Reviewed-by: Guo Dong <guo.dong@intel.com>
Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
UefiPayloadPkg/UefiPayloadPkg.dsc