mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-24 22:24:37 +02:00
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>
This commit is contained in:
parent
c9b094f610
commit
fbe538450f
@ -1829,7 +1829,7 @@ class Build():
|
|||||||
GlobalData.gGlobalDefines['ARCH'] = Arch
|
GlobalData.gGlobalDefines['ARCH'] = Arch
|
||||||
Pa = PlatformAutoGen(Wa, self.PlatformFile, BuildTarget, ToolChain, Arch)
|
Pa = PlatformAutoGen(Wa, self.PlatformFile, BuildTarget, ToolChain, Arch)
|
||||||
for Module in Pa.Platform.Modules:
|
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)
|
Ma = ModuleAutoGen(Wa, Module, BuildTarget, ToolChain, Arch, self.PlatformFile)
|
||||||
if Ma == None: continue
|
if Ma == None: continue
|
||||||
# Not to auto-gen for targets 'clean', 'cleanlib', 'cleanall', 'run', 'fds'
|
# Not to auto-gen for targets 'clean', 'cleanlib', 'cleanall', 'run', 'fds'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user