|
From: <gi...@us...> - 2010-09-03 05:19:31
|
Revision: 2039
http://edk2-buildtools.svn.sourceforge.net/edk2-buildtools/?rev=2039&view=rev
Author: gikidy
Date: 2010-09-03 05:19:25 +0000 (Fri, 03 Sep 2010)
Log Message:
-----------
Print error messages while non-VOID* type PCD format has issue.
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-09-03 02:04:27 UTC (rev 2038)
+++ trunk/BaseTools/Source/Python/AutoGen/AutoGen.py 2010-09-03 05:19:25 UTC (rev 2039)
@@ -502,10 +502,15 @@
#
# Fix the optional data of VPD PCD.
#
- if (Pcd.DatumType.strip() != "VOID*" and Pcd.DatumType.strip() != "VOID *"):
+ if (Pcd.DatumType.strip() != "VOID*"):
if Sku.DefaultValue == '':
Pcd.SkuInfoList[Pcd.SkuInfoList.keys()[0]].DefaultValue = Pcd.MaxDatumSize
- Pcd.MaxDatumSize = None
+ Pcd.MaxDatumSize = None
+ else:
+ EdkLogger.error("build", AUTOGEN_ERROR, "PCD setting error",
+ File=self.MetaFile,
+ ExtraData="\n\tPCD: %s.%s format incorrect in DSC: %s\n\t\t\n"
+ % (Pcd.TokenSpaceGuidCName, Pcd.TokenCName, self.Platform.MetaFile.Path))
VpdFile.Add(Pcd, Sku.VpdOffset)
# if the offset of a VPD is *, then it need to be fixed up by third party tool.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|