From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725780AbgFZVkb (ORCPT ); Fri, 26 Jun 2020 17:40:31 -0400 Date: Fri, 26 Jun 2020 23:40:26 +0200 From: Domenico Andreoli Subject: Re: [PATCH v2] kbuild: buildtar: add arm64 dtbs support Message-ID: <20200626214026.GB25753@dumbo> References: <5ef50e52.1c69fb81.b6cbd.bd8e@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: Masahiro Yamada Cc: Michal Marek , Linux Kbuild mailing list , Linux Kernel Mailing List , Olof Johansson , Will Deacon , Catalin Marinas On Fri, Jun 26, 2020 at 03:16:58PM +0900, Masahiro Yamada wrote: > On Fri, Jun 26, 2020 at 5:51 AM Domenico Andreoli > wrote: > > > > From: Domenico Andreoli > > > > Make 'make tar-pkg' install dtbs on arm64. > > > > Signed-off-by: Domenico Andreoli > > > > v2: > > - Destination path includes the kernel version, as expected > > > > --- > > scripts/package/buildtar | 9 +++++++++ > > 1 file changed, 9 insertions(+) > > > > Index: b/scripts/package/buildtar > > =================================================================== > > --- a/scripts/package/buildtar > > +++ b/scripts/package/buildtar > > @@ -125,6 +125,15 @@ case "${ARCH}" in > > ;; > > esac > > > > +# > > +# Install dtbs > > +# > > +case "${ARCH}" in > > Instead of checking ${ARCH}, > can you you do > > if grep -q '^CONFIG_OF_EARLY_FLATTREE=y' include/config/auto.conf; then > > ? Done in v3. > > This is what the deb package build does: > https://github.com/masahir0y/linux/blob/v5.7/scripts/package/builddeb#L145 > > > > + arm64) > > + make ARCH="${ARCH}" -f ${srctree}/Makefile INSTALL_DTBS_PATH="${tmpdir}/boot/dtbs/${KERNELRELEASE}" dtbs_install > > + ;; > > +esac > > + > > > Or, you can use INSTALL_PATH="${tmpdir}/boot" > to make it shorter. This does not work, INSTALL_DTBS_PATH gets somehow defined along the twisted path to buildtar and therefore needs to be explicitly specified for the new destination. > -- > Best Regards > Masahiro Yamada Thank you for the review. Regards, Domenico -- rsa4096: 3B10 0CA1 8674 ACBA B4FE FCD2 CE5B CF17 9960 DE13 ed25519: FFB4 0CC3 7F2E 091D F7DA 356E CC79 2832 ED38 CB05