edk inf 文件解读

举个例子

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





评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值