BaseTools: Support Structure PCD value inherit between the different SKUs
https://bugzilla.tianocore.org/show_bug.cgi?id=543 Structure PCD field value can inherit between the different SKUIds. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Feng Bob C <bob.c.feng@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
@ -270,19 +270,22 @@ class PpiClass(GuidProtocolPpiCommonClass):
|
||||
#
|
||||
class SkuInfoClass(object):
|
||||
def __init__(self, SkuIdName = '', SkuId = '', VariableName = '', VariableGuid = '', VariableOffset = '',
|
||||
HiiDefaultValue = '', VpdOffset = '', DefaultValue = '', VariableGuidValue = '', VariableAttribute = ''):
|
||||
HiiDefaultValue = '', VpdOffset = '', DefaultValue = '', VariableGuidValue = '', VariableAttribute = '', DefaultStore = None):
|
||||
self.SkuIdName = SkuIdName
|
||||
self.SkuId = SkuId
|
||||
|
||||
#
|
||||
# Used by Hii
|
||||
#
|
||||
if DefaultStore is None:
|
||||
DefaultStore = {}
|
||||
self.VariableName = VariableName
|
||||
self.VariableGuid = VariableGuid
|
||||
self.VariableGuidValue = VariableGuidValue
|
||||
self.VariableOffset = VariableOffset
|
||||
self.HiiDefaultValue = HiiDefaultValue
|
||||
self.VariableAttribute = VariableAttribute
|
||||
self.DefaultStoreDict = DefaultStore
|
||||
|
||||
#
|
||||
# Used by Vpd
|
||||
|
@ -64,6 +64,7 @@ MODEL_EFI_BINARY_FILE = 3008
|
||||
MODEL_EFI_SKU_ID = 3009
|
||||
MODEL_EFI_INCLUDE = 3010
|
||||
MODEL_EFI_DEPEX = 3011
|
||||
MODEL_EFI_DEFAULT_STORES = 3012
|
||||
|
||||
MODEL_PCD = 4000
|
||||
MODEL_PCD_FIXED_AT_BUILD = 4001
|
||||
|
Reference in New Issue
Block a user