From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 685FBD80101 for ; Wed, 9 Apr 2025 19:17:34 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=ITGSCZAoqB/T1gDvQ98O+lCLXNcndLFhN5xKtn3dDQo=; c=relaxed/simple; d=groups.io; h=Subject:To:From:User-Agent:MIME-Version:Date:References:In-Reply-To:Message-ID:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type; s=20240830; t=1744226254; v=1; x=1744485452; b=nY69j/TyXZi5/DR5LdQOVlw6HgdjeRBkBFTpPSroQLhgfuAa7Y/28fjcauEwhQoaGyVfbuYq nd7BwX4JMiHZf8ib4Tx7SOotEN7CANflrCQjVSkUjBs2TCpoZ/G5tGs5+11Lsl7ECViklVaX4B9 X+n033V9MFFtNJecSt47vkhDKNwppGuhTp3haJWUDFaYoobcDOQ5zIpz+4iPDWFEUcbPGcRYoFS SGFHajRYXRT2mVLImI53q6uLOByIYk8osHvHaPEpzDF+deYlSch4UDHOlEJ0AyLvkB5+LHwBR5O 0PUh7Fk45r5GaPAbG9i9vCBV4+cfnxpCLY9jnXY/4SwuQ== X-Received: by 127.0.0.2 with SMTP id y9btYY7687511xJSBguSaeov; Wed, 09 Apr 2025 12:17:32 -0700 Subject: Re: [edk2-devel] ACPI table generator unit test To: "Paul Fagerburg" , devel@edk2.groups.io From: "Sophia Wang via groups.io" X-Originating-Location: Mountain View, California, US (104.133.9.84) X-Originating-Platform: Linux Chrome 135 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Wed, 09 Apr 2025 12:17:32 -0700 References: <6352.1743111843323531312@groups.io> In-Reply-To: <6352.1743111843323531312@groups.io> Message-ID: <13400.1744226252159153109@groups.io> Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,yodagump@google.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: xQooFyG6A2VeXLJhOPiWZRO7x7686176AA= Content-Type: multipart/alternative; boundary="1XIr2IjWXxcwCYMnsnUr" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240830 header.b="nY69j/Ty"; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=pass (policy=none) header.from=groups.io --1XIr2IjWXxcwCYMnsnUr Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Gentle ping on this thread. As Paul mentioned, there are only two non-static functions for ACPI table g= enerator - AcpiHmatLibConstructor() and AcpiHmatLibDestructor() In order to do the unit test, we need to expose at least one STATIC to be n= on-STATIC. CONST ACPI_TABLE_GENERATOR =C2=A0HmatGenerator. So we can use https://github.com/tianocore/edk2/pull/10833/commits/4eeeb1434820718ace1670= d9429a867fe5e8c9b7 to register HMAT generator (or other generators). Currently https://github.com/tianocore/edk2/pull/10833/commits/4eeeb1434820= 718ace1670d9429a867fe5e8c9b7 solution is not functional given no function c= all on RegisterAcpiTableGenerator(). I guess we all need to wait for upstream's decision on STATIC and NON_STATI= C exposure for ACPI table generator unit test. -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#121246): https://edk2.groups.io/g/devel/message/121246 Mute This Topic: https://groups.io/mt/111930977/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- --1XIr2IjWXxcwCYMnsnUr Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
Gentle ping on this thread.
 
As Paul mentioned, there are only two non-static functions for ACPI ta= ble 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  HmatGenera= tor.
 
So we can use 
to register HMAT generator (or other generators).
 
Currently https://github.com/tianocore/edk2/pull/10833/commits/4eeeb1434820718a= ce1670d9429a867fe5e8c9b7 solution is not functional given no function c= all on = I guess we all need to wait for upstream's decision on STATIC and NON_STATI= C exposure for ACPI table generator unit test.
_._,_._,_

Groups.io Links:

=20 You receive all messages sent to this group. =20 =20

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

_._,_._,_
--1XIr2IjWXxcwCYMnsnUr--