BaseTools/Build: Output warning mesage for library class mismatch#12875
Open
apop5 wants to merge 1 commit into
Open
BaseTools/Build: Output warning mesage for library class mismatch#12875apop5 wants to merge 1 commit into
apop5 wants to merge 1 commit into
Conversation
Performs a check that will verify that the library instance implements the library specified in the dsc by ensuring a LIBRARY_CLASS definition exists in the INF [Defines] section and the value matches the library it says it is implementing. As an example, from a platform dsc file: BaseBmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf BaseBmpSupportLib is supposed to be of library class BmpSupportLib, but the dsc defines it incorrectly, the warning message will be displayed during the build: MdeModulePkg\Library\BaseBmpSupportLib\BaseBmpSupportLib.inf does not support LIBRARY_CLASS BaseBmpSupportLib Signed-off-by: Aaron Pop <aaronpop@microsoft.com>
tianocore-assign-reviewers
Bot
requested review from
AshrafAliS,
YuweiChen1110,
gapalomi,
lgao4 and
ponchofigueroa
July 23, 2026 20:05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Performs a check that will verify that the library instance implements the library specified in the dsc by ensuring a LIBRARY_CLASS definition exists in the INF [Defines] section and the value matches the library it says it is implementing.
As an example, from a platform dsc file:
BaseBmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.infBaseBmpSupportLib is supposed to be of library class
BmpSupportLib, but the dsc defines it incorrectly, so the warning message will be displayed during the build:MdeModulePkg\Library\BaseBmpSupportLib\BaseBmpSupportLib.inf does not support LIBRARY_CLASS BaseBmpSupportLibHow This Was Tested
Testing on platform code. Detection of incorrect library classes.
No build breaks, just warning messages.
Integration Instructions
No Integration necessary