mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 16:14:04 +02:00
Change name to remove Template
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9877 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
76a689b573
commit
e4dbec73c5
@ -55,6 +55,7 @@
|
|||||||
gEmbeddedDeviceGuid = { 0xbf4b9d10, 0x13ec, 0x43dd, { 0x88, 0x80, 0xe9, 0xb, 0x71, 0x8f, 0x27, 0xde } }
|
gEmbeddedDeviceGuid = { 0xbf4b9d10, 0x13ec, 0x43dd, { 0x88, 0x80, 0xe9, 0xb, 0x71, 0x8f, 0x27, 0xde } }
|
||||||
gEmbeddedExternalDeviceProtocolGuid = { 0x735F8C64, 0xD696, 0x44D0, { 0xBD, 0xF2, 0x44, 0x7F, 0xD0, 0x5A, 0x54, 0x06 }}
|
gEmbeddedExternalDeviceProtocolGuid = { 0x735F8C64, 0xD696, 0x44D0, { 0xBD, 0xF2, 0x44, 0x7F, 0xD0, 0x5A, 0x54, 0x06 }}
|
||||||
gEmbeddedGpioProtocolGuid = { 0x17a0a3d7, 0xc0a5, 0x4635, { 0xbb, 0xd5, 0x07, 0x21, 0x87, 0xdf, 0xe2, 0xee }}
|
gEmbeddedGpioProtocolGuid = { 0x17a0a3d7, 0xc0a5, 0x4635, { 0xbb, 0xd5, 0x07, 0x21, 0x87, 0xdf, 0xe2, 0xee }}
|
||||||
|
gPeCoffLoaderProtocolGuid = { 0xB323179B, 0x97FB, 0x477E, { 0xB0, 0xFE, 0xD8, 0x85, 0x91, 0xFA, 0x11, 0xAB } }
|
||||||
|
|
||||||
[PcdsFeatureFlag.common]
|
[PcdsFeatureFlag.common]
|
||||||
gEmbeddedTokenSpaceGuid.PcdEmbeddedMacBoot|FALSE|BOOLEAN|0x00000001
|
gEmbeddedTokenSpaceGuid.PcdEmbeddedMacBoot|FALSE|BOOLEAN|0x00000001
|
||||||
|
@ -117,6 +117,10 @@
|
|||||||
[LibraryClasses.ARM]
|
[LibraryClasses.ARM]
|
||||||
SemihostLib|ArmPkg/Library/SemihostLib/SemihostLib.inf
|
SemihostLib|ArmPkg/Library/SemihostLib/SemihostLib.inf
|
||||||
|
|
||||||
|
[LibraryClasses.ARM]
|
||||||
|
NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
# Pcd Section - list of all PCD Entries defined by this Platform
|
# Pcd Section - list of all PCD Entries defined by this Platform
|
||||||
@ -242,9 +246,7 @@
|
|||||||
EmbeddedPkg/Library/TemplateSerialPortLib/TemplateSerialPortLib.inf
|
EmbeddedPkg/Library/TemplateSerialPortLib/TemplateSerialPortLib.inf
|
||||||
EmbeddedPkg/Library/TemplateResetSystemLib/TemplateResetSystemLib.inf
|
EmbeddedPkg/Library/TemplateResetSystemLib/TemplateResetSystemLib.inf
|
||||||
EmbeddedPkg/Library/TemplateRealTimeClockLib/TemplateRealTimeClockLib.inf
|
EmbeddedPkg/Library/TemplateRealTimeClockLib/TemplateRealTimeClockLib.inf
|
||||||
|
EmbeddedPkg/Library/LzmaHobCustomDecompressLib/LzmaHobCustomDecompressLib.inf
|
||||||
####ArmPkg/Library/UncachedMemoryAllocationLib/UncachedMemoryAllocationLib.inf ???
|
|
||||||
|
|
||||||
|
|
||||||
EmbeddedPkg/Ebl/Ebl.inf
|
EmbeddedPkg/Ebl/Ebl.inf
|
||||||
#### EmbeddedPkg/EblExternCmd/EblExternCmd.inf
|
#### EmbeddedPkg/EblExternCmd/EblExternCmd.inf
|
||||||
@ -255,7 +257,6 @@
|
|||||||
EmbeddedPkg/SerialDxe/SerialDxe.inf
|
EmbeddedPkg/SerialDxe/SerialDxe.inf
|
||||||
EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOutSerial.inf
|
EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOutSerial.inf
|
||||||
EmbeddedPkg/TemplateBds/TemplateBds.inf
|
EmbeddedPkg/TemplateBds/TemplateBds.inf
|
||||||
EmbeddedPkg/TemplateCpuDxe/TemplateCpuDxe.inf
|
|
||||||
EmbeddedPkg/TemplateMetronomeDxe/TemplateMetronomeDxe.inf
|
EmbeddedPkg/TemplateMetronomeDxe/TemplateMetronomeDxe.inf
|
||||||
EmbeddedPkg/TemplateSec/TemplateSec.inf
|
EmbeddedPkg/TemplateSec/TemplateSec.inf
|
||||||
EmbeddedPkg/TemplateTimerDxe/TemplateTimerDxe.inf
|
EmbeddedPkg/TemplateTimerDxe/TemplateTimerDxe.inf
|
||||||
|
@ -16,6 +16,8 @@
|
|||||||
#ifndef __PRE_PI_LIB_H__
|
#ifndef __PRE_PI_LIB_H__
|
||||||
#define __PRE_PI_LIB_H__
|
#define __PRE_PI_LIB_H__
|
||||||
|
|
||||||
|
#include <Guid/ExtractSection.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This service enables discovery of additional firmware volumes.
|
This service enables discovery of additional firmware volumes.
|
||||||
|
|
||||||
@ -665,6 +667,20 @@ BuildMemoryAllocationHob (
|
|||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
VOID
|
||||||
|
EFIAPI
|
||||||
|
BuildExtractSectionHob (
|
||||||
|
IN EFI_GUID *Guid,
|
||||||
|
IN EXTRACT_GUIDED_SECTION_GET_INFO_HANDLER SectionGetInfo,
|
||||||
|
IN EXTRACT_GUIDED_SECTION_DECODE_HANDLER SectionExtraction
|
||||||
|
);
|
||||||
|
|
||||||
|
VOID
|
||||||
|
EFIAPI
|
||||||
|
BuildPeCoffLoaderHob (
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Allocates one or more 4KB pages of type EfiBootServicesData.
|
Allocates one or more 4KB pages of type EfiBootServicesData.
|
||||||
|
|
||||||
|
@ -15,12 +15,11 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include <PiDxe.h>
|
#include <Uefi.h>
|
||||||
#include <Library/BaseLib.h>
|
|
||||||
#include <Library/EblAddExternalCommandLib.h>
|
|
||||||
#include <Library/UefiBootServicesTableLib.h>
|
|
||||||
#include <Library/UefiLib.h>
|
#include <Library/UefiLib.h>
|
||||||
|
#include <Library/UefiBootServicesTableLib.h>
|
||||||
|
#include <Library/EblAddExternalCommandLib.h>
|
||||||
|
#include <Protocol/EblAddCommand.h>
|
||||||
|
|
||||||
STATIC BOOLEAN gInstalledCommand = FALSE;
|
STATIC BOOLEAN gInstalledCommand = FALSE;
|
||||||
STATIC EFI_EVENT mEblCommandRegistration = NULL;
|
STATIC EFI_EVENT mEblCommandRegistration = NULL;
|
||||||
|
@ -39,8 +39,10 @@
|
|||||||
[LibraryClasses]
|
[LibraryClasses]
|
||||||
UefiBootServicesTableLib
|
UefiBootServicesTableLib
|
||||||
UefiLib
|
UefiLib
|
||||||
|
EblAddExternalCommandLib
|
||||||
|
|
||||||
[Protocols]
|
[Protocols]
|
||||||
|
gEfiEblAddCommandProtocolGuid
|
||||||
|
|
||||||
[Guids]
|
[Guids]
|
||||||
|
|
@ -13,7 +13,10 @@
|
|||||||
**/
|
**/
|
||||||
|
|
||||||
#include <PrePi.h>
|
#include <PrePi.h>
|
||||||
|
#include <Protocol/PeCoffLoader.h>
|
||||||
|
#include <Guid/ExtractSection.h>
|
||||||
#include <Guid/MemoryTypeInformation.h>
|
#include <Guid/MemoryTypeInformation.h>
|
||||||
|
#include <Library/PeCoffLib.H>
|
||||||
|
|
||||||
//
|
//
|
||||||
// Have to use build system to set the original value in case we are running
|
// Have to use build system to set the original value in case we are running
|
||||||
@ -806,3 +809,48 @@ BuildMemoryAllocationHob (
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
VOID
|
||||||
|
EFIAPI
|
||||||
|
BuildExtractSectionHob (
|
||||||
|
IN EFI_GUID *Guid,
|
||||||
|
IN EXTRACT_GUIDED_SECTION_GET_INFO_HANDLER SectionGetInfo,
|
||||||
|
IN EXTRACT_GUIDED_SECTION_DECODE_HANDLER SectionExtraction
|
||||||
|
)
|
||||||
|
{
|
||||||
|
EXTRACT_SECTION_HOB Hob;
|
||||||
|
|
||||||
|
Hob.SectionGetInfo = SectionGetInfo;
|
||||||
|
Hob.SectionExtraction = SectionExtraction;
|
||||||
|
BuildGuidDataHob (Guid, &Hob, sizeof (EXTRACT_SECTION_HOB));
|
||||||
|
}
|
||||||
|
|
||||||
|
PE_COFF_LOADER_PROTOCOL gPeCoffProtocol = {
|
||||||
|
PeCoffLoaderGetImageInfo,
|
||||||
|
PeCoffLoaderLoadImage,
|
||||||
|
PeCoffLoaderRelocateImage,
|
||||||
|
PeCoffLoaderImageReadFromMemory,
|
||||||
|
PeCoffLoaderRelocateImageForRuntime,
|
||||||
|
PeCoffLoaderUnloadImage
|
||||||
|
};
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
EFI_HOB_GUID_TYPE Hob;
|
||||||
|
VOID *Interface;
|
||||||
|
} PROTOCOL_HOB;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
VOID
|
||||||
|
EFIAPI
|
||||||
|
BuildPeCoffLoaderHob (
|
||||||
|
)
|
||||||
|
{
|
||||||
|
PROTOCOL_HOB Hob;
|
||||||
|
|
||||||
|
Hob.Interface = &gPeCoffProtocol;
|
||||||
|
BuildGuidDataHob (&gPeCoffLoaderProtocolGuid, &Hob, sizeof (PROTOCOL_HOB));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -65,6 +65,7 @@
|
|||||||
|
|
||||||
[Protocols]
|
[Protocols]
|
||||||
gEfiStatusCodeRuntimeProtocolGuid
|
gEfiStatusCodeRuntimeProtocolGuid
|
||||||
|
gPeCoffLoaderProtocolGuid
|
||||||
|
|
||||||
|
|
||||||
[FixedPcd.common]
|
[FixedPcd.common]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user