summaryrefslogtreecommitdiff
path: root/DuetPkg
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2008-03-20 09:07:41 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2008-03-20 09:07:41 +0000
commit91aac0e4668b80f99d4d8f1f92225a3745d83dbd (patch)
tree60b951f15c0672980ea2c2e88a136147750f6e30 /DuetPkg
parent6d87c34485a7491f557321361bb2be15ac197f83 (diff)
downloadedk2-platforms-91aac0e4668b80f99d4d8f1f92225a3745d83dbd.tar.xz
Rebase the duet module with new HII modifications.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4927 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'DuetPkg')
-rw-r--r--DuetPkg/DataHubGenDxe/DataHubGen.c33
-rw-r--r--DuetPkg/DataHubGenDxe/DataHubGen.inf4
-rw-r--r--DuetPkg/DuetPkg.dsc4
-rw-r--r--DuetPkg/DxeIpl/DxeIpl.inf10
4 files changed, 18 insertions, 33 deletions
diff --git a/DuetPkg/DataHubGenDxe/DataHubGen.c b/DuetPkg/DataHubGenDxe/DataHubGen.c
index 8e59de1c33..5d38505e13 100644
--- a/DuetPkg/DataHubGenDxe/DataHubGen.c
+++ b/DuetPkg/DataHubGenDxe/DataHubGen.c
@@ -55,20 +55,6 @@ GetSmbiosTablesFromHob (
return NULL;
}
-EFI_STATUS
-PrepareHiiPackage (
- VOID
- )
-{
- EFI_HII_PACKAGES *PackageList;
- EFI_STATUS Status;
-
- PackageList = PreparePackages (1, &gEfiMiscProducerGuid, DataHubGenDxeStrings);
- Status = gHii->NewPack (gHii, PackageList, &gStringHandle);
-
- return Status;
-}
-
EFI_SUBCLASS_TYPE1_HEADER mCpuDataRecordHeader = {
EFI_PROCESSOR_SUBCLASS_VERSION, // Version
sizeof (EFI_SUBCLASS_TYPE1_HEADER), // Header Size
@@ -126,8 +112,7 @@ InstallProcessorDataHub (
ASSERT (UString != NULL);
AsciiStrToUnicodeStr (AString, UString);
- Token = 0;
- Status = gHii->NewString (gHii, NULL, gStringHandle, &Token, UString);
+ Status = HiiLibNewString (gStringHandle, &Token, UString);
if (EFI_ERROR (Status)) {
gBS->FreePool (UString);
@@ -256,8 +241,7 @@ InstallMiscDataHub (
CopyMem (UString, FIRMWARE_BIOS_VERSIONE, sizeof(FIRMWARE_BIOS_VERSIONE));
AsciiStrToUnicodeStr (AString, UString + sizeof(FIRMWARE_BIOS_VERSIONE) / sizeof(CHAR16) - 1);
- Token = 0;
- Status = gHii->NewString (gHii, NULL, gStringHandle, &Token, UString);
+ Status = HiiLibNewString (gStringHandle, &Token, UString);
if (EFI_ERROR (Status)) {
gBS->FreePool (UString);
@@ -306,12 +290,8 @@ InstallMiscDataHub (
CopyMem (UString, FIRMWARE_PRODUCT_NAME, sizeof(FIRMWARE_PRODUCT_NAME));
AsciiStrToUnicodeStr (AString, UString + sizeof(FIRMWARE_PRODUCT_NAME) / sizeof(CHAR16) - 1);
-#if (EFI_SPECIFICATION_VERSION >= 0x0002000A)
- Status = IfrLibNewString (gStringHandle, &Token, UString);
-#else
- Token = 0;
- Status = gHii->NewString (gHii, NULL, gStringHandle, &Token, UString);
-#endif
+ Status = HiiLibNewString (gStringHandle, &Token, UString);
+
if (EFI_ERROR (Status)) {
gBS->FreePool (UString);
return ;
@@ -350,7 +330,6 @@ DataHubGenEntrypoint (
EFI_STATUS Status;
VOID *Smbios;
-
Smbios = GetSmbiosTablesFromHob ();
if (Smbios == NULL) {
return EFI_NOT_FOUND;
@@ -381,8 +360,8 @@ DataHubGenEntrypoint (
if (EFI_ERROR (Status)) {
return Status;
}
-
- PrepareHiiPackage ();
+
+ HiiLibAddPackages (1, &gEfiMiscProducerGuid, NULL, &gStringHandle, DataHubGenDxeStrings);
InstallProcessorDataHub (Smbios);
InstallCacheDataHub (Smbios);
diff --git a/DuetPkg/DataHubGenDxe/DataHubGen.inf b/DuetPkg/DataHubGenDxe/DataHubGen.inf
index fde36e334c..58ff185b39 100644
--- a/DuetPkg/DataHubGenDxe/DataHubGen.inf
+++ b/DuetPkg/DataHubGenDxe/DataHubGen.inf
@@ -42,7 +42,7 @@
MemoryAllocationLib
UefiDriverEntryPoint
BaseLib
- FrameworkHiiLib
+ HiiLib
[Sources.common]
DataHubGen.c
@@ -51,13 +51,13 @@
[Guids.common]
gEfiProcessorSubClassGuid
- gEfiHiiProtocolGuid
gEfiMiscSubClassGuid
gEfiDataHubProtocolGuid
gEfiSmbiosTableGuid
gEfiMiscProducerGuid
gEfiMemorySubClassGuid
gEfiMemoryProducerGuid
+ gEfiHiiProtocolGuid
[Depex]
gEfiDataHubProtocolGuid AND gEfiHiiProtocolGuid \ No newline at end of file
diff --git a/DuetPkg/DuetPkg.dsc b/DuetPkg/DuetPkg.dsc
index 07ae2e4cd0..3cd902fc83 100644
--- a/DuetPkg/DuetPkg.dsc
+++ b/DuetPkg/DuetPkg.dsc
@@ -23,7 +23,9 @@
UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
- FrameworkHiiLib|IntelFrameworkPkg/Library/FrameworkHiiLib/HiiLib.inf
+ HiiLib|MdePkg/Library/HiiLib/HiiLib.inf
+ UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
+ DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
[LibraryClasses.common.DXE_DRIVER]
MemoryAllocationLib|MdePkg/Library/DxeMemoryAllocationLib/DxeMemoryAllocationLib.inf
diff --git a/DuetPkg/DxeIpl/DxeIpl.inf b/DuetPkg/DxeIpl/DxeIpl.inf
index cfe109c86c..0e6d1fb585 100644
--- a/DuetPkg/DxeIpl/DxeIpl.inf
+++ b/DuetPkg/DxeIpl/DxeIpl.inf
@@ -20,7 +20,7 @@
INF_VERSION = 0x00010005
BASE_NAME = DxeIpl
FILE_GUID = 2119BBD7-9432-4f47-B5E2-5C4EA31B6BDC
- MODULE_TYPE = PEIM
+ MODULE_TYPE = USER_DEFINED
VERSION_STRING = 1.0
EDK_RELEASE_VERSION = 0x00020000
EFI_SPECIFICATION_VERSION = 0x00020000
@@ -37,7 +37,6 @@
BaseLib
BaseMemoryLib
PrintLib
- PeimEntryPoint
ReportStatusCodeLib
[Sources.common]
@@ -66,4 +65,9 @@
Ia32\Paging.c
Ia32\VirtualMemory.h
-
+[BuildOptions.common]
+ #MSFT:*_*_IA32_DLINK_FLAGS = /out:"$(BIN_DIR)\SecMain.exe" /base:0x10000000 /pdb:"$(BIN_DIR)\SecMain.pdb" /LIBPATH:"$(VCINSTALLDIR)\Lib" /LIBPATH:"$(VCINSTALLDIR)\PlatformSdk\Lib" /NOLOGO /SUBSYSTEM:CONSOLE /NODEFAULTLIB /IGNORE:4086 /MAP /OPT:REF /DEBUG /MACHINE:I386 /LTCG Kernel32.lib MSVCRTD.lib Gdi32.lib User32.lib Winmm.lib
+ MSFT:*_*_IA32_CC_FLAGS = /nologo /W4 /WX /Gy /c /D UNICODE /Od /FI$(DEST_DIR_DEBUG)/AutoGen.h /EHs-c- /GF /Gs8192 /Zi /Gm /D _CRT_SECURE_NO_WARNINGS /D _CRT_SECURE_NO_DEPRECATE
+ MSFT:*_*_IA32_PP_FLAGS = /nologo /E /TC /FI$(DEST_DIR_DEBUG)/AutoGen.h
+ MSFT:*_*_IA32_ASM_FLAGS = /nologo /W3 /WX /c /coff /Cx /Zd /W0 /Zi
+ MSFT:*_*_IA32_ASMLINK_FLAGS = /link /nologo /tiny