Received: from mailapp01.imgtec.com ([195.59.15.196]:2731 "EHLO imgpgp01.kl.imgtec.org" rhost-flags-OK-OK-OK-FAIL) by eddie.linux-mips.org with ESMTP id S23993911AbdFMQsmzPXt5 (ORCPT ); Tue, 13 Jun 2017 18:48:42 +0200 From: Paul Burton Subject: Re: [PATCH v4 3/4] MIPS: DTS: img: Don't attempt to build-in all .dtb files Date: Tue, 13 Jun 2017 09:48:34 -0700 Message-ID: <1699079.Kf0ib7BVPQ@np-p-burton> In-Reply-To: References: <20170602182003.16269-1-paul.burton@imgtec.com> <20170602182003.16269-4-paul.burton@imgtec.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2070560.9WQ2B9pHYu"; micalg=pgp-sha256; protocol="application/pgp-signature" Return-Path: Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-subscribe: List-owner: List-post: List-archive: To: Rahul Bedarkar Cc: linux-mips@linux-mips.org, Ralf Baechle , Rahul Bedarkar Message-ID: <20170613164834.fiHahMU2PoHW0XKPpm40pr-spIpabnkLl3fo9R61FW8@z> --nextPart2070560.9WQ2B9pHYu Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Hi Rahul, On Tuesday, 13 June 2017 09:13:12 PDT Rahul Bedarkar wrote: > Hi Paul, > > On Fri, Jun 2, 2017 at 11:50 PM, Paul Burton wrote: > > When building a FIT image we may want the kernel to build multiple .dtb > > files, but we don't want to build them all into the kernel binary as > > object files since they'll instead be included in the FIT image. > > > > Commit daa10170da27 ("MIPS: DTS: img: add device tree for Marduk board") > > however created arch/mips/boot/dts/img/Makefile with a line that builds > > any enabled .dtb files into the kernel. Remove this & build the > > pistachio object specifically, in preparation for adding .dtb targets > > which we don't want to build into the kernel. > > > > Signed-off-by: Paul Burton > > Cc: Rahul Bedarkar > > Cc: Ralf Baechle > > Cc: linux-mips@linux-mips.org > > > > --- > > > > Changes in v4: > > - New patch. > > > > Changes in v3: None > > Changes in v2: None > > > > arch/mips/boot/dts/img/Makefile | 3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > It looks good to me. > > Reviewed-by: Rahul Bedarkar Thanks for reviewing :) > > diff --git a/arch/mips/boot/dts/img/Makefile > > b/arch/mips/boot/dts/img/Makefile index 69a65f0f82d2..c178cf56f5b8 100644 > > --- a/arch/mips/boot/dts/img/Makefile > > +++ b/arch/mips/boot/dts/img/Makefile > > @@ -1,6 +1,5 @@ > > > > dtb-$(CONFIG_MACH_PISTACHIO) += pistachio_marduk.dtb > > > > - > > -obj-y += $(patsubst %.dtb, %.dtb.o, $(dtb-y)) > > It was probably copy/paste from other board Makefiles. But If I > understand it correctly, please correct me if I am wrong, linking of > object file of device tree to kernel image is useful if boot loader > doesn't support loading external device tree and in that case kernel > can use inbuilt device tree. > > Thanks, > Rahul Yes, it can be useful & there's nothing wrong with building in the .dtb for a platform like pistachio. For the generic kernel however we put the various device tree binaries into the FIT image so that the bootloader can pick out the right one, so building them into the kernel is unnecessary. Thanks, Paul --nextPart2070560.9WQ2B9pHYu Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEELIGR03D5+Fg+69wPgiDZ+mk8HGUFAllAF2IACgkQgiDZ+mk8 HGX7jQ//dffaC/wdXkWuTlIUNA1Y/Zs7Xnfu/ThpkN7b7DSaJCNopMRHLx2bLSUu pjZbYL/3opfDBVSTZuHH8jpJkoPXIGmU2QPUydwFq8DIp14IjhC5rL9bmVHIkGjR BpOcvQdIG7Zu2DKHhp5GcLc2+J61CqgOZ3xa9l0AeS26Xtx0+AtSeyrWvM2u5WHl j8Gy3/X6TdS0db0fJuqaeVr+5FJM7czJGMbKAH2Gnlz0He31RFDHJ75swXRkUIaY /j+5z2Jjmbm+Rzs3dyH6hyW1eXIcdwFxP6ZyYib006traJQxgzrIIAKp2/vAwnY3 5GqUj9RFFonuCKOfYjzE6fNTwUB4ANARDXzBzrndiW67ilSEuZcaNVqA9eh/6tqq 9QWZFNX6qXUC2KCR0PxQSsDBirDKYkhCQOQAoW0llX0oaEtPK0aA0+pjtF1vKGCu IbxgOH5Mj+68xwXMPaMDpRYG25Sz9CX0NfLjzB9pTbOHIbGXrC5WSv4n8iLS8p8t IrWqizYStb1VD6B4Dcq2V6afuX6eULq1k9ZPZ7zCEZrWQUPkthodq2+eGBTEfM9l BXSbhv5UGIGabP3eJ/rQW95v3uKxKfwOHWPhHonDd6i/e3OyovKFVO16NdXHm1j0 7BoT7/WS0Bsj5X3OLhKqrAuNfqdfDq6LcSeMacZIJgjclnlx6uc= =7w/F -----END PGP SIGNATURE----- --nextPart2070560.9WQ2B9pHYu--