4.1 Begin with INF file
The following is an example of the INF file of an application named
SampleApplication. For UEFI Application, the MODULE_TYPE
entry should be
UEFI_APPLICATION.
The difference compared to Pei/Dxe/Uefi driver is that
UEFI_APPLICATON has no dependency relationship section.
[Defines]
INF_VERSION = 0x00010005
BASE_NAME = SampleApplication
FILE_GUID = XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
MODULE_TYPE = UEFI_APPLICATION
ENTRY_POINT = SampleApplicationEntryPoint
UEFI_SPECIFICATION_VERSION = 0x0002001E
[Sources]
Sample.c
[Packages]
MdePkg/MdePkg.dec
[LibraryClasses]
UefiApplicationEntryPoint
DebugLib
[protocol]
gSampleProtocolGuid
[Guids] gSampleGuid
Note: If a module is dependent on the new definitions or features in
EFI_BOOT_SERVICES or UEFI_RUNTIME_SERVICES-defined in UEFI specifications from version 2.1 forward-the hex version needs to be given in INF file [Defines] section's UEFI_SPECFIICATION_VERSION field.