summaryrefslogtreecommitdiffstats
path: root/BaseTools
diff options
context:
space:
mode:
authorYonghong Zhu <yonghong.zhu@intel.com>2017-10-09 15:59:45 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2017-10-10 10:32:07 +0800
commitfbe538450fb5327110f3b01d038e356e590dd93a (patch)
treed97af4507895eff69f1b01bd822084bda280a384 /BaseTools
parentc9b094f61029efff45c8d555d3eff6b061f77b8a (diff)
downloadedk2-fbe538450fb5327110f3b01d038e356e590dd93a.tar.gz
edk2-fbe538450fb5327110f3b01d038e356e590dd93a.tar.bz2
edk2-fbe538450fb5327110f3b01d038e356e590dd93a.zip
BaseTools: Fix a bug to use module's Name attribute as compare
Fix a bug to use module's Name attribute as compare for single module build. ModuleFile.File can't be used to compare INF file, because it is the relative path. Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Source/Python/build/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/build/build.py b/BaseTools/Source/Python/build/build.py
index 13d8e503b1..4f73bba3bd 100644
--- a/BaseTools/Source/Python/build/build.py
+++ b/BaseTools/Source/Python/build/build.py
@@ -1829,7 +1829,7 @@ class Build():
GlobalData.gGlobalDefines['ARCH'] = Arch
Pa = PlatformAutoGen(Wa, self.PlatformFile, BuildTarget, ToolChain, Arch)
for Module in Pa.Platform.Modules:
- if self.ModuleFile.Dir == Module.Dir and self.ModuleFile.File == Module.File:
+ if self.ModuleFile.Dir == Module.Dir and self.ModuleFile.Name == Module.Name:
Ma = ModuleAutoGen(Wa, Module, BuildTarget, ToolChain, Arch, self.PlatformFile)
if Ma == None: continue
# Not to auto-gen for targets 'clean', 'cleanlib', 'cleanall', 'run', 'fds'