From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 9E68321D2E652 for ; Tue, 22 Aug 2017 16:52:11 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 589B781DEC; Tue, 22 Aug 2017 23:54:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 589B781DEC Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=lersek@redhat.com Received: from lacos-laptop-7.usersys.redhat.com (ovpn-116-92.phx2.redhat.com [10.3.116.92]) by smtp.corp.redhat.com (Postfix) with ESMTP id BB2C5600C6; Tue, 22 Aug 2017 23:54:43 +0000 (UTC) To: Frank.Orr@dell.com, edk2-devel@lists.01.org References: From: Laszlo Ersek Message-ID: <12eaddeb-bfc8-6cf2-fd52-0d377be5e776@redhat.com> Date: Wed, 23 Aug 2017 01:54:42 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Tue, 22 Aug 2017 23:54:44 +0000 (UTC) Subject: Re: FeatureFlagExpression X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Aug 2017 23:52:11 -0000 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 08/23/17 01:21, Frank.Orr@dell.com wrote: > Dell - Internal Use - Confidential > > I'm trying to use this feature as described in various edk2 documents with zero success. > For example, in the INF spec 1.25, the following is defined for the protocols section : > > > > The formats for entries in this section is: > > gEfiProtocolCName [ | FeatureFlagExpression] ## Usage comment > > When a FeatureFlagExpression is present, if the expression evaluates to TRUE, then the Protocal entry is valid. If the expression evaluates to FALSE, then the EDK II build tools must ignore the entry. > > The following is an example of the [Protocols] section. > > [Protocols] > > gEfiDecompressProtocolGuid > > gEfiLoadFileProtocolGuid > > > Does anyone have any examples showing the use of a FeatureFlagExpression ? See e.g. "MdePkg/Library/UefiLib/UefiLib.inf". Thanks Laszlo