public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Re: [PATCH] UefiPayloadPkg: Include TCG modules in UefiPayloadPkg.
       [not found] <20210824053402.12648-1-k.kavyax.sravanthi@intel.com>
@ 2021-08-25  0:33 ` Ni, Ray
  0 siblings, 0 replies; only message in thread
From: Ni, Ray @ 2021-08-25  0:33 UTC (permalink / raw)
  To: Sravanthi, K KavyaX, devel@edk2.groups.io
  Cc: Dong, Guo, Ma, Maurice, You, Benjamin

The TCG modules need additional changes to include the hash/measure log created from bootloader phase.
Let's not add TCG modules for now until the additional changes to support bootloader are made.

Thanks,
Ray

> -----Original Message-----
> From: Sravanthi, K KavyaX <k.kavyax.sravanthi@intel.com>
> Sent: Tuesday, August 24, 2021 1:34 PM
> To: devel@edk2.groups.io
> Cc: Sravanthi, K KavyaX <k.kavyax.sravanthi@intel.com>; Dong, Guo <guo.dong@intel.com>; Ni, Ray <ray.ni@intel.com>; Ma,
> Maurice <maurice.ma@intel.com>; You, Benjamin <benjamin.you@intel.com>
> Subject: [PATCH] UefiPayloadPkg: Include TCG modules in UefiPayloadPkg.
> 
> From: Sravanthi <k.kavyax.sravanthi@intel.com>
> 
> Include TCG modules in UefiPayloadPkg.dsc and UefiPayloadPkg.fdf
> 
> Cc: Guo Dong <guo.dong@intel.com>
> Cc: Ray Ni <ray.ni@intel.com>
> Cc: Maurice Ma <maurice.ma@intel.com>
> Cc: Benjamin You <benjamin.you@intel.com>
> Signed-off-by: Sravanthi <k.kavyax.sravanthi@intel.com>
> ---
>  UefiPayloadPkg/UefiPayloadPkg.dsc | 24 ++++++++++++++++++++++++
>  UefiPayloadPkg/UefiPayloadPkg.fdf | 13 +++++++++++--
>  2 files changed, 35 insertions(+), 2 deletions(-)
> 
> diff --git a/UefiPayloadPkg/UefiPayloadPkg.dsc b/UefiPayloadPkg/UefiPayloadPkg.dsc
> index 7f984a0b10..ff02ac6103 100644
> --- a/UefiPayloadPkg/UefiPayloadPkg.dsc
> +++ b/UefiPayloadPkg/UefiPayloadPkg.dsc
> @@ -91,6 +91,7 @@
>    DEFINE EMU_VARIABLE_ENABLE   = TRUE
>    DEFINE DISABLE_RESET_SYSTEM  = FALSE
>    DEFINE SECURE_BOOT_ENABLE    = TRUE
> +  DEFINE ENABLE_TCG_SUPPORT    = TRUE
> 
>    # Dfine the maximum size of the capsule image without a reset flag that the platform can support.
>    DEFINE MAX_SIZE_NON_POPULATE_CAPSULE = 0xa00000
> @@ -258,6 +259,14 @@
>    SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf
>  !endif
>    S3BootScriptLib|MdePkg/Library/BaseS3BootScriptLibNull/BaseS3BootScriptLibNull.inf
> +  MmUnblockMemoryLib|MdePkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLibNull.inf
> +  Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
> +  Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
> +  Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf
> +  Tcg2PhysicalPresenceLib|SecurityPkg/Library/DxeTcg2PhysicalPresenceLib/DxeTcg2PhysicalPresenceLib.inf
> +  Tcg2PpVendorLib|SecurityPkg/Library/Tcg2PpVendorLibNull/Tcg2PpVendorLibNull.inf
> +  HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
> +  Tpm12CommandLib|SecurityPkg/Library/Tpm12CommandLib/Tpm12CommandLib.inf
> 
>  [LibraryClasses.common.SEC]
>    HobLib|UefiPayloadPkg/Library/PayloadEntryHobLib/HobLib.inf
> @@ -582,6 +591,21 @@
>  !endif
>    UefiPayloadPkg/GraphicsOutputDxe/GraphicsOutputDxe.inf
> 
> +!if $(ENABLE_TCG_SUPPORT) == TRUE
> +  SecurityPkg/Tcg/MemoryOverwriteControl/TcgMor.inf
> +  SecurityPkg/Tcg/TcgConfigDxe/TcgConfigDxe.inf
> +  SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf {
> +    <LibraryClasses>
> +      Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
> +  }
> +  SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf
> +  SecurityPkg/Tcg/TcgDxe/TcgDxe.inf
> +  SecurityPkg/Tcg/Tcg2Acpi/Tcg2Acpi.inf {
> +    <LibraryClasses>
> +      Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
> +  }
> +!endif
> +
>    #------------------------------
>    #  Build the shell
>    #------------------------------
> diff --git a/UefiPayloadPkg/UefiPayloadPkg.fdf b/UefiPayloadPkg/UefiPayloadPkg.fdf
> index 647df997f5..afb57612f7 100644
> --- a/UefiPayloadPkg/UefiPayloadPkg.fdf
> +++ b/UefiPayloadPkg/UefiPayloadPkg.fdf
> @@ -17,8 +17,8 @@ DEFINE FD_SIZE     = 0x00850000
>  DEFINE NUM_BLOCKS  = 0x850
>  !else
> 
> -DEFINE FD_SIZE     = 0x00440000
> -DEFINE NUM_BLOCKS  = 0x440
> +DEFINE FD_SIZE     = 0x00470000
> +DEFINE NUM_BLOCKS  = 0x470
>  !endif
> 
>  ################################################################################
> @@ -205,6 +205,15 @@ INF  MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
>  INF  MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableDxe/FirmwarePerformanceDxe.inf
>  INF  MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
> 
> +!if $(ENABLE_TCG_SUPPORT) == TRUE
> +INF SecurityPkg/Tcg/MemoryOverwriteControl/TcgMor.inf
> +INF SecurityPkg/Tcg/TcgConfigDxe/TcgConfigDxe.inf
> +INF SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf
> +INF SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf
> +INF SecurityPkg/Tcg/TcgDxe/TcgDxe.inf
> +INF SecurityPkg/Tcg/Tcg2Acpi/Tcg2Acpi.inf
> +!endif
> +
>  #
>  # Shell
>  #
> --
> 2.30.2.windows.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-25  0:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20210824053402.12648-1-k.kavyax.sravanthi@intel.com>
2021-08-25  0:33 ` [PATCH] UefiPayloadPkg: Include TCG modules in UefiPayloadPkg Ni, Ray

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox