From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mx.groups.io with SMTP id smtpd.web12.8175.1646746935940794913 for ; Tue, 08 Mar 2022 05:42:17 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=EKgAw0bC; spf=pass (domain: intel.com, ip: 192.55.52.120, 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=1646746937; x=1678282937; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=CMXqFA5/dUoXtzgLm+E5eXk7/1wQKhg5slsJpaOpBm0=; b=EKgAw0bCT5yDJSzPbrjaXgbDagGHnRR0B66tDgQPoNJzNMP2JL/H89gy uxGHfdzTUzn2DyhgSWe9zPY0Hirpou793moLQXCRqbq9NQiNTaL/+nV/f lvFnZNJC/K3xaqjCdeCIgcqoAv3iMe/WzdrEHqc6ocPbz9l5en6jgpeMn J51/CcrV5IgDVUotGVn7LG5OP1RgGEnF2IPw5P9nyZ0NaNEMKceRQyAlJ 26Y8UjX1BoWK/hMHxX8dfIwnwDZ3nNi6JUNTrRm6fp7ftxEYZEYBK4JID miafUS0DJRXYFiRm4CHTCsHeYwhNjHhsLxU8rSLzi4JL2tWsFeo5QF7Ga w==; X-IronPort-AV: E=McAfee;i="6200,9189,10279"; a="253511809" X-IronPort-AV: E=Sophos;i="5.90,165,1643702400"; d="scan'208";a="253511809" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2022 05:42:14 -0800 X-IronPort-AV: E=Sophos;i="5.90,165,1643702400"; d="scan'208";a="537569289" 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; 08 Mar 2022 05:42:12 -0800 From: "yi1 li" To: devel@edk2.groups.io Cc: yi1 li , Bob Feng , Liming Gao , Heng Luo , "Zhiju . Fan" Subject: [PATCH V2 0/2] BaseTools:Add the FeatureFlagExpression usage to the InfBuildData Date: Tue, 8 Mar 2022 21:42:05 +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 Cc: Heng Luo 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 | 81 ++++++++++++++++--- .../Source/Python/Workspace/MetaFileParser.py | 4 + .../Python/Workspace/WorkspaceCommon.py | 10 ++- 5 files changed, 86 insertions(+), 12 deletions(-) -- 2.33.0.windows.2