5.1 Begin With INF File
The [Defines] section of the INF must set MODULE_TYPE to UEFI_DRIVER. Example:.
1
[Defines]
2
INF_VERSION = 0x00010005
3
BASE_NAME = SampleDriverDxe
4
FILE_GUID = XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
5
MODULE_TYPE = UEFI_DRIVER
6
ENTRY_POINT = SampleDriverEntryPoint
Copied!
Note: A UEFI driver has no [depex] section in the INF file. It always depends on all dxe architectural protocols. To force this, the UEFI driver entry point library instance appends all dxe architectural protocol dependency relationships into the depex section of the module image.
Note: If module dependent on the new definitions/features in
EFI_BOOT_SERVICES/UEFI_RUNTIME_SERVICES-defined in UEFI specifications from version 2.1 forward-the hex version need to be given in INF file [Defines] section's UEFI_SPECFIICATION_VERSION field.
Last modified 1yr ago
Copy link