From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (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 55B5921939234 for ; Wed, 12 Apr 2017 14:39:05 -0700 (PDT) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Apr 2017 14:39:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,191,1488873600"; d="scan'208";a="76699798" Received: from mdkinney-mobl.amr.corp.intel.com ([10.252.134.215]) by orsmga004.jf.intel.com with ESMTP; 12 Apr 2017 14:39:04 -0700 From: Michael Kinney To: edk2-devel@lists.01.org Cc: Liming Gao , Yonghong Zhu , Kevin W Shaw Date: Wed, 12 Apr 2017 14:38:59 -0700 Message-Id: <1492033139-8604-2-git-send-email-michael.d.kinney@intel.com> X-Mailer: git-send-email 2.6.3.windows.1 In-Reply-To: <1492033139-8604-1-git-send-email-michael.d.kinney@intel.com> References: <1492033139-8604-1-git-send-email-michael.d.kinney@intel.com> Subject: [edk2-BuildSpecification PATCH] Use macros in !include file paths 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: Wed, 12 Apr 2017 21:39:05 -0000 https://bugzilla.tianocore.org/show_bug.cgi?id=472 The EBNF already allows !include statements to use $(MACRO) values in the file path. This change updates the description and examples for !include statements to allow the use of macros and specific environment variables in !include file paths. Cc: Liming Gao Cc: Yonghong Zhu Cc: Kevin W Shaw Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Michael Kinney --- 8_pre-build_autogen_stage/82_auto-generation_process.md | 4 ++-- README.md | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/8_pre-build_autogen_stage/82_auto-generation_process.md b/8_pre-build_autogen_stage/82_auto-generation_process.md index 84f6b6b..deb1c47 100644 --- a/8_pre-build_autogen_stage/82_auto-generation_process.md +++ b/8_pre-build_autogen_stage/82_auto-generation_process.md @@ -410,8 +410,8 @@ in the DSC file can be used for file names, paths, PCD values, in the conditional directives. Macros can also be defined or used in the `[Defines]`, `[LibraryClasses]`, `[Libraries]`, `[Components]` and all PCD sections. -Macros defined by the user cannot be used in the !include statements in either -the DSC or FDF file. +Macros defined by the user may be used in the !include statements in DSC and +FDF files. `EDK_GLOBAL` type macros defined in the DSC file can be used in later sections of the DSC, FDF and any of the included EDK INF files. diff --git a/README.md b/README.md index 3bd1d32..ce76bb4 100644 --- a/README.md +++ b/README.md @@ -200,4 +200,5 @@ Copyright (c) 2008-2017, Intel Corporation. All rights reserved. | | Remove Unicode file storage requirement; refer to the Multi-String UNI File Format Specification instead. | | | | Clarify BUILDRULEORDER | | | | Add support for INF statement in an FD region. | | -| 1.27 | Convert to Gitbook | March 2017 | +| 1.27 | Convert to Gitbook | April 2017 | +| | [#472](https://bugzilla.tianocore.org/show_bug.cgi?id=472) [Build Spec] Extend macro usage in the !include statements for DSC/FDF files | | -- 2.6.3.windows.1