From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=209.132.183.28; helo=mx1.redhat.com; envelope-from=lersek@redhat.com; receiver=edk2-devel@lists.01.org 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 D128C21F833CD for ; Fri, 5 Jan 2018 12:15:03 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3B091C0587D2; Fri, 5 Jan 2018 20:20:10 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-120-181.rdu2.redhat.com [10.10.120.181]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5FB1760C7F; Fri, 5 Jan 2018 20:20:09 +0000 (UTC) To: Ard Biesheuvel , edk2-devel@lists.01.org, liming.gao@intel.com References: <20180105093629.7885-1-ard.biesheuvel@linaro.org> From: Laszlo Ersek Message-ID: <422cb5a0-e763-b859-c077-b11c76bf8698@redhat.com> Date: Fri, 5 Jan 2018 21:20:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20180105093629.7885-1-ard.biesheuvel@linaro.org> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Fri, 05 Jan 2018 20:20:10 +0000 (UTC) Subject: Re: [PATCH] BaseTools/build_rule: disable DTC legacy phandle format 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: Fri, 05 Jan 2018 20:15:04 -0000 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 01/05/18 10:36, Ard Biesheuvel wrote: > By default, the device tree compiler emits phandle properties twice: > one called 'phandle' and another called 'linux,phandle'. Given that > Linux was updated in early 2010 [0] to accept the former (which is > what is specified in the ePAPR and device tree specifications), there > is no point in emitting both when compiling device trees for UEFI > platforms. > > [0] 04b954a673dd02f585a2769c4945a43880faa989 > "of/flattree: Make the kernel accept ePAPR style phandle information" > > 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..10a91fe3a6c6 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)" -H epapr -I dts -O dtb -o ${dst} ${d_path}(+)${s_base}.i > > [Visual-Form-Representation-File] > > [0] is part of Linux v2.6.34 :) Reviewed-by: Laszlo Ersek