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.
1
[Defines]
2
INF_VERSION = 0x00010005
3
BASE_NAME = SampleApplication
4
FILE_GUID = XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
5
MODULE_TYPE = UEFI_APPLICATION
6
ENTRY_POINT = SampleApplicationEntryPoint
7
UEFI_SPECIFICATION_VERSION = 0x0002001E
8
9
[Sources]
10
Sample.c
11
12
[Packages]
13
MdePkg/MdePkg.dec
14
15
[LibraryClasses]
16
UefiApplicationEntryPoint
17
DebugLib
18
19
[protocol]
20
gSampleProtocolGuid
21
22
[Guids] gSampleGuid
Copied!
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.
Last modified 1yr ago
Copy link