12.07.2015 Views

EDK II Module Writer's Guide - Intel

EDK II Module Writer's Guide - Intel

EDK II Module Writer's Guide - Intel

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

UEFI_DRIVERUEFI_APPLICATIONThis module type is used by UEFI Drivers that are compliantwith the UEFI Specification. These modules provide services inthe boot services execution environment. UEFI Drivers thatreturn EFI_SUCCESS are not unloaded from memory. UEFIDrivers that return an error are unloaded from memory.This module type is used by UEFI Applications that arecompliant with the UEFI Specification. UEFI Applications arealways unloaded when they exit.3.2 Creating a <strong>Module</strong>Driver/Library module follows similar steps to be created:1. Create or select the package in which the module will be located.2. Create a directory for the module and put the INF file in the directory3. Add package dependencies to the INF file4. Add PPI/Protocol/Guid/PCD/Library Class dependencies to the INF file5. Add [depex] section to the INF file if this module depends on somePPI/Protocol/Guid and the module type supports this section.6. Create source file(s) and add relative path of source file(s) to the INF file3.2.1 LocationA module is released and distributed within a package, so creating or selecting theappropriate package for the new module is the first step..3.2.1.1 Choosing the PackageA Package in <strong>EDK</strong> <strong>II</strong> is for containing similar definitions and modules. The “similar” isrecommended to be determined by following rules:Industry standardSimilar technologyBusiness reasonFor example, MdePkg package contains the definitions from PIWG, UEFI,SMBIOS, USB, PCI, etc, which are all industry standards.For example, OptionRomPkg group the definitions and modules related toOption Rom technology.For example, <strong>Intel</strong>FrameworkPkg group the definitions and modules for<strong>Intel</strong> framework implementation.17

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!