mirror of https://github.com/acidanthera/audk.git
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:
parent
031950dfdc
commit
bd6bb560a4
|
@ -18,7 +18,6 @@ Abstract:
|
|||
**/
|
||||
|
||||
#include "SmbiosGen.h"
|
||||
EFI_HII_DATABASE_PROTOCOL *gHiiDatabase;
|
||||
extern UINT8 SmbiosGenDxeStrings[];
|
||||
EFI_SMBIOS_PROTOCOL *gSmbios;
|
||||
EFI_HII_HANDLE gStringHandle;
|
||||
|
@ -211,16 +210,6 @@ SmbiosGenEntrypoint (
|
|||
if (EFI_ERROR (Status)) {
|
||||
return Status;
|
||||
}
|
||||
|
||||
Status = gBS->LocateProtocol (
|
||||
&gEfiHiiDatabaseProtocolGuid,
|
||||
NULL,
|
||||
(VOID**)&gHiiDatabase
|
||||
);
|
||||
|
||||
if (EFI_ERROR (Status)) {
|
||||
return Status;
|
||||
}
|
||||
|
||||
gStringHandle = HiiAddPackages (
|
||||
&gEfiCallerIdGuid,
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
UefiDriverEntryPoint
|
||||
BaseLib
|
||||
HiiLib
|
||||
UefiHiiServicesLib
|
||||
|
||||
[Sources]
|
||||
SmbiosGen.c
|
||||
|
|
Loading…
Reference in New Issue