From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mx.groups.io with SMTP id smtpd.web08.6987.1647933978978811798 for ; Tue, 22 Mar 2022 00:26:19 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=Fmc0Bdto; spf=pass (domain: intel.com, ip: 134.134.136.31, mailfrom: yi1.li@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647933979; x=1679469979; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=RMdDAiTGVbx2J0SNWHTzHoInji1hm8cvZn0594s0GEc=; b=Fmc0Bdtof24V7YqH1zeT/vRQaCbxJH17VZ1N3THMXFltGRWVJsUu04mn YFU1TNCirWB1A+CaoYUt07VZpHgcLPjDHDgR1sxE61grPd/KBfW780504 Qqlrl+Z9FAgSLsy7oslZbkUNUCyj8r9XHPX2t29v9JmV2TORo+teTyNyC DncLObcN1lVD2UYdkh9o3IECLCbxY9l61mYEvSgPdUMda4PrZVJUI7RvY gqedW7lRBIAkntvNx2UGcRurWzpQr4cFD2kzgQKjSUzyayKPsV/JnyZwQ H/NY2Y9PGBqeyRlarkp6Xe5CoLQxxDGPnEpcaiUIiO804joUrT5NvCucI g==; X-IronPort-AV: E=McAfee;i="6200,9189,10293"; a="318457714" X-IronPort-AV: E=Sophos;i="5.90,201,1643702400"; d="scan'208";a="318457714" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Mar 2022 00:26:17 -0700 X-IronPort-AV: E=Sophos;i="5.90,201,1643702400"; d="scan'208";a="543574197" Received: from shwdejointd178.ccr.corp.intel.com ([10.239.153.103]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Mar 2022 00:26:16 -0700 From: "yi1 li" To: devel@edk2.groups.io Cc: yi1 li , Bob Feng , Liming Gao , Heng Luo Subject: [PATCH V3 0/1] BaseTools: Add the FeatureFlagExpression usage to the Source Section Date: Tue, 22 Mar 2022 15:26:10 +0800 Message-Id: X-Mailer: git-send-email 2.33.0.windows.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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. Change-Id: I5821652330cdba1bfc5544e90f27b32ddf4147fc Cc: Bob Feng Cc: Liming Gao Cc: Heng Luo Signed-off-by: Yi Li Yi Li (1): BaseTools: Add the FeatureFlagExpression usage to the Source Section BaseTools/Source/Python/Common/Expression.py | 2 +- BaseTools/Source/Python/Common/GlobalData.py | 1 + .../Source/Python/Workspace/InfBuildData.py | 52 +++++++++++++++++-- .../Source/Python/Workspace/MetaFileParser.py | 4 ++ .../Python/Workspace/WorkspaceCommon.py | 5 ++ 5 files changed, 59 insertions(+), 5 deletions(-) -- 2.33.0.windows.2