]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools: Add the FeatureFlagExpression usage to the Source Section
authorYi Li <yi1.li@intel.com>
Tue, 22 Mar 2022 07:26:11 +0000 (15:26 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sat, 26 Mar 2022 00:59:18 +0000 (00:59 +0000)
commitbf9230a9f3dde065c3c8b4175ccd32e44e8f0362
tree8c005e0d609d13c709ed72a129626df7a6ccf98a
parent69218d5d2854acaa7a11c777244de4a297d2fbb9
BaseTools: Add the FeatureFlagExpression usage to the Source Section

REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3828

FeatureFlagExpression Support in Source section of INF file. The Pcd
value in the expression is from INF or DEC.
When a FeatureFlagExpression is present,if the expression evaluates
to TRUE,then the entry is valid. If the expression evaluates to FALSE,
then the EDK II build tools must ignore the entry.

This patch is going to add this feature.

Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Heng Luo <heng.luo@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Signed-off-by: Yi Li <yi1.li@intel.com>
BaseTools/Source/Python/Common/Expression.py
BaseTools/Source/Python/Common/GlobalData.py
BaseTools/Source/Python/Workspace/InfBuildData.py
BaseTools/Source/Python/Workspace/MetaFileParser.py
BaseTools/Source/Python/Workspace/WorkspaceCommon.py