Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1781072ybt; Sat, 27 Jun 2020 20:48:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfA88pKnjy5/3aLBYumdxZSgfEIRy4LHCYli+KlIIkKq6nAXUSOwOK16JOktksOcN2dR12 X-Received: by 2002:a17:906:848b:: with SMTP id m11mr8661906ejx.10.1593316088139; Sat, 27 Jun 2020 20:48:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593316088; cv=none; d=google.com; s=arc-20160816; b=L8wKIeyd5zvLrBvWFa1S9pX7JZIcUtBaqQYmnJdfcGNyy1z3hvx9vBUymD98C3ExX2 0tKJqI+SQLw20+dIPfEFHrQSqd89IPmDXn/aG+AhuzhfWfFMTPugOcZBaTzPeH2ts5f8 6bzTDwoNt9CpBl3/pSC8Kq8m6r7lPqR8b+XMl3kjYWK1VJyyTtKB0jLWH86iYY0NL0zY L2kp1O3baSuF/9Pjpq5IDryFVreMuVOt2Pckdpvvlwq1D0juUZ/nHUqB8Ur55f+qqiHZ ffTSNu3hQFWVuPvYVmSVL/36H3SAvb4/YqdnR+1P2d9q4RubQsiy4Psv/C+gyDxsKm29 J0aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=B7QRYdTs+cbEfWY3NzTlfvGAcsr/cihzW3ryEOQC/Zs=; b=n4qqJ28Qhrq+v+X3f3ZALno/+xrdgp/GyAx8nZuCr6Ghj+QUlI3pyBrFD1U1pCtIA9 Vx2qsZJ+yciUpxxSremkZUIJ6luGSXvq8cx+sqCSrzb8NsikOBYbQn5cxHvuZLzz9HzS nq7hFztbaPmHOUAaVxh33eQb7LQ3onhSOMCJawBHKKBCTN+t3XE3/Ksujowv0CtkppG/ Cpscf3RX87KeaAhCGUX9yqEoCnbpMhZcnYczBGLhdnEbRZ4HZCQr/gWRSaS1KWE1Lg+N gnn+Q2BAgUXYVnMaM98pV9Go37GQ+hp4keCD7m8SMx+uDmrxgajpfJ9KBZvMIBj7vWLH Ku0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=XpUISCZX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e8si9161089edy.494.2020.06.27.20.47.33; Sat, 27 Jun 2020 20:48:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=XpUISCZX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726012AbgF1DrX (ORCPT + 99 others); Sat, 27 Jun 2020 23:47:23 -0400 Received: from conssluserg-04.nifty.com ([210.131.2.83]:38090 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725973AbgF1DrX (ORCPT ); Sat, 27 Jun 2020 23:47:23 -0400 Received: from mail-vs1-f54.google.com (mail-vs1-f54.google.com [209.85.217.54]) (authenticated) by conssluserg-04.nifty.com with ESMTP id 05S3l5JJ006592; Sun, 28 Jun 2020 12:47:06 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com 05S3l5JJ006592 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1593316026; bh=B7QRYdTs+cbEfWY3NzTlfvGAcsr/cihzW3ryEOQC/Zs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=XpUISCZXHoa1LTTiHZ30O0pGybv+avlet7CcpKAGqsPFx47TbFFHuGAxOjj7wDXCv 9ERXDY2u4YrgUHfsea+OWkE/OYcArvhlntXgbzGff6lKqTJXftN8LE71HBaUztqmDy 7h734EpyCySWrj4JXPUruHrsU11C9TS9cmNtUDapX98IsBMIUruUqgD8TIoXwwS09s Xt57g3MRtBpEHwvT2PlMKvFMBJx1ZOquGPSRVZkv7dqSU/jqVV15euMmCBdPs3JD03 1uP99x+VL5dnEXr9Yc2RMD7aB1wPS6NwCWBnSAA13pDoeBs8ZEriqezucpFq4d2wuz UpoNh9CorPnrw== X-Nifty-SrcIP: [209.85.217.54] Received: by mail-vs1-f54.google.com with SMTP id x13so2768437vsx.13; Sat, 27 Jun 2020 20:47:06 -0700 (PDT) X-Gm-Message-State: AOAM530VTpjl2uHVI5n2YVtCeXDeImhkYA1mURkfVOwfwGPiO5Ym6KM2 saujwvHH7Ac2SOv9hOD2D/a++pju0PvftIC7V7w= X-Received: by 2002:a67:f813:: with SMTP id l19mr7115810vso.215.1593316024953; Sat, 27 Jun 2020 20:47:04 -0700 (PDT) MIME-Version: 1.0 References: <5ef50e52.1c69fb81.b6cbd.bd8e@mx.google.com> <20200626214026.GB25753@dumbo> <20200627212112.GA18721@dumbo> In-Reply-To: <20200627212112.GA18721@dumbo> From: Masahiro Yamada Date: Sun, 28 Jun 2020 12:46:28 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] kbuild: buildtar: add arm64 dtbs support To: Domenico Andreoli Cc: Michal Marek , Linux Kbuild mailing list , Linux Kernel Mailing List , Olof Johansson , Will Deacon , Catalin Marinas Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jun 28, 2020 at 6:21 AM Domenico Andreoli wrote: > > On Sat, Jun 27, 2020 at 09:02:52PM +0900, Masahiro Yamada wrote: > > On Sat, Jun 27, 2020 at 6:40 AM Domenico Andreoli wrote: > > > 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: > > [...] > > > > > > > > > > > + 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. > > > > It works. > > > > See line 1002 of the top Makefile > > > > export INSTALL_DTBS_PATH ?= $(INSTALL_PATH)/dtbs/$(KERNELRELEASE) > > Exactly. INSTALL_DTBS_PATH is _exported_ in the top Makefile. > > > This is what it seems to happen, in the order: > > 1. outer 'make dir-pkg' > INSTALL_DTBS_PATH is exported with some content > > 2. control arrives to buildtar > INSTALL_DTBS_PATH is there as environment variable > > 3. inner 'make INSTALL_PATH=${tmpdir}/boot dtbs_install' > INSTALL_DTBS_PATH is already set, therefore it is not modified Sorry, I was wrong. Your analysis is definitely right. I will apply v4. Thanks. > > To make the inner invocation work, I see these two options: > > 1. 'make INSTALL_DTBS_PATH= INSTALL_PATH=${tmpdir}/boot dtb_install' (untested) > > 2. 'make INSTALL_DTBS_PATH=${tmpdir}/boot/dtbs/${KERNELRELEASE} dtbs_install' > > I chose 2 but I can switch to 1, if you prefer. No problem. > > > Regards, > Domenico > > -- > rsa4096: 3B10 0CA1 8674 ACBA B4FE FCD2 CE5B CF17 9960 DE13 > ed25519: FFB4 0CC3 7F2E 091D F7DA 356E CC79 2832 ED38 CB05 -- Best Regards Masahiro Yamada