举个例子
# [BootMode]
# S3_RESUME ## SOMETIMES_CONSUMES
# RECOVERY_FULL ## SOMETIMES_CONSUMES
这里Boot Mode Usage 分为四种情况,如果全靠猜,还是不容易知道意思的,翻一下spec 其实要表达的意思非常简单。
Boot Mode Usage
CONSUMES - The module always supports the given boot mode.
SOMETIMES_CONSUMES - The module may support a given boot mode on some execution paths.
PRODUCES - The module will change the boot mode
SOMETIMES_PRODUCES - The module will change the boot mode on some execution path.
一言以蔽之, consume 即 support, produce 即 change
[Ppis]
gEfiPciCfg2PpiGuid ## PRODUCES
[Ppis] Sections
Defines the EDK II INF file [PPIs] section content, This is a list of the global PPI C Names that are
reference in the EDK II Module's C code.
Each PPI must be listed only once per section, PPIs listed in architectural sections are not permitted to be
listed in the common architectural section.
The "common" architecture modifier in a section tag must not be combined with other architecture type;
doing so will result in a build break.
The format of the <CommentBlock> is the recommended format that will guarantee that the information is
correctly inserted into UEFI Distribution Package description file by the Intel UEFI Packging Tool included in
the EDK II base tools project.
CONSUMES
This module dose not install the PPI, but needs to locate a PPI, Not valid if the Notify true. Not valid if the Notify true.
PRODUCES
This module will load this PPI, Not valid if the Notify attribute is true.