]> git.proxmox.com Git - mirror_edk2.git/commitdiff
PrmPkg: Export major/minor version in PRM module PE COFF header
authorLiu <yun.y.liu@intel.com>
Thu, 7 May 2020 06:48:07 +0000 (14:48 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 5 Apr 2022 00:42:38 +0000 (00:42 +0000)
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 COFF
header and fill them into PRMT ACPI table.

Cc: Andrew Fish <afish@apple.com>
Cc: Kang Gao <kang.gao@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Michael Kubacki <michael.kubacki@microsoft.com>
Cc: Leif Lindholm <leif@nuviainc.com>
Cc: Benjamin You <benjamin.you@intel.com>
Cc: Liu Yun <yun.y.liu@intel.com>
Cc: Ankit Sinha <ankit.sinha@intel.com>
Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
Signed-off-by: Liu Yun <yun.y.liu@intel.com>
Acked-by: Michael D Kinney <michael.d.kinney@intel.com>
Acked-by: Liming Gao <gaoliming@byosoft.com.cn>
Acked-by: Leif Lindholm <quic_llindhol@quicinc.com>
Reviewed-by: Ankit Sinha <ankit.sinha@intel.com>
PrmPkg/Samples/PrmSampleContextBufferModule/PrmSampleContextBufferModule.inf
PrmPkg/Samples/PrmSampleHardwareAccessModule/PrmSampleHardwareAccessModule.inf
PrmPkg/Samples/PrmSampleMemoryAllocationModule/PrmSampleMemoryAllocationModule.inf
PrmPkg/Samples/PrmSamplePrintModule/PrmSamplePrintModule.inf

index 4dd77f5261163d3b5564eb275029fd254b18b545..b97af923c47a70b280d270302aa8a7d058701c92 100644 (file)
@@ -5,6 +5,7 @@
 #  that applies the configuration for the PRM context data in the boot environment. A PRM handler\r
 #  is provided that accesses the context buffer resources and prints their value at OS runtime.\r
 #\r
+#  Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>\r
 #  Copyright (c) Microsoft Corporation\r
 #\r
 #  SPDX-License-Identifier: BSD-2-Clause-Patent\r
@@ -40,3 +41,4 @@
 \r
 [BuildOptions.common]\r
   MSFT:*_*_*_DLINK_FLAGS  = /DLL /SUBSYSTEM:CONSOLE /VERSION:1.0\r
+  MSFT:*_*_*_GENFW_FLAGS = --keepoptionalheader\r
index 302183c576f9f6c20b481f1ccc0918760950c37a..369d1eb1e86d5c55e042980336edf16bc5de8052 100644 (file)
@@ -4,6 +4,7 @@
 #  A sample PRM Module implementation. This PRM Module provides PRM handlers that perform various types\r
 #  of hardware access. This is simply meant to demonstrate hardware access capabilities from a PRM handler.\r
 #\r
+#  Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>\r
 #  Copyright (c) Microsoft Corporation\r
 #\r
 #  SPDX-License-Identifier: BSD-2-Clause-Patent\r
@@ -40,3 +41,4 @@
 \r
 [BuildOptions.common]\r
   MSFT:*_*_*_DLINK_FLAGS  = /DLL /SUBSYSTEM:CONSOLE /VERSION:1.0\r
+  MSFT:*_*_*_GENFW_FLAGS = --keepoptionalheader\r
index e6798afe19e85c65126790684a7b3437afde2f94..06be8f40f4ec4395b7b3c1b7d608bd761803d3d3 100644 (file)
@@ -5,6 +5,7 @@
 #  a debug message. Three PRM handlers are provided that each print a unique\r
 #  debug message.\r
 #\r
+#  Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>\r
 #  Copyright (c) Microsoft Corporation\r
 #\r
 #  SPDX-License-Identifier: BSD-2-Clause-Patent\r
@@ -38,4 +39,5 @@
   TRUE\r
 \r
 [BuildOptions.common]\r
-  MSFT:*_*_*_DLINK_FLAGS  = /DLL /SUBSYSTEM:CONSOLE\r
+  MSFT:*_*_*_DLINK_FLAGS  = /DLL /SUBSYSTEM:CONSOLE /VERSION:1.0\r
+  MSFT:*_*_*_GENFW_FLAGS = --keepoptionalheader\r
index d685bf888a1ce6537a1c6c2be2433c6b66d8a4a3..7ac291bc6e8ae3f25e83537e1de60b35a5787958 100644 (file)
@@ -5,6 +5,7 @@
 #  a debug message. Three PRM handlers are provided that each print a unique\r
 #  debug message.\r
 #\r
+#  Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>\r
 #  Copyright (c) Microsoft Corporation\r
 #\r
 #  SPDX-License-Identifier: BSD-2-Clause-Patent\r
@@ -36,4 +37,5 @@
   TRUE\r
 \r
 [BuildOptions.common]\r
-  MSFT:*_*_*_DLINK_FLAGS  = /DLL /SUBSYSTEM:CONSOLE\r
+  MSFT:*_*_*_DLINK_FLAGS  = /DLL /SUBSYSTEM:CONSOLE /VERSION:1.0\r
+  MSFT:*_*_*_GENFW_FLAGS = --keepoptionalheader\r