DuetPkg: Fix GCC error to avoid the duplicated global variable in SmbiosGenDxe

Update SmbiosGenDxe to use UefiHiiServicesLib.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19339 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Liming Gao 2015-12-18 02:29:12 +00:00 committed by lgao4
parent 031950dfdc
commit bd6bb560a4
3 changed files with 2 additions and 11 deletions

View File

@ -18,7 +18,6 @@ Abstract:
**/
#include "SmbiosGen.h"
EFI_HII_DATABASE_PROTOCOL *gHiiDatabase;
extern UINT8 SmbiosGenDxeStrings[];
EFI_SMBIOS_PROTOCOL *gSmbios;
EFI_HII_HANDLE gStringHandle;
@ -212,16 +211,6 @@ SmbiosGenEntrypoint (
return Status;
}
Status = gBS->LocateProtocol (
&gEfiHiiDatabaseProtocolGuid,
NULL,
(VOID**)&gHiiDatabase
);
if (EFI_ERROR (Status)) {
return Status;
}
gStringHandle = HiiAddPackages (
&gEfiCallerIdGuid,
NULL,

View File

@ -39,6 +39,7 @@ Abstract:
#include <Library/DebugLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/UefiHiiServicesLib.h>
#define PRODUCT_NAME L"DUET"
#define PRODUCT_VERSION L"Beta"

View File

@ -41,6 +41,7 @@
UefiDriverEntryPoint
BaseLib
HiiLib
UefiHiiServicesLib
[Sources]
SmbiosGen.c