mirror_edk2/BaseTools/Source/Python
Michael D Kinney 66b845ae06 BaseTools: Fix private includes for FILE_GUID override
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1648

When a module in a DSC file uses a FILE_GUID override in the
module scoped <Defines> section, a copy of the modified INF file
is placed in the Conf/.cache directory.  The check for private
includes uses the INF path to determine if the module is allowed
to use the private includes.  Since the INF path in this case is
not in any package, this check always fails, and no private
include paths are possible.

The fix is to keep both the OriginalPath and the new Path in
the PathClass object, and always use the OriginalPath to see if
the module INF is in the package with private includes.

Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
2019-05-21 13:14:14 +08:00
..
AutoGen BaseTools: Fix private includes for FILE_GUID override 2019-05-21 13:14:14 +08:00
BPDG BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
build BaseTools: Fix the issue that build report missing Module Size 2019-05-09 15:03:30 +08:00
Capsule BaseTools:Coding problems cause can not encode FMP Auth Header 2019-04-16 13:14:14 +08:00
Common BaseTools: Fix private includes for FILE_GUID override 2019-05-21 13:14:14 +08:00
CommonDataClass BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
Ecc BaseTools:ECC report errors on account of analyze special characters 2019-05-08 09:41:42 +08:00
Eot BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
GenFds BaseTools:Enables FFS to support the GUID value format 2019-05-10 17:07:07 +08:00
GenPatchPcdTable BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
PatchPcdValue BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
Pkcs7Sign BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
Rsa2048Sha256Sign BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
Table BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
TargetTool BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
Trim BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
UPT BaseTools:Remove unused BaseTools\Source\Python\UPT\Dll 2019-05-08 09:41:42 +08:00
Workspace BaseTools: Correct the value assignment for StructurePcd 2019-05-10 17:06:44 +08:00
GNUmakefile BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
Makefile BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
sitecustomize.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00