for LibraryClassName in M.LibraryClasses:\r
if LibraryClassName not in LibraryInstance:\r
# override library instance for this module\r
- if LibraryClassName in Platform.Modules[str(Module)].LibraryClasses:\r
- LibraryPath = Platform.Modules[str(Module)].LibraryClasses[LibraryClassName]\r
- else:\r
- LibraryPath = Platform.LibraryClasses[LibraryClassName, ModuleType]\r
- if LibraryPath is None or LibraryPath == "":\r
- LibraryPath = M.LibraryClasses[LibraryClassName]\r
- if LibraryPath is None or LibraryPath == "":\r
+ LibraryPath = Platform.Modules[str(Module)].LibraryClasses.get(LibraryClassName,Platform.LibraryClasses[LibraryClassName, ModuleType])\r
+ if LibraryPath is None:\r
+ LibraryPath = M.LibraryClasses.get(LibraryClassName)\r
+ if LibraryPath is None:\r
if FileName:\r
EdkLogger.error("build", RESOURCE_NOT_AVAILABLE,\r
"Instance of library class [%s] is not found" % LibraryClassName,\r