From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.61]) by mx.groups.io with SMTP id smtpd.web12.578.1587384364375750913 for ; Mon, 20 Apr 2020 05:06:04 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Gqn/D44L; spf=pass (domain: redhat.com, ip: 205.139.110.61, mailfrom: lersek@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1587384363; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BGbr3BqXvQV4sN2vtGepQ9Xg4G7lH4cNaVSjiQUi+CM=; b=Gqn/D44Lg/x2/ATWbPfR+yI+8sfwUWdHd0kNZ1ItmczWxi2c9I5Gqtl/WWK+mwI5UJYcAX Y7QxqILBMrHjiPb1tdLfkJgtxUELTQxUuPrWenlX/sY/yKfVAE0HB0532/f/J7HQYtg+0g 8eCxj6S/YAVOlNLTF+u265/NrnnMaeY= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-104-nwY0UP-FP3GcwCfiAMSLFw-1; Mon, 20 Apr 2020 08:05:59 -0400 X-MC-Unique: nwY0UP-FP3GcwCfiAMSLFw-1 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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id 606CB13F6; Mon, 20 Apr 2020 12:05:58 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-114-228.ams2.redhat.com [10.36.114.228]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6766F129F87; Mon, 20 Apr 2020 12:05:57 +0000 (UTC) Subject: Re: [edk2-devel] Conditionally Include FDF File To: devel@edk2.groups.io, ashishsingha@nvidia.com, Bob Feng , "Gao, Liming" References: From: "Laszlo Ersek" Message-ID: <6f7df46f-1595-a81a-001f-27e002ba9a9f@redhat.com> Date: Mon, 20 Apr 2020 14:05:56 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit On 04/20/20 07:25, Ashish Singhal wrote: > I am trying to change my top-level FDF file layout by conditionally including an FDF depending on a build time define being passed or not. > Any help getting around this Try including unconditionally, and pushing down the !if into the includee. This is known to work; see for example "NetworkPkg/Network.fdf.inc". (The outermost "NETWORK_ENABLE" flag in "Network.fdf.inc" parallels your use case.) Thanks Laszlo