mirror of https://github.com/acidanthera/audk.git
BaseTools: Add checking to EFI variable attribute.
This patch is going to add a check that only if the attribute of a EFI variable include 'NV', it will be added into PcdNvStoreDefaultValueBuffer. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
dbeaf58555
commit
5af5153ad9
|
@ -1165,6 +1165,8 @@ class PlatformAutoGen(AutoGen):
|
||||||
if SkuId is None or SkuId == '':
|
if SkuId is None or SkuId == '':
|
||||||
continue
|
continue
|
||||||
if len(Sku.VariableName) > 0:
|
if len(Sku.VariableName) > 0:
|
||||||
|
if Sku.VariableAttribute and 'NV' not in Sku.VariableAttribute:
|
||||||
|
continue
|
||||||
VariableGuidStructure = Sku.VariableGuidValue
|
VariableGuidStructure = Sku.VariableGuidValue
|
||||||
VariableGuid = GuidStructureStringToGuidString(VariableGuidStructure)
|
VariableGuid = GuidStructureStringToGuidString(VariableGuidStructure)
|
||||||
for StorageName in Sku.DefaultStoreDict:
|
for StorageName in Sku.DefaultStoreDict:
|
||||||
|
|
Loading…
Reference in New Issue