From: Yonghong Zhu Date: Mon, 13 Jun 2016 10:00:52 +0000 (+0800) Subject: BaseTools: ignore the binary LIB file in gen_libs X-Git-Tag: edk2-stable201903~6858 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=8832c79d6439adc09d7cc89b22268899026ff7f8;ds=sidebyside BaseTools: ignore the binary LIB file in gen_libs For single module build, it would call gen_libs target. then if it use binary LIB file, it cause build failure. Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yonghong Zhu Reviewed-by: Liming Gao --- diff --git a/BaseTools/Source/Python/AutoGen/GenMake.py b/BaseTools/Source/Python/AutoGen/GenMake.py index be07e46684..c8c5fc5386 100644 --- a/BaseTools/Source/Python/AutoGen/GenMake.py +++ b/BaseTools/Source/Python/AutoGen/GenMake.py @@ -867,7 +867,8 @@ cleanlib: ## For creating makefile targets for dependent libraries def ProcessDependentLibrary(self): for LibraryAutoGen in self._AutoGenObject.LibraryAutoGenList: - self.LibraryBuildDirectoryList.append(self.PlaceMacro(LibraryAutoGen.BuildDir, self.Macros)) + if not LibraryAutoGen.IsBinaryModule: + self.LibraryBuildDirectoryList.append(self.PlaceMacro(LibraryAutoGen.BuildDir, self.Macros)) ## Return a list containing source file's dependencies #