1. Handle the situation of empty value of PCD definition of INF file
authorhche10x <hche10x@7335b38e-4728-0410-8992-fb3ffe349368>
Fri, 31 Aug 2007 00:23:41 +0000 (00:23 +0000)
committerhche10x <hche10x@7335b38e-4728-0410-8992-fb3ffe349368>
Fri, 31 Aug 2007 00:23:41 +0000 (00:23 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@654 7335b38e-4728-0410-8992-fb3ffe349368

Source/Python/Common/InfClassObject.py

index f7dc244..37420e1 100755 (executable)
@@ -489,7 +489,12 @@ class Inf(InfObject):
         TokenInfo = GetSplitValueList(List[0], DataType.TAB_SPLIT)\r
         if len(TokenInfo) != 2:\r
             RaiseParserError(Item, 'Pcds' + Type, File, Format)\r
-        \r
+        if len(List) == 3 and List[1] == '':\r
+            #\r
+            # Value is empty\r
+            #\r
+            RaiseParserError(Item, 'Pcds' + Type, File, Format)\r
+\r
         return (TokenInfo[0], TokenInfo[1], List[1], Type)\r
     \r
     def LoadInfFile(self, Filename):     \r