diff options
author | Feng, Bob C <bob.c.feng@intel.com> | 2018-11-01 23:07:01 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2018-11-02 22:15:53 +0800 |
commit | 5af5153ad9553ce7ed4f241a83d1a4b870833960 (patch) | |
tree | 79db6ed7017f55d27efb93f164b0d494bb850f89 /BaseTools | |
parent | dbeaf5855505228b5e09afe44914a6d874f6453f (diff) | |
download | edk2-5af5153ad9553ce7ed4f241a83d1a4b870833960.zip edk2-5af5153ad9553ce7ed4f241a83d1a4b870833960.tar.gz edk2-5af5153ad9553ce7ed4f241a83d1a4b870833960.tar.bz2 |
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>
Diffstat (limited to 'BaseTools')
-rw-r--r-- | BaseTools/Source/Python/AutoGen/AutoGen.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/AutoGen/AutoGen.py b/BaseTools/Source/Python/AutoGen/AutoGen.py index 9c3759c..a1c8dc7 100644 --- a/BaseTools/Source/Python/AutoGen/AutoGen.py +++ b/BaseTools/Source/Python/AutoGen/AutoGen.py @@ -1165,6 +1165,8 @@ class PlatformAutoGen(AutoGen): if SkuId is None or SkuId == '':
continue
if len(Sku.VariableName) > 0:
+ if Sku.VariableAttribute and 'NV' not in Sku.VariableAttribute:
+ continue
VariableGuidStructure = Sku.VariableGuidValue
VariableGuid = GuidStructureStringToGuidString(VariableGuidStructure)
for StorageName in Sku.DefaultStoreDict:
|