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...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1The Basics of <strong>EDK</strong> <strong>II</strong>This document is intended to be a guideline for new <strong>EDK</strong> <strong>II</strong> module developers, andprovides detailed instructions on how to develop and build a new module, as well ashow to release with a package. For information about developing new modules, thereaders should start with this document.1.1 OverviewBy referencing the <strong>EDK</strong> <strong>II</strong> User Manual, module writers should understand how toobtain <strong>EDK</strong> <strong>II</strong> and how to build existing modules.This chapter also clarifies new concepts introduced by <strong>EDK</strong> <strong>II</strong>.1.1.1 <strong>Module</strong>, Package and Platform1.1.1.1 What is a <strong>Module</strong>?A module is the smallest piece of separately compile-able code or pre-built binary. Itcontains a meta-data file (INF) plus source code or binary. The INF file is required bythe <strong>EDK</strong><strong>II</strong> build system to describe a module’s behavior, such as produced orconsumed library classes, ppis, guids, protocols, pcds, and other information. For thesyntax of the INF file, refer to the <strong>EDK</strong> <strong>II</strong> Extended INF Specification.For example, in $WORKSPACE\Mde<strong>Module</strong>Pkg\Universal\Bus\Pci\UhciDxe, the sourcefiles mentioned and the INF file compose a module.1.1.1.2 What is a Package?A Package is a group of zero or more modules. A package must contain a packagemeta-data file (DEC) and possibly a platform meta-data file (DSC).Functionally, a package is a logical division of a project. Developers depend onreasonable judgment, such as license or specification compliance, to determine whereto place a module. These meta-data files and the module’s INF files are used by the<strong>EDK</strong> <strong>II</strong> build system to automatically generate makefiles and a single module tip orwhole flash tip, according to the build options used.For information regarding the syntax of DSC and DEC files, please refer to <strong>EDK</strong> <strong>II</strong> DSCFile Specification and <strong>EDK</strong> <strong>II</strong> DEC File Specification.1

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

Saved successfully!

Ooh no, something went wrong!