mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
DuetPkg: Fix GCC error to avoid the duplicated global variable in SmbiosGenDxe
Update SmbiosGenDxe to use UefiHiiServicesLib. (Sync patch r19339 from main trunk.) 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/branches/UDK2015@19356 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
bb44a4d107
commit
b95380aa26
3 changed files with 2 additions and 11 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue