git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@455 7335b...
authorhche10x <hche10x@7335b38e-4728-0410-8992-fb3ffe349368>
Tue, 31 Jul 2007 06:10:05 +0000 (06:10 +0000)
committerhche10x <hche10x@7335b38e-4728-0410-8992-fb3ffe349368>
Tue, 31 Jul 2007 06:10:05 +0000 (06:10 +0000)
Source/Python/Common/DscClassObject.py
Source/Python/Common/InfClassObject.py

index 0f9e49e..ecbfc0c 100644 (file)
@@ -231,6 +231,8 @@ class Dsc(DscObject):
                         ErrorMsg = "Wrong statement '%s' found in section LibraryClasses in file '%s', correct format is '<LibraryClassKeyWord>|<LibraryInstance>'" % (Item, self.Platform.Header.FullPath) \r
                         raise ParserError(PARSER_ERROR, msg = ErrorMsg)\r
                     else:\r
+                        if Item[1] == ['']:\r
+                            Item[1] = DataType.SUP_MODULE_LIST\r
                         MergeArches(LibraryClasses, (List[0], List[1]) + tuple(Item[1]), Arch)\r
         self.Platform.LibraryClasses.IncludeFiles = IncludeFiles\r
         for Key in LibraryClasses.keys():\r
index eac95d9..e1ed07a 100644 (file)
@@ -153,7 +153,7 @@ class Inf(InfObject):
                 if len(List) == 1:\r
                     Lib.SupModuleList = DataType.SUP_MODULE_LIST\r
                 elif len(List) == 2:\r
-                    Lib.SupModuleList = GetSplitValueList(CleanString(List[1]))\r
+                    Lib.SupModuleList = GetSplitValueList(CleanString(List[1]), ' ')\r
                 self.Module.Header.LibraryClass.append(Lib)\r
         \r
         #Custom makefile\r