From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mx.groups.io with SMTP id smtpd.web09.12110.1647966080877343480 for ; Tue, 22 Mar 2022 09:21:20 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@linux.microsoft.com header.s=default header.b=KgGPuqPB; spf=pass (domain: linux.microsoft.com, ip: 13.77.154.182, mailfrom: mikuback@linux.microsoft.com) Received: from localhost.localdomain (unknown [47.202.59.224]) by linux.microsoft.com (Postfix) with ESMTPSA id 61A1E20B4783; Tue, 22 Mar 2022 09:21:19 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 61A1E20B4783 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1647966080; bh=BM4aC+v7wFiu2sqFbhyx1qNmwwLNEE/Za+OEFbfLkWg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KgGPuqPBkIhlWUoZ50O++wthO2tLDvWPnWRzIIlOX1CC955CF0iRcsLx/SQPlE36R zF/CtQM7BxDo+1uo3gXy6zGp+pxgyYF3Vnf8boXodCjXAwdT4QB9n8l7SECoODzd3Y jHLZtaZ71BKonbvw9xZtSNeEv/HtAFFgr+zCZ664= From: "Michael Kubacki" To: devel@edk2.groups.io Cc: Andrew Fish , Kang Gao , Michael D Kinney , Michael Kubacki , Leif Lindholm , Benjamin You , Liu Yun , Ankit Sinha , Nate DeSimone Subject: [PATCH v1 14/41] PrmPkg: Export major/minor version in PRM module PE COFF header Date: Tue, 22 Mar 2022 12:19:20 -0400 Message-Id: <20220322161947.9319-15-mikuback@linux.microsoft.com> X-Mailer: git-send-email 2.28.0.windows.1 In-Reply-To: <20220322161947.9319-1-mikuback@linux.microsoft.com> References: <20220322161947.9319-1-mikuback@linux.microsoft.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Liu PRMT ACPI defined major version and minor version for each PRM module. PRM module will build its major/minor version in its PE COFF header. In boot time, PRM loader will collect the major/minor version from PE COF= F header and fill them into PRMT ACPI table. Cc: Andrew Fish Cc: Kang Gao Cc: Michael D Kinney Cc: Michael Kubacki Cc: Leif Lindholm Cc: Benjamin You Cc: Liu Yun Cc: Ankit Sinha Cc: Nate DeSimone Signed-off-by: Liu Yun --- PrmPkg/Samples/PrmSampleContextBufferModule/PrmSampleContextBufferModule= .inf | 2 ++ PrmPkg/Samples/PrmSampleHardwareAccessModule/PrmSampleHardwareAccessModu= le.inf | 2 ++ PrmPkg/Samples/PrmSampleMemoryAllocationModule/PrmSampleMemoryAllocation= Module.inf | 4 +++- PrmPkg/Samples/PrmSamplePrintModule/PrmSamplePrintModule.inf = | 4 +++- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/PrmPkg/Samples/PrmSampleContextBufferModule/PrmSampleContext= BufferModule.inf b/PrmPkg/Samples/PrmSampleContextBufferModule/PrmSampleC= ontextBufferModule.inf index 4dd77f526116..b97af923c47a 100644 --- a/PrmPkg/Samples/PrmSampleContextBufferModule/PrmSampleContextBufferM= odule.inf +++ b/PrmPkg/Samples/PrmSampleContextBufferModule/PrmSampleContextBufferM= odule.inf @@ -5,6 +5,7 @@ # that applies the configuration for the PRM context data in the boot e= nvironment. A PRM handler # is provided that accesses the context buffer resources and prints the= ir value at OS runtime. # +# Copyright (c) 2020, Intel Corporation. All rights reserved.
# Copyright (c) Microsoft Corporation # # SPDX-License-Identifier: BSD-2-Clause-Patent @@ -40,3 +41,4 @@ [Depex] =20 [BuildOptions.common] MSFT:*_*_*_DLINK_FLAGS =3D /DLL /SUBSYSTEM:CONSOLE /VERSION:1.0 + MSFT:*_*_*_GENFW_FLAGS =3D --keepoptionalheader diff --git a/PrmPkg/Samples/PrmSampleHardwareAccessModule/PrmSampleHardwa= reAccessModule.inf b/PrmPkg/Samples/PrmSampleHardwareAccessModule/PrmSamp= leHardwareAccessModule.inf index 302183c576f9..369d1eb1e86d 100644 --- a/PrmPkg/Samples/PrmSampleHardwareAccessModule/PrmSampleHardwareAcces= sModule.inf +++ b/PrmPkg/Samples/PrmSampleHardwareAccessModule/PrmSampleHardwareAcces= sModule.inf @@ -4,6 +4,7 @@ # A sample PRM Module implementation. This PRM Module provides PRM hand= lers that perform various types # of hardware access. This is simply meant to demonstrate hardware acce= ss capabilities from a PRM handler. # +# Copyright (c) 2020, Intel Corporation. All rights reserved.
# Copyright (c) Microsoft Corporation # # SPDX-License-Identifier: BSD-2-Clause-Patent @@ -40,3 +41,4 @@ [Depex] =20 [BuildOptions.common] MSFT:*_*_*_DLINK_FLAGS =3D /DLL /SUBSYSTEM:CONSOLE /VERSION:1.0 + MSFT:*_*_*_GENFW_FLAGS =3D --keepoptionalheader diff --git a/PrmPkg/Samples/PrmSampleMemoryAllocationModule/PrmSampleMemo= ryAllocationModule.inf b/PrmPkg/Samples/PrmSampleMemoryAllocationModule/P= rmSampleMemoryAllocationModule.inf index e6798afe19e8..06be8f40f4ec 100644 --- a/PrmPkg/Samples/PrmSampleMemoryAllocationModule/PrmSampleMemoryAlloc= ationModule.inf +++ b/PrmPkg/Samples/PrmSampleMemoryAllocationModule/PrmSampleMemoryAlloc= ationModule.inf @@ -5,6 +5,7 @@ # a debug message. Three PRM handlers are provided that each print a un= ique # debug message. # +# Copyright (c) 2020, Intel Corporation. All rights reserved.
# Copyright (c) Microsoft Corporation # # SPDX-License-Identifier: BSD-2-Clause-Patent @@ -38,4 +39,5 @@ [Depex] TRUE =20 [BuildOptions.common] - MSFT:*_*_*_DLINK_FLAGS =3D /DLL /SUBSYSTEM:CONSOLE + MSFT:*_*_*_DLINK_FLAGS =3D /DLL /SUBSYSTEM:CONSOLE /VERSION:1.0 + MSFT:*_*_*_GENFW_FLAGS =3D --keepoptionalheader diff --git a/PrmPkg/Samples/PrmSamplePrintModule/PrmSamplePrintModule.inf= b/PrmPkg/Samples/PrmSamplePrintModule/PrmSamplePrintModule.inf index d685bf888a1c..7ac291bc6e8a 100644 --- a/PrmPkg/Samples/PrmSamplePrintModule/PrmSamplePrintModule.inf +++ b/PrmPkg/Samples/PrmSamplePrintModule/PrmSamplePrintModule.inf @@ -5,6 +5,7 @@ # a debug message. Three PRM handlers are provided that each print a un= ique # debug message. # +# Copyright (c) 2020, Intel Corporation. All rights reserved.
# Copyright (c) Microsoft Corporation # # SPDX-License-Identifier: BSD-2-Clause-Patent @@ -36,4 +37,5 @@ [Depex] TRUE =20 [BuildOptions.common] - MSFT:*_*_*_DLINK_FLAGS =3D /DLL /SUBSYSTEM:CONSOLE + MSFT:*_*_*_DLINK_FLAGS =3D /DLL /SUBSYSTEM:CONSOLE /VERSION:1.0 + MSFT:*_*_*_GENFW_FLAGS =3D --keepoptionalheader --=20 2.28.0.windows.1