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.

5BAn <strong>EDK</strong> <strong>II</strong> PackageThe [Ppis] section specifies the Guid value for each PPI in the Package\Include\Ppidirectory.The [Protocols] section specifies the Guid for each Protocol in thePackage\Include\Protocol directory.The PCDs are declared in different PCD sections according to their type (FeatureFlag,FixedAtBuild, PatchableIn<strong>Module</strong>, Dynamic, and DynamicEx). If a PCD supportsmultiple PCD types, it must be declared into all supported type sections. When a PCDis declared, its data type and default value must also be specified.The following is a sample DEC file, additional package public information can beadded.2.1.3.1 Example: Package.dec[Defines]DEC_SPECIFICATION = 0x00010005PACKAGE_NAME = PackageNamePACKAGE_GUID = xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxPACKAGE_VERSION = 0.1[Includes]Include#Package Include directory[LibraryClasses]## Library class name is same to library header file nameOneClassLib|Include/Library/OneClassLib.h[Guids]#GuidCName = {xxxxxxxx,xxxx,xxxx,{xx,xx,xx,xx,xx,xx,xx,xx}},[Ppis]#PpiGuidCName = {xxxxxxxx,xxxx,xxxx,{xx,xx,xx,xx,xx,xx,xx,xx}},[Protocols]#ProtocolGuidCName = {xxxxxxxx,xxxx,xxxx,{xx,xx,xx,xx,xx,xx,xx,xx}},[PcdsFeatureFlag]#FeatureFlag PCD is BOOLEAN type, the value is TRUR or FALSE.#PcdTokenSpaceCGuidName.PcdName|TRUE|BOOLEAN|TokenNumber#PcdTokenSpaceCGuidName.PcdName|FALSE|BOOLEAN|TokenNumber[PcdsFixedAtBuild]#PcdTokenSpaceCGuidName.PcdName|DefaultValue|DataType|TokenNumber[PcdsPatchableIn<strong>Module</strong>]#PcdTokenSpaceCGuidName.PcdName|DefaultValue|DataType|TokenNumber[PcdsDynamic]#PcdTokenSpaceCGuidName.PcdName|DefaultValue|DataType|TokenNumber[PcdsDynamicEx]#PcdTokenSpaceCGuidName.PcdName|DefaultValue|DataType|TokenNumberA detailed description of the DEC file format can be found the <strong>EDK</strong> <strong>II</strong> DEC FileSpecification.9

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

Saved successfully!

Ooh no, something went wrong!