|
From: <gi...@us...> - 2010-08-23 03:47:51
|
Revision: 2024
http://edk2-buildtools.svn.sourceforge.net/edk2-buildtools/?rev=2024&view=rev
Author: gikidy
Date: 2010-08-23 03:47:45 +0000 (Mon, 23 Aug 2010)
Log Message:
-----------
Not process VPD type pcd if no VPD_TOOL_GUID defined in DSC file.
Modified Paths:
--------------
trunk/BaseTools/Source/Python/AutoGen/AutoGen.py
Modified: trunk/BaseTools/Source/Python/AutoGen/AutoGen.py
===================================================================
--- trunk/BaseTools/Source/Python/AutoGen/AutoGen.py 2010-08-20 00:00:38 UTC (rev 2023)
+++ trunk/BaseTools/Source/Python/AutoGen/AutoGen.py 2010-08-23 03:47:45 UTC (rev 2024)
@@ -496,10 +496,11 @@
OtherPcdArray.append(Pcd)
if Pcd.Type in [TAB_PCDS_DYNAMIC_VPD, TAB_PCDS_DYNAMIC_EX_VPD]:
- VpdFile.Add(Pcd, Sku.VpdOffset)
- # if the offset of a VPD is *, then it need to be fixed up by third party tool.
- if not NeedProcessVpdMapFile and Sku.VpdOffset == "*":
- NeedProcessVpdMapFile = True
+ if not (self.Platform.VpdToolGuid == None or self.Platform.VpdToolGuid == ''):
+ VpdFile.Add(Pcd, Sku.VpdOffset)
+ # if the offset of a VPD is *, then it need to be fixed up by third party tool.
+ if not NeedProcessVpdMapFile and Sku.VpdOffset == "*":
+ NeedProcessVpdMapFile = True
if (self.Platform.FlashDefinition == None or self.Platform.FlashDefinition == '') and \
VpdFile.GetCount() != 0:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|