]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Add the missing package include directory in PcdValueInit Makefile
authorLiming Gao <liming.gao@intel.com>
Thu, 22 Mar 2018 15:22:06 +0000 (23:22 +0800)
committerLiming Gao <liming.gao@intel.com>
Fri, 23 Mar 2018 02:24:13 +0000 (10:24 +0800)
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com>
Cc: Feng Bob C <bob.c.feng@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
BaseTools/Source/Python/Workspace/DscBuildData.py

index 8fe4d4f5cbe193581e6539e7e1508fa665b1e7fa..1cc4dc966203e63e80d9afc6bcf399c65cfacf6f 100644 (file)
@@ -2047,7 +2047,9 @@ class DscBuildData(PlatformBuildClassObject):
                 continue\r
             if Cache.Includes:\r
                 if str(Cache.MetaFile.Path) not in PlatformInc:\r
-                    PlatformInc[str(Cache.MetaFile.Path)] = Cache.CommonIncludes\r
+                    PlatformInc[str(Cache.MetaFile.Path)] = []\r
+                    PlatformInc[str(Cache.MetaFile.Path)].append (os.path.dirname(Cache.MetaFile.Path))\r
+                    PlatformInc[str(Cache.MetaFile.Path)].extend (Cache.CommonIncludes)\r
 \r
         PcdDependDEC = []\r
         for Pcd in StructuredPcds.values():\r