From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.100; helo=mga07.intel.com; envelope-from=liming.gao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (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 AC2442215BD99 for ; Wed, 31 Jan 2018 17:27:12 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Jan 2018 17:32:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,442,1511856000"; d="scan'208";a="14572814" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga008.jf.intel.com with ESMTP; 31 Jan 2018 17:32:48 -0800 Received: from fmsmsx121.amr.corp.intel.com (10.18.125.36) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 31 Jan 2018 17:32:48 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx121.amr.corp.intel.com (10.18.125.36) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 31 Jan 2018 17:32:48 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.127]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.116]) with mapi id 14.03.0319.002; Thu, 1 Feb 2018 09:32:46 +0800 From: "Gao, Liming" To: Ard Biesheuvel , "edk2-devel@lists.01.org" CC: "Zhu, Yonghong" , "lersek@redhat.com" Thread-Topic: [PATCH] BaseTools/build_rule: pass contents of DTC_FLAGS device tree compiler Thread-Index: AQHTmt1cgAYG2+2l9UmjxiW18vunsKOOwxTg Date: Thu, 1 Feb 2018 01:32:46 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E1BA539@SHSMSX104.ccr.corp.intel.com> References: <20180131214909.1103-1-ard.biesheuvel@linaro.org> In-Reply-To: <20180131214909.1103-1-ard.biesheuvel@linaro.org> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH] BaseTools/build_rule: pass contents of DTC_FLAGS device tree compiler X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Feb 2018 01:27:13 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Ard: Do you consider to add DTC_FLAGS in tools_def.template file? Its value ca= n be empty. So, user bases on tools_def.txt to know which option can be set= .=20 >-----Original Message----- >From: Ard Biesheuvel [mailto:ard.biesheuvel@linaro.org] >Sent: Thursday, February 01, 2018 5:49 AM >To: edk2-devel@lists.01.org >Cc: Gao, Liming ; Zhu, Yonghong >; lersek@redhat.com; Ard Biesheuvel > >Subject: [PATCH] BaseTools/build_rule: pass contents of DTC_FLAGS device >tree compiler > >To allow device tree compilation to be customized at the platform or >module level, pass the contents of the DTC_FLAGS variable on the >dtc command line. > >Contributed-under: TianoCore Contribution Agreement 1.1 >Signed-off-by: Ard Biesheuvel >--- > BaseTools/Conf/build_rule.template | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/BaseTools/Conf/build_rule.template >b/BaseTools/Conf/build_rule.template >index 3e6aa8ff0f34..a5e471eb3c10 100755 >--- a/BaseTools/Conf/build_rule.template >+++ b/BaseTools/Conf/build_rule.template >@@ -250,7 +250,7 @@ > > > "$(PP)" $(DTCPP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.i >- "$(DTC)" -I dts -O dtb -o ${dst} ${d_path}(+)${s_base}.i >+ "$(DTC)" $(DTC_FLAGS) -I dts -O dtb -o ${dst} ${d_path}(+)${s_bas= e}.i > > [Visual-Form-Representation-File] > >-- >2.11.0