1. Add the path of inf file itself to include path list.
authorhche10x <hche10x@7335b38e-4728-0410-8992-fb3ffe349368>
Wed, 11 Jun 2008 05:16:25 +0000 (05:16 +0000)
committerhche10x <hche10x@7335b38e-4728-0410-8992-fb3ffe349368>
Wed, 11 Jun 2008 05:16:25 +0000 (05:16 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1251 7335b38e-4728-0410-8992-fb3ffe349368

Source/Python/Ecc/MetaDataParser.py

index 20f1b15..cab6f0c 100644 (file)
@@ -37,6 +37,8 @@ def GetIncludeListOfFile(WorkSpace, Filepath, Db):
                            (select ID from File where FullPath = '%s') and Model = %s""" \\r
                     % (DecFullPath, MODEL_EFI_INCLUDE)\r
         NewRecordSet = Db.TblDec.Exec(SqlCommand)\r
+        if DecPath not in IncludeList:\r
+            IncludeList.append(DecPath)\r
         for NewRecord in NewRecordSet:\r
             IncludePath = os.path.normpath(os.path.join(DecPath, NewRecord[0]))\r
             if IncludePath not in IncludeList:\r