Gentle ping on this thread.
 
As Paul mentioned, there are only two non-static functions for ACPI table generator - AcpiHmatLibConstructor() and 
AcpiHmatLibDestructor()
 
In order to do the unit test, we need to expose at least one STATIC to be non-STATIC. 
CONST
ACPI_TABLE_GENERATOR  HmatGenerator.
 
So we can use 
https://github.com/tianocore/edk2/pull/10833/commits/4eeeb1434820718ace1670d9429a867fe5e8c9b7
to register HMAT generator (or other generators).
 
Currently https://github.com/tianocore/edk2/pull/10833/commits/4eeeb1434820718ace1670d9429a867fe5e8c9b7 solution is not functional given no function call on RegisterAcpiTableGenerator().
 
I guess we all need to wait for upstream's decision on STATIC and NON_STATIC exposure for ACPI table generator unit test.
_._,_._,_

Groups.io Links:

You receive all messages sent to this group.

View/Reply Online (#121246) | | Mute This Topic | New Topic
Your Subscription | Contact Group Owner | Unsubscribe [rebecca@openfw.io]

_._,_._,_