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.

4BThe Basics of <strong>EDK</strong> <strong>II</strong>that these packages are published as a base-supported package to facilitatemodule/platform development.Note: These packages are open-source code and compliant with the BSD license. Ifthe developed module doesn’t want to be open source, it should not be put intothose core packages.To create a new package, developers must create the DEC file to define the package’sinterfaces, including:• include directories for modules from other packages• the value of GUIDs• the value of Protocol GUIDs• the value of PPI GUIDs• the declaration of the PCD entries published by this package1.1.3.2 Phase 2: Create module meta-data/Implement basicfunctionality.After the module to be placed into a package is determined, developers must createan INF file to indicate the module’s behavior, including:• module type• required library classes• required ppi/protocol/guid/PCD• dependency relationship with other modules.Note: Dependency relationship may exist or not, depending on various module type.Viewing a module’s INF file provides a quick overview to an unfamiliar module.After finishing the INF file, developers should start writing source code to implementbasic functionality.Note: In $WORKSPACE\MdePkg\Include\Library directory, there are many libraryclasses to provide support functions. There are also entry point libraries forvarious module types. Developers should browse the header files for details.1.1.3.3 Phase 3: Create DSC to buildIn <strong>EDK</strong> <strong>II</strong>, the DSC file describes the build behavior of the package, including:• modules needed to be built• chosen library instances for various module type• the configuration of the PCD entries used by modulesThe single platform DSC and each referenced package’s DEC files cooperate to definea package. These files and the module INF files are required to build all modules inthe package.3

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

Saved successfully!

Ooh no, something went wrong!