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> Package2.1.4.1 Example: Package.dsc[Defines]PLATFORM_NAME= PacakgeNamePLATFORM_GUID= xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxPLATFORM_VERSION = 0.1DSC_SPECIFICATION = 0x00010005OUTPUT_DIRECTORY = Build/PackageNameSUPPORTED_ARCHITECTURES = IA32|IPF|X64|EBCBUILD_TARGETS= DEBUG|RELEASESKUID_IDENTIFIER = DEFAULT[SkuIds]0|DEFAULT #The entry: 0|DEFAULT is reserved and required.[LibraryClasses]## More library instances need to be added if more library classes areused## by the components in the following [Components] section.## library class name | library instance INF file path from packageDebugLib | MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr.infBaseLib | MdePkg/Library/BaseLib/BaseLib.infBaseMemoryLib | MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf……##PCDs sections are not specified.##All PCDs value are from their Default value in DEC.##[PcdsFeatureFlag]##[PcdsFixedAtBuild][Components]## All libraries, drivers and applications are added here to be compiled## <strong>Module</strong> INF file path are specified from package directory.PackageNamePkg/Library/NameOneLib/NameOneLib.infPackageNamePkg/NameOneDxe/NameOneDxe.infPackageNamePkg/NameTwoPei/NameTwoPei.infA detailed description of the DSC file form is given in the DSC Specification.2.2 Manage Package2.2.1 Create PackageWhen current packages don’t satisfy a requirement or the original code base is splitinto <strong>EDK</strong> <strong>II</strong> packages, new packages need to be created. Here are the recommendedrules to follow when defining the new package:• All modules related to the same functionality should go in the same package.For example, different packages should be created for different chipsets.• Generic modules shared between different platforms should be in anotherpackage. For example,the MdePkg and Mde<strong>Module</strong>Pkg are shared.• <strong>Module</strong>s should go in packages according to their release requirements.I Ifmodules are released only to specific customers, they should go in specificpackages.Note: There is no limitation for source files in a new package. Even if only one file isin a package, this package will be valid.11

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

Saved successfully!

Ooh no, something went wrong!