summaryrefslogtreecommitdiffstats
path: root/PrmPkg/Samples/PrmSampleContextBufferModule/PrmSampleContextBufferModule.inf
diff options
context:
space:
mode:
authorMichael Kubacki <michael.kubacki@microsoft.com>2020-04-07 11:33:23 -0700
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-04-05 00:42:38 +0000
commit7c41ec47ca55ab4556eeede585d66144add5cb23 (patch)
tree5e7c6be7a296ad1f3beed1ea069bc4de2637d006 /PrmPkg/Samples/PrmSampleContextBufferModule/PrmSampleContextBufferModule.inf
parent27b1a840e4b286927c59495a8b7cf414dadfa90d (diff)
downloadedk2-7c41ec47ca55ab4556eeede585d66144add5cb23.tar.gz
edk2-7c41ec47ca55ab4556eeede585d66144add5cb23.tar.bz2
edk2-7c41ec47ca55ab4556eeede585d66144add5cb23.zip
PrmPkg: Add initial PrmSampleContextBufferModule
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3812 Adds a sample PRM module that demonstrates: 1. How to write a PRM module 2. How to use a basic PRM OS services 3. How to use a basic PRM module configuration library 4. How to use a context buffer during PRM handler execution 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: Michael Kubacki <michael.kubacki@microsoft.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>
Diffstat (limited to 'PrmPkg/Samples/PrmSampleContextBufferModule/PrmSampleContextBufferModule.inf')
-rw-r--r--PrmPkg/Samples/PrmSampleContextBufferModule/PrmSampleContextBufferModule.inf42
1 files changed, 42 insertions, 0 deletions
diff --git a/PrmPkg/Samples/PrmSampleContextBufferModule/PrmSampleContextBufferModule.inf b/PrmPkg/Samples/PrmSampleContextBufferModule/PrmSampleContextBufferModule.inf
new file mode 100644
index 0000000000..4dd77f5261
--- /dev/null
+++ b/PrmPkg/Samples/PrmSampleContextBufferModule/PrmSampleContextBufferModule.inf
@@ -0,0 +1,42 @@
+## @file
+# Sample PRM Driver
+#
+# A sample PRM Module implementation. This PRM Module includes a PRM Module configuration library instance
+# that applies the configuration for the PRM context data in the boot environment. A PRM handler
+# is provided that accesses the context buffer resources and prints their value at OS runtime.
+#
+# Copyright (c) Microsoft Corporation
+#
+# SPDX-License-Identifier: BSD-2-Clause-Patent
+#
+##
+
+[Defines]
+ INF_VERSION = 0x00010005
+ BASE_NAME = PrmSampleContextBufferModule
+ FILE_GUID = 5A6CF42B-8BB4-472C-A233-5C4DC4033DC7
+ MODULE_TYPE = DXE_RUNTIME_DRIVER
+ VERSION_STRING = 1.0
+ ENTRY_POINT = PrmSampleContextBufferModuleInit
+
+[Sources]
+ Include/StaticData.h
+ PrmSampleContextBufferModule.c
+
+[Packages]
+ MdePkg/MdePkg.dec
+ MdeModulePkg/MdeModulePkg.dec
+ UefiCpuPkg/UefiCpuPkg.dec
+ PrmPkg/PrmPkg.dec
+
+[LibraryClasses]
+ BaseLib
+ PrintLib
+ UefiDriverEntryPoint
+ UefiLib
+
+[Depex]
+ TRUE
+
+[BuildOptions.common]
+ MSFT:*_*_*_DLINK_FLAGS = /DLL /SUBSYSTEM:CONSOLE /VERSION:1.0