]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg PCD: Allow SkuId to be changed only once
authorStar Zeng <star.zeng@intel.com>
Tue, 28 Feb 2017 04:48:39 +0000 (12:48 +0800)
committerStar Zeng <star.zeng@intel.com>
Thu, 16 Mar 2017 02:17:00 +0000 (10:17 +0800)
commit2db48a1ff4e97b084a65690ae8a8d162247e2269
treec4d81cdc8437f5487666e755cc9b234851ddbd91
parent0985beff2ce5e9f41e39e1900a8d19d22975d733
MdeModulePkg PCD: Allow SkuId to be changed only once

Current PI spec has no clear description about whether the
SkuId could be changed multiple times or not during one boot.

If the SkuId could be changed multiple times during one boot,
different modules may get inconsistent PCD values.
And DynamicHii PCD maps to UEFI variable, once one DynamicHii
PCD(UEFI variable) is set for one SkuId, then the PCD value
will be always from UEFI variable but not PCD database, even
the SkuId is set to other value.

This patch is to update PCD drivers to allow SkuId to be
changed only once during one boot.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Michael Kinney <michael.d.kinney@intel.com>
Cc: Feng Tian <feng.tian@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdeModulePkg/Universal/PCD/Dxe/Pcd.c
MdeModulePkg/Universal/PCD/Pei/Pcd.c