However, the library instance is specified in QemuQ35Pkg.dsc against the "Common" architecture as it is placed in the [LibraryClasses] section.
This raises the following warning during build:
INFO - QemuQ35Pkg.dsc(...): warning:
Platforms\QemuQ35Pkg\Library\XenHypercallLib\XenHypercallLib.inf
does not support LIBRARY_CLASS XenHypercallLib
This is printed from the _ValidateLibraryClass() function in BaseTools/Source/Python/Workspace/DscBuildData.py because the library class is bound by architecture in the INF file so it does not support the "Common" architecture.
This change maps the library instance to the XenHypercallLib class per the defined architectures (IA32 and X64) in QemuQ35Pkg.dsc.
Description
The XenHypercallLib instance in QemuQ35Pkg has the following LIBRARY_CLASS value in its [DEFINES] section:
However, the library instance is specified in QemuQ35Pkg.dsc against the "Common" architecture as it is placed in the
[LibraryClasses]
section.This raises the following warning during build:
This is printed from the
_ValidateLibraryClass()
function inBaseTools/Source/Python/Workspace/DscBuildData.py
because the library class is bound by architecture in the INF file so it does not support the "Common" architecture.This change maps the library instance to the XenHypercallLib class per the defined architectures (
IA32
andX64
) in QemuQ35Pkg.dsc.How This Was Tested
QemuQ35Pkg
before and after the changeIntegration Instructions