public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Ard Biesheuvel" <ard.biesheuvel@linaro.org>
To: Hao A Wu <hao.a.wu@intel.com>
Cc: edk2-devel-groups-io <devel@edk2.groups.io>,
	Leif Lindholm <leif.lindholm@linaro.org>,
	 Michael D Kinney <michael.d.kinney@intel.com>
Subject: Re: [edk2-platforms][PATCH v1 11/16] Silicon/Hisilicon/Smbios: Drop IntelFramework[Module]Pkg dependency
Date: Fri, 17 May 2019 17:43:00 +0200	[thread overview]
Message-ID: <CAKv+Gu-TBjNataGi5NP5DCDScEkYaEVpN15x4=xMq6zOg9KPjg@mail.gmail.com> (raw)
In-Reply-To: <20190514020831.7728-14-hao.a.wu@intel.com>

On Tue, 14 May 2019 at 04:08, Hao A Wu <hao.a.wu@intel.com> wrote:
>
> REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1800
>
> The below 3 Smbios drivers have dependency on IntelFramework[Module]Pkg:
> * MemorySubClassDxe
> * ProcessorSubClassDxe
> * SmbiosMiscDxe
>
> Their dependency is on the header file:
> IntelFrameworkPkg/Include/FrameworkDxe.h
>
> for definition 'STRING_REF'. This definition can be replaced by
> 'EFI_STRING_ID', which is defined within MdePkg.
>
> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> Cc: Leif Lindholm <leif.lindholm@linaro.org>
> Cc: Michael D Kinney <michael.d.kinney@intel.com>
> Signed-off-by: Hao A Wu <hao.a.wu@intel.com>

Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>

> ---
>  Silicon/Hisilicon/Drivers/Smbios/MemorySubClassDxe/MemorySubClassDxe.inf                  | 2 --
>  Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf            | 1 -
>  Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf                          | 2 --
>  Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMisc.h                               | 1 -
>  Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c                 | 4 +---
>  Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/Type00/MiscBiosVendorFunction.c            | 4 ++--
>  Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/Type01/MiscSystemManufacturerFunction.c    | 4 ++--
>  Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/Type02/MiscBaseBoardManufacturerFunction.c | 4 ++--
>  Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/Type03/MiscChassisManufacturerFunction.c   | 2 +-
>  Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/Type09/MiscSystemSlotDesignationFunction.c | 4 ++--
>  10 files changed, 10 insertions(+), 18 deletions(-)
>
> diff --git a/Silicon/Hisilicon/Drivers/Smbios/MemorySubClassDxe/MemorySubClassDxe.inf b/Silicon/Hisilicon/Drivers/Smbios/MemorySubClassDxe/MemorySubClassDxe.inf
> index 94f6fe404c..a4e2a255f5 100644
> --- a/Silicon/Hisilicon/Drivers/Smbios/MemorySubClassDxe/MemorySubClassDxe.inf
> +++ b/Silicon/Hisilicon/Drivers/Smbios/MemorySubClassDxe/MemorySubClassDxe.inf
> @@ -28,8 +28,6 @@
>  [Packages]
>    MdePkg/MdePkg.dec
>    MdeModulePkg/MdeModulePkg.dec
> -  IntelFrameworkPkg/IntelFrameworkPkg.dec
> -  IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec
>
>    Silicon/Hisilicon/HisiliconNonOsi.dec
>    Silicon/Hisilicon/HisiPkg.dec
> diff --git a/Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf b/Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf
> index 808da65cd4..9dfa3f879f 100644
> --- a/Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf
> +++ b/Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf
> @@ -30,7 +30,6 @@
>    ArmPkg/ArmPkg.dec
>    MdePkg/MdePkg.dec
>    MdeModulePkg/MdeModulePkg.dec
> -  IntelFrameworkPkg/IntelFrameworkPkg.dec
>
>    Silicon/Hisilicon/HisiliconNonOsi.dec
>    Silicon/Hisilicon/HisiPkg.dec
> diff --git a/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf b/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf
> index 0c37b53af9..e38d2ac1e9 100644
> --- a/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf
> +++ b/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf
> @@ -56,8 +56,6 @@
>    ArmPkg/ArmPkg.dec
>    MdePkg/MdePkg.dec
>    MdeModulePkg/MdeModulePkg.dec
> -  IntelFrameworkPkg/IntelFrameworkPkg.dec
> -  IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec
>    Silicon/Hisilicon/HisiliconNonOsi.dec
>    Silicon/Hisilicon/HisiPkg.dec
>
> diff --git a/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMisc.h b/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMisc.h
> index 66f9db9665..3bf3cbdd1c 100644
> --- a/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMisc.h
> +++ b/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/SmbiosMisc.h
> @@ -25,7 +25,6 @@ Based on files under Nt32Pkg/MiscSubClassPlatformDxe/
>  #ifndef _SMBIOS_MISC_DRIVER_H
>  #define _SMBIOS_MISC_DRIVER_H
>
> -#include <FrameworkDxe.h>
>  #include <Protocol/Smbios.h>
>  #include <IndustryStandard/SmBios.h>
>  #include <Library/HiiLib.h>
> diff --git a/Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c b/Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c
> index c9903ba535..f2f88e7d86 100644
> --- a/Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c
> +++ b/Silicon/Hisilicon/Drivers/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c
> @@ -15,8 +15,6 @@
>
>  #include "ProcessorSubClass.h"
>
> -#include <FrameworkDxe.h>
> -
>  EFI_HII_HANDLE                  mHiiHandle;
>
>  EFI_SMBIOS_PROTOCOL             *mSmbios;
> @@ -487,7 +485,7 @@ AddSmbiosProcessorTypeTable (
>      PROCESSOR_CHARACTERISTICS_DATA  ProcessorCharacteristics = {{0}};
>
>      CHAR16                      *CpuVersion;
> -    STRING_REF                  TokenToUpdate;
> +    EFI_STRING_ID               TokenToUpdate;
>
>      UINT64                      *ProcessorId;
>      Type4Record         = NULL;
> diff --git a/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/Type00/MiscBiosVendorFunction.c b/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/Type00/MiscBiosVendorFunction.c
> index 9a42f04085..6c15a804c2 100644
> --- a/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/Type00/MiscBiosVendorFunction.c
> +++ b/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/Type00/MiscBiosVendorFunction.c
> @@ -128,8 +128,8 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscBiosVendor)
>      CHAR16                *ReleaseDate;
>      CHAR16                *Char16String;
>      EFI_STATUS            Status;
> -    STRING_REF            TokenToUpdate;
> -    STRING_REF            TokenToGet;
> +    EFI_STRING_ID         TokenToUpdate;
> +    EFI_STRING_ID         TokenToGet;
>      SMBIOS_TABLE_TYPE0    *SmbiosRecord;
>      EFI_SMBIOS_HANDLE     SmbiosHandle;
>      SMBIOS_TABLE_TYPE0    *InputData;
> diff --git a/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/Type01/MiscSystemManufacturerFunction.c b/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/Type01/MiscSystemManufacturerFunction.c
> index 5e965c996c..8baf0bbc67 100644
> --- a/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/Type01/MiscSystemManufacturerFunction.c
> +++ b/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/Type01/MiscSystemManufacturerFunction.c
> @@ -52,12 +52,12 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscSystemManufacturer)
>      EFI_STRING                      SerialNumber;
>      EFI_STRING                      SKUNumber;
>      EFI_STRING                      Family;
> -    STRING_REF                      TokenToGet;
> +    EFI_STRING_ID                   TokenToGet;
>      EFI_SMBIOS_HANDLE               SmbiosHandle;
>      SMBIOS_TABLE_TYPE1              *SmbiosRecord;
>      SMBIOS_TABLE_TYPE1              *InputData;
>      EFI_STATUS                      Status;
> -    STRING_REF                      TokenToUpdate;
> +    EFI_STRING_ID                   TokenToUpdate;
>      CHAR16                          *Product;
>      CHAR16                          *pVersion;
>
> diff --git a/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/Type02/MiscBaseBoardManufacturerFunction.c b/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/Type02/MiscBaseBoardManufacturerFunction.c
> index a141f9e7d7..cef6887d3f 100644
> --- a/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/Type02/MiscBaseBoardManufacturerFunction.c
> +++ b/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/Type02/MiscBaseBoardManufacturerFunction.c
> @@ -54,13 +54,13 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscBaseBoardManufacturer)
>      EFI_STRING                        SerialNumber;
>      EFI_STRING                        AssetTag;
>      EFI_STRING                        ChassisLocation;
> -    STRING_REF                        TokenToGet;
> +    EFI_STRING_ID                     TokenToGet;
>      EFI_SMBIOS_HANDLE                 SmbiosHandle;
>      SMBIOS_TABLE_TYPE2                *SmbiosRecord;
>      SMBIOS_TABLE_TYPE2                *InputData = NULL;
>      EFI_STATUS                        Status;
>
> -    STRING_REF                        TokenToUpdate;
> +    EFI_STRING_ID                     TokenToUpdate;
>      //CHAR16                            *ProductName;
>      //CHAR16                            *pVersion;
>      //uniBIOS_y00216284_018_end 2015-1-13 09:08:22
> diff --git a/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/Type03/MiscChassisManufacturerFunction.c b/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/Type03/MiscChassisManufacturerFunction.c
> index 4bb170117d..6f6f354b91 100644
> --- a/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/Type03/MiscChassisManufacturerFunction.c
> +++ b/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/Type03/MiscChassisManufacturerFunction.c
> @@ -67,7 +67,7 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscChassisManufacturer)
>      EFI_STRING                      SerialNumber;
>      EFI_STRING                      AssertTag;
>      EFI_STRING                      ChassisSkuNumber;
> -    STRING_REF                      TokenToGet;
> +    EFI_STRING_ID                   TokenToGet;
>      EFI_SMBIOS_HANDLE               SmbiosHandle;
>      SMBIOS_TABLE_TYPE3              *SmbiosRecord;
>      SMBIOS_TABLE_TYPE3              *InputData;
> diff --git a/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/Type09/MiscSystemSlotDesignationFunction.c b/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/Type09/MiscSystemSlotDesignationFunction.c
> index 945fd4c6e3..0fa4903460 100644
> --- a/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/Type09/MiscSystemSlotDesignationFunction.c
> +++ b/Silicon/Hisilicon/Drivers/Smbios/SmbiosMiscDxe/Type09/MiscSystemSlotDesignationFunction.c
> @@ -29,7 +29,7 @@ UpdateSlotDesignation (
>    IN SMBIOS_TABLE_TYPE9 *InputData
>    )
>  {
> -    STRING_REF                      TokenToUpdate;
> +    EFI_STRING_ID                   TokenToUpdate;
>      CHAR16                          *SlotDesignation;
>      UINTN                           DesignationStrLen;
>
> @@ -140,7 +140,7 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscSystemSlotDesignation)
>      UINTN                              SlotDesignationStrLen;
>      EFI_STATUS                         Status;
>      EFI_STRING                         SlotDesignation;
> -    STRING_REF                         TokenToGet;
> +    EFI_STRING_ID                      TokenToGet;
>      SMBIOS_TABLE_TYPE9                 *SmbiosRecord;
>      EFI_SMBIOS_HANDLE                  SmbiosHandle;
>      SMBIOS_TABLE_TYPE9                 *InputData = NULL;
> --
> 2.12.0.windows.1
>

  reply	other threads:[~2019-05-17 15:43 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-14  2:08 [edk2-platforms][PATCH v1 00/16] Drop IntelFramework[Module]Pkg dependency Wu, Hao A
2019-05-14  2:08 ` [edk2-platforms][PATCH v1 01/16] Platform/AMD: Use Lzma decompress lib in MdeModulePkg Wu, Hao A
2019-05-17 15:20   ` Ard Biesheuvel
2019-05-14  2:08 ` [PATCH 1/2] Platform/BeagleBoard: Use ReportStatusCodeLib " Wu, Hao A
2019-05-14  2:09   ` [edk2-devel] " Wu, Hao A
2019-05-14 15:13   ` Leif Lindholm
2019-05-15  0:30     ` [edk2-devel] " Wu, Hao A
2019-05-14  2:08 ` [PATCH 2/2] Platform/BeagleBoard: Drop the consume of PcdShellFile Wu, Hao A
2019-05-14  2:09   ` [edk2-devel] " Wu, Hao A
2019-05-14 15:13   ` Leif Lindholm
2019-05-17 15:25     ` Ard Biesheuvel
2019-05-14  2:08 ` [edk2-platforms][PATCH v1 02/16] Platform/BeagleBoard: Use ReportStatusCodeLib in MdeModulePkg Wu, Hao A
2019-05-15 19:44   ` [edk2-devel] " Leif Lindholm
2019-05-17 15:24   ` Ard Biesheuvel
2019-05-17 16:02     ` Leif Lindholm
2019-05-17 16:05       ` Ard Biesheuvel
2019-05-17 16:11         ` Ard Biesheuvel
2019-05-14  2:08 ` [edk2-platforms][PATCH v1 03/16] Platform/BeagleBoard: Drop the consume of PcdShellFile Wu, Hao A
2019-05-14  2:08 ` [edk2-platforms][PATCH v1 04/16] Hisilicon/D0x: Use Lzma decompress lib in MdeModulePkg Wu, Hao A
2019-05-17 15:26   ` [edk2-devel] " Ard Biesheuvel
2019-05-14  2:08 ` [edk2-platforms][PATCH v1 05/16] Hisilicon/D0x: Drop the consume of GenericBdsLib & PlatformBdsLib Wu, Hao A
2019-05-17 15:27   ` [edk2-devel] " Ard Biesheuvel
2019-05-14  2:08 ` [edk2-platforms][PATCH v1 06/16] Hisilicon/D0x: Use StatusCode Router & Handler in MdeModulePkg Wu, Hao A
2019-05-15 19:47   ` Leif Lindholm
2019-05-17 15:33     ` Ard Biesheuvel
2019-05-20  8:49       ` [edk2-devel] " Wu, Hao A
2019-05-22  3:27         ` Ni, Ray
2019-05-27 12:11       ` ming.huang
2019-05-14  2:08 ` [edk2-platforms][PATCH v1 07/16] Hisilicon/D06: Drop the consume of PcdShellFile Wu, Hao A
2019-05-17 15:34   ` Ard Biesheuvel
2019-05-14  2:08 ` [edk2-platforms][PATCH v1 08/16] Silicon/Hisilicon: Use Lzma decompress lib in MdeModulePkg Wu, Hao A
2019-05-17 15:37   ` Ard Biesheuvel
2019-05-14  2:08 ` [edk2-platforms][PATCH v1 09/16] Silicon/Hisilicon: Use ReportStatusCodeLib (DXE) " Wu, Hao A
2019-05-15 19:48   ` [edk2-devel] " Leif Lindholm
2019-05-14  2:08 ` [edk2-platforms][PATCH v1 10/16] Silicon/Hisilicon: Use DebugLib (DXE_RUNTIME_DRIVER) " Wu, Hao A
2019-05-17 15:41   ` Ard Biesheuvel
2019-05-14  2:08 ` [edk2-platforms][PATCH v1 11/16] Silicon/Hisilicon/Smbios: Drop IntelFramework[Module]Pkg dependency Wu, Hao A
2019-05-17 15:43   ` Ard Biesheuvel [this message]
2019-05-14  2:08 ` [edk2-platforms][PATCH v1 12/16] Silicon/Hisilicon/PlatformIntelBdsLib: Remove Hisilicon PlatformBdsLib Wu, Hao A
2019-05-17 15:43   ` Ard Biesheuvel
2019-05-14  2:08 ` [edk2-platforms][PATCH v1 13/16] Platform/LeMaker: Use Lzma decompress lib in MdeModulePkg Wu, Hao A
2019-05-17 15:44   ` Ard Biesheuvel
2019-05-14  2:08 ` [edk2-platforms][PATCH v1 14/16] Platform/LeMaker: Use ReportStatusCodeLib " Wu, Hao A
2019-05-15 19:51   ` Leif Lindholm
2019-05-17 15:45   ` Ard Biesheuvel
2019-05-17 16:04     ` Leif Lindholm
2019-05-14  2:08 ` [edk2-platforms][PATCH v1 15/16] Platform/SoftIron: Use Lzma decompress lib " Wu, Hao A
2019-05-17 15:45   ` Ard Biesheuvel
2019-05-14  2:08 ` [edk2-platforms][PATCH v1 16/16] Platform/SoftIron: Use ReportStatusCodeLib " Wu, Hao A
2019-05-17 15:46   ` Ard Biesheuvel
2019-05-17 16:04     ` Leif Lindholm
2019-05-14  2:10 ` [edk2-devel] [edk2-platforms][PATCH v1 00/16] Drop IntelFramework[Module]Pkg dependency Wu, Hao A
2019-05-15 20:01 ` Leif Lindholm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAKv+Gu-TBjNataGi5NP5DCDScEkYaEVpN15x4=xMq6zOg9KPjg@mail.gmail.com' \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox