From 6b7dde7cdd1649e59e228535a29aa8d80761a1ba Mon Sep 17 00:00:00 2001 From: Michael Kubacki Date: Fri, 12 Jun 2020 14:24:46 -0700 Subject: PrmPkg: Refactor some PrmLoaderDxe functionality into libraries This change breaks out two sets of responsibilities in PrmLoaderDxe into libraries: * PE/COFF functions -> PrmPeCoffLib * PRM module discovery functions -> PrmModuleDiscoveryLib This is core infrastructure code for PRM functionality that needs to be directly reused and tested in other places. At this time, the primary motivating factor is to use this code in two other locations: 1.) Link the functionality into unit testing modules 2.) Link the functionality into a PRM UEFI application 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: Michael Kubacki Acked-by: Michael D Kinney Acked-by: Liming Gao Acked-by: Leif Lindholm Reviewed-by: Ankit Sinha --- PrmPkg/PrmPkg.dec | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'PrmPkg/PrmPkg.dec') diff --git a/PrmPkg/PrmPkg.dec b/PrmPkg/PrmPkg.dec index ff681d423d..785e2c24c2 100644 --- a/PrmPkg/PrmPkg.dec +++ b/PrmPkg/PrmPkg.dec @@ -36,6 +36,14 @@ # PrmContextBufferLib|Include/Library/PrmContextBufferLib.h + ## @libraryclass Provides functionality to discover PRM modules installed by platform firmware + # + PrmModuleDiscoveryLib|Include/Library/PrmModuleDiscoveryLib.h + + ## @libraryclass Provides additional PE/COFF functionality needed to support the Platform Runtime Mechanism (PRM) loader driver. + # + PrmPeCoffLib|Include/Library/PrmPeCoffLib.h + [Protocols] ## PRM Configuration Protocol # -- cgit