Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: 92ab049719afe96913c0452bcf12946e0af0f0d5
https://github.com/tianocore/edk2/commit/92ab049719afe96913c0452bcf12946e0af0f0d5
Author: Ni, Ray <[email protected]>
Date: 2022-06-16 (Thu, 16 Jun 2022)
Changed paths:
M BaseTools/Source/Python/Workspace/WorkspaceCommon.py
Log Message:
-----------
BaseTools: output the intermediate library instance when error occurs
When a module "Module" depends on a library instance "Lib1" which
depends on "Lib2" which depends on "Lib3" ... depends on "LibN",
but "LibN" doesn't support the type (e.g.: SEC) of the "Module", the
following error messages are printed by build tool:
<DSC path>(...): error 1001: Module by library instance [<LibN path>]
consumed by [<Module path>]
But it's unclear to user how LibN is consumed by the Module.
With the patch, following errors are printed:
<DSC path>(...): error 1001: Module by library instance [<LibN path>]
consumed by library instance [<Lib N-1 path>] which is
consumed by module[<Module path>]
It doesn't print all the intermediate library instances between the
Module and LibN but at least the path of Lib N-1 can help users
to help how to fix the build errors.
I hope this patch can be a trigger point that a better solution could
be developed by tool experts to print all the library instances
between the Module and LibN.
Signed-off-by: Ray Ni <[email protected]>
Cc: Bob Feng <[email protected]>
Cc: Liming Gao <[email protected]>
Cc: Yuwei Chen <[email protected]>
Reviewed-by: Bob Feng <[email protected]>
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits