From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web10.5832.1646723252884649804 for ; Mon, 07 Mar 2022 23:07:33 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=nXdK/Wqv; spf=pass (domain: intel.com, ip: 192.55.52.115, 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=1646723252; x=1678259252; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=/YEqErc1YrzskBeGRdIIFfS/n0pjU2UaVwDKpl2vEcU=; b=nXdK/Wqv8hDScGV2jzj3OntPEQ0OiTKAwG86Fu8ADyq9INESFc7GPSU+ Wq4H+5f0anwzkxSGt3El6XN0u7I2QXa/Sccncpmpz4ba3hXRhih6YrLu4 H9Wf3eIwOxVyMy0vGWknYf+9Q/ICw2U8Q62RP2ryK3c6usRKebUzeWF80 rPtFPf31KcT2f0ksoTr/Y0lxRkdGPTuQuevVHSxZnh42oKWRrPvbr6pox F9cu1aYBNo6DeeZ9AzzrlcqE3+1Fqh/it/QavpKd1TdJFZ1mubV66lMGj yvDJl/xBEa3X1Six2m5uVgCzdHw7RGlR42J/0hgchq4xaq42AcKX26QSF w==; X-IronPort-AV: E=McAfee;i="6200,9189,10279"; a="254802495" X-IronPort-AV: E=Sophos;i="5.90,163,1643702400"; d="scan'208";a="254802495" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Mar 2022 23:07:32 -0800 X-IronPort-AV: E=Sophos;i="5.90,163,1643702400"; d="scan'208";a="643557446" Received: from shwdejointd178.ccr.corp.intel.com ([10.239.153.103]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Mar 2022 23:07:30 -0800 From: "yi1 li" To: devel@edk2.groups.io Cc: yi1 li , Bob Feng , Liming Gao , "Zhiju . Fan" Subject: [PATCH 0/2] BaseTools:Add the FeatureFlagExpression usage to the InfBuildData Date: Tue, 8 Mar 2022 15:07:09 +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=1446 FeatureFlagExpression Support in LibraryClasses/Guids/Ppi/Protocols/ 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 Cc: Liming Gao Signed-off-by: yi1 li Signed-off-by: Zhiju.Fan yi1 li (2): BaseTools:Add the FeatureFlagExpression usage to the InfBuildData 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 | 79 ++++++++++++++++--- .../Source/Python/Workspace/MetaFileParser.py | 4 + .../Python/Workspace/WorkspaceCommon.py | 10 ++- 5 files changed, 84 insertions(+), 12 deletions(-) -- 2.33.0.windows.2