Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1781481ybt; Sat, 27 Jun 2020 20:49:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxv/xhsD4we09sqPLH35QIJMp3/+oEdWYi5Kgo8I+LaXMNmbDxfQ0RTrrKiOZKGXiGx2cV X-Received: by 2002:a17:906:970a:: with SMTP id k10mr9170134ejx.236.1593316155551; Sat, 27 Jun 2020 20:49:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593316155; cv=none; d=google.com; s=arc-20160816; b=t0Sav8dhUjv4RPrsboOj4EzGcwLMtVLrCCCUglcTEHvyuVolIYSQot1jYua/040SH9 KNrX9IlrF+TKYcVZHdYFJNytpo80fKmzXZ62l9DoBPJB6Ga5ppUoHqRDpDMAjSla7dzt GHI2yHhX2cbedzBrpuP41yDYr9xVJa6FdWHv3ixAsyt5wpN4FrNsoC5gRiA9RwZ4IxIf syj5jOXMNOSkXemt4iCfO86hmUSqNmZXl9fdbSYABROEz++Z6t9DkuAF2hYA4nvjgoEM mQ2i6Y9SLmBm/0LJVihZwBnOTQSEBu/ljcKzrK0uDaq049ISUIKFYvoqsocUQ3StTuiF 3bSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=DLNJ5n4cDSP7nNoCWr7ufMcVCanKA6C664RpkVp1ifQ=; b=0BV9KGENBbicBoMf/r2e8pMpRqW5HRJ9xU5no2vobehybY3ZQnuGMS07tyHvZUjLHS GZSDDQ86HmoRA0hTUy9YuRmQ8o3blpU7SpvnqrtTyUShi9npEOGPPFQ20E3/LFFP3411 cc3ftQ1FZvCVItXLaeN+95AErMs5m9lhJIEX9b3ylxlPpPuNiZSVpuIK5IkNVYYMp6HR kJ02X636QS8QjiK1HoI8490k3oHvPJNMfVnH5wM9hrkpKiVJap9H/qCpDBweTGJB5rpk 8WpzU2sjkjt0bDno5EiYdcgA+5AiLtUwX5jno7v51DzIvJIRt682NdbOfrZt4mAGMFxb DHEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="rU37KV/4"; 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 y13si21989753ede.144.2020.06.27.20.48.53; Sat, 27 Jun 2020 20:49:15 -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="rU37KV/4"; 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 S1726065AbgF1Drn (ORCPT + 99 others); Sat, 27 Jun 2020 23:47:43 -0400 Received: from conssluserg-03.nifty.com ([210.131.2.82]:29721 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725973AbgF1Drn (ORCPT ); Sat, 27 Jun 2020 23:47:43 -0400 Received: from mail-vk1-f174.google.com (mail-vk1-f174.google.com [209.85.221.174]) (authenticated) by conssluserg-03.nifty.com with ESMTP id 05S3lTEP027124; Sun, 28 Jun 2020 12:47:30 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com 05S3lTEP027124 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1593316050; bh=DLNJ5n4cDSP7nNoCWr7ufMcVCanKA6C664RpkVp1ifQ=; h=References:In-Reply-To:From:Date:Subject:To:From; b=rU37KV/4lyn1VBBeafbpbk1h3fG+m59OGAmQKlBI/v8De2NtLyFAC9gkAgf9UbTVE nimcy8aGMVpl4xPoiRywHQQG4EvsNbtnWFPKoEViTx2F76lWzpsWH7izZKBO8nUpQL m9/yYUuBNHWZ4U5FspNrYhBFODANc8rZLBxB8x85S8tT/fDdHs9/mhFP+KMjMDzopc HHz+tSIu2x8YPVKqSRDCRiDsaj3jUE51U5/rSDw+2KoM3opm9XzkFjdpo5K3JAoFAc 16dNlcYq6uQpqGNmRZjoB9LdhdMsFCf7Ith0tGDQwxAmoafe31vpydOJTaWhI5yJUM OCP2ec7hafo/A== X-Nifty-SrcIP: [209.85.221.174] Received: by mail-vk1-f174.google.com with SMTP id y3so2751660vkg.11; Sat, 27 Jun 2020 20:47:30 -0700 (PDT) X-Gm-Message-State: AOAM530bzBLIiPdnWN/eA106sBLw5SQeYyX2G+8iVy3NECUIYX1XrQZQ 4IY0gBKq5l2Y/h+V+4bI/L8QdS02u/t9okFGfVk= X-Received: by 2002:a1f:a8d0:: with SMTP id r199mr6474281vke.26.1593316049260; Sat, 27 Jun 2020 20:47:29 -0700 (PDT) MIME-Version: 1.0 References: <20200627122505.GA6095@dumbo> In-Reply-To: <20200627122505.GA6095@dumbo> From: Masahiro Yamada Date: Sun, 28 Jun 2020 12:46:52 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4] kbuild: buildtar: add dtbs support To: Masahiro Yamada , 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 Sat, Jun 27, 2020 at 9:25 PM Domenico Andreoli wrote: > > From: Domenico Andreoli > > Make 'make tar-pkg' install dtbs. > > v4: > - Install the dtbs before modules & kernel, not after > - Check for the dtbs_install target before attempting to invoke it > > v3: > - Check for CONFIG_OF_EARLY_FLATTREE=y instead of ARCH before installing dtbs > > v2: > - Add the kernel release to the destination path > > Cc: Will Deacon > Cc: Catalin Marinas > Signed-off-by: Domenico Andreoli Applied to linux-kbuild. Thanks. > --- > scripts/package/buildtar | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > Index: b/scripts/package/buildtar > =================================================================== > --- a/scripts/package/buildtar > +++ b/scripts/package/buildtar > @@ -53,6 +53,18 @@ rm -rf -- "${tmpdir}" > mkdir -p -- "${tmpdir}/boot" > dirs=boot > > + > +# > +# Try to install dtbs > +# > +if grep -q '^CONFIG_OF_EARLY_FLATTREE=y' include/config/auto.conf; then > + # Only some architectures with OF support have this target > + if [ -d "${srctree}/arch/${SRCARCH}/boot/dts" ]; then > + $MAKE ARCH="${ARCH}" -f ${srctree}/Makefile INSTALL_DTBS_PATH="${tmpdir}/boot/dtbs/${KERNELRELEASE}" dtbs_install > + fi > +fi > + > + > # > # Try to install modules > # > > -- > 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