From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 11 Feb 2022 08:22:30 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nIQGE-00CcZm-Rz for lore@lore.pengutronix.de; Fri, 11 Feb 2022 08:22:30 +0100 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1nIQGE-0000S8-69; Fri, 11 Feb 2022 08:22:30 +0100 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nIQFV-0000Rw-0S; Fri, 11 Feb 2022 08:21:45 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1nIQFT-0006wG-1V; Fri, 11 Feb 2022 08:21:43 +0100 Date: Fri, 11 Feb 2022 08:21:43 +0100 From: Michael Olbrich To: Felix Mellmann Message-ID: <20220211072143.GA1873@pengutronix.de> Mail-Followup-To: Felix Mellmann , ptxdist@pengutronix.de, rich_ogrady@grayhill.com References: <71d6ac45-ef44-327d-c65f-7c1a507fc22d@benfm.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <71d6ac45-ef44-327d-c65f-7c1a507fc22d@benfm.de> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 08:19:17 up 62 days, 16:04, 68 users, load average: 0.09, 0.16, 0.21 User-Agent: Mutt/1.10.1 (2018-07-13) Subject: Re: [ptxdist] ptxdist-2022.01.1 commit 2fafa7c4308db8d1e79dc3b5d2c9cb3400a16ff8 X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: ptxdist@pengutronix.de, rich_ogrady@grayhill.com Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Hi, On Thu, Feb 10, 2022 at 05:49:19PM +0100, Felix Mellmann wrote: > On 10.02.22 15:28, rich_ogrady@grayhill.com wrote: > > It seems that the subject commit breaks ptxd_make_dtb()(for me at least= ). > > = > > ptxd_make_dtb()is using the variable dtb_kernel_dir to locate both the > > dtc script and the dts files. > > The dtc command needs to be from the build tree yet the dts files will > > be from the src tree. =A0If building the kernel OOT this causes the dtc > > command to not be found. > Ah, thats the reason. I was also wondering why I ran into strange errors.= At > the moment I manually build host-dtc before targetinstall kernel. And I have a dtc in $PATH so I never noticed that this was broken :-/. Sorry about that. > Maybe one could add host-dtc to the dependencies when building the device > trees along with the kernel? You can do that for now, but the real fix is to use the correct path. The dtc is in the kernel build tree not the source tree... Michael > > The patch that fixes it for me is below but I cant tell if that breaks > > the original intent. > > = > > --- a/scripts/lib/ptxd_make_world_dtb.sh > > +++ b/scripts/lib/ptxd_make_world_dtb.sh > > @@ -14,7 +14,7 @@ > > = > > =A0dtb_kernel_dir=3D"${pkg_kernel_src:-${pkg_dir}}" > > = > > - =A0dtc=3D"${dtb_kernel_dir}/scripts/dtc/dtc" > > + =A0dtc=3D"${pkg_build_dir}/scripts/dtc/dtc" > > =A0 =A0 =A0if [ ! -x "${dtc}" ]; then > > =A0 =A0 =A0 =A0 =A0dtc=3Ddtc > > =A0 =A0 =A0fi > > = > > Rich OGrady > > = > > _______________________________________________ > > ptxdist mailing list > > ptxdist@pengutronix.de > > To unsubscribe, send a mail with subject "unsubscribe" toptxdist-reques= t@pengutronix.de > Best regards, > = > Felix > = > _______________________________________________ > ptxdist mailing list > ptxdist@pengutronix.de > To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request= @pengutronix.de -- = Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@p= engutronix.de