Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1854332imm; Fri, 7 Sep 2018 07:12:08 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb1zX87zT+TXetmYHEEZ17u/QscAWVqDFZUZgo1GulDMfKEEqgq+kd+DpkVDOpL753qNVrH X-Received: by 2002:a63:a112:: with SMTP id b18-v6mr8424294pgf.384.1536329526902; Fri, 07 Sep 2018 07:12:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536329526; cv=none; d=google.com; s=arc-20160816; b=dnuEfXXARJBrjLECZH/ubGMXU+Qxn/AWWLfL//4Z90GEVoXZ6jqmNxwAHpGZAYcHNH MDpxDeG/8BAVn5oIJXHVU3sYkEKSD+tY/0anSTEHs2hyNEy0T2WjFq+2cv4jYTGFlXW/ ot9oM8owwGOITy2gUSxNE7sAJ8AYb69X8mTcjjeyI9DL085qju77X0KtaMWjTCbkcCF/ o1WPohPUxIu4mee/GzSet2UzqBZUg+3MCQ5Ft1yb4nwIjie67stSFUoZN133cVwgOZGE MSiMqgPP6xxUJxBzyL9LFMIKyW9nctaSTxKg+VQv48RT9jRnh0z0+z8NWZVvT43mjgFN mxow== 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; bh=sE6g3PR4I7T2FOCwNjV8wfEyKWfkHaW/EQ743NJaJe4=; b=V/9SfxqQEKQMbhOL5hQb4uKkW++RDu0ebFBW7+8F3sQQVDsmh2bA6fGhXJnnZyQVuu jypLuoPZS2gFnV1QY9b0y7iwNN+WtQPoilqGZs8oDdta1BBC9PqC8zJhSl8Km+GpJkzt +9wVb+QhHOULgkpkWuR582ED4oDMc+ZrDzAdG8t6ZaOkcylj2u2rsZhYl6OF6eofMan2 5X3GZLXizVVmvS6hxWJwOWM+iXIsGNgs0WoAbhSk/Ct5eDHtQX4o/7cTttFOs5n2RAn3 Im3wTsCN/fjDTSfB9JP0pLK9/jODf0mUDkxRRpdXhgUSwqfL5IOd3oKRAWyax9ndLGCI Lwxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=B77RZK2G; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id d8-v6si8902124pfg.115.2018.09.07.07.11.51; Fri, 07 Sep 2018 07:12:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=B77RZK2G; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1729092AbeIGQ6J (ORCPT + 99 others); Fri, 7 Sep 2018 12:58:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:51508 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726293AbeIGQ6J (ORCPT ); Fri, 7 Sep 2018 12:58:09 -0400 Received: from mail-qk1-f176.google.com (mail-qk1-f176.google.com [209.85.222.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8A4202087F; Fri, 7 Sep 2018 12:17:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1536322646; bh=v7PPafnaIWEpB3J+/CA4+gTvEigEiq4bdz4wthz6CwM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=B77RZK2G99nWrhDeephUjsTCpdPH0pJvkr7Jgp5TOOAlc7Y08y+nNpzNeFWVIK1VV U/RPu9OgTF49lVb173jY6hZPAUJ0P2Jdjv84Qb54EJl9OqF4bdY+V+8lG1IuZ/wf1H //DSjYDo3e8ax7ZBSawA8WkNd8g1XFrrtRvFwo78= Received: by mail-qk1-f176.google.com with SMTP id d15-v6so9557442qkc.1; Fri, 07 Sep 2018 05:17:26 -0700 (PDT) X-Gm-Message-State: APzg51CVtxDUVIVXK9OnZ2DaLrZaHpUcHsWJrdSUgxj3DFEN96A0P0pe E4uaTN/jougEhAd/qy7MOblzlqerjIFLOw/Wkg== X-Received: by 2002:a37:bec4:: with SMTP id o187-v6mr5468316qkf.326.1536322645565; Fri, 07 Sep 2018 05:17:25 -0700 (PDT) MIME-Version: 1.0 References: <20180905235327.5996-1-robh@kernel.org> <20180905235327.5996-7-robh@kernel.org> In-Reply-To: From: Rob Herring Date: Fri, 7 Sep 2018 07:17:14 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 6/9] kbuild: consolidate Devicetree dtb build rules To: Masahiro Yamada Cc: devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , Michal Marek , Vineet Gupta , Russell King , Catalin Marinas , Will Deacon , Yoshinori Sato , Michal Simek , Ralf Baechle , Paul Burton , James Hogan , Ley Foon Tan , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Chris Zankel , Max Filippov , Linux Kbuild mailing list , arcml , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "moderated list:H8/300 ARCHITECTURE" , Linux-MIPS , nios2-dev@lists.rocketboards.org, linuxppc-dev , linux-xtensa@linux-xtensa.org 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 Fri, Sep 7, 2018 at 5:33 AM Masahiro Yamada wrote: > > 2018-09-06 8:53 GMT+09:00 Rob Herring : > > There is nothing arch specific about building dtb files other than their > > location under /arch/*/boot/dts/. Keeping each arch aligned is a pain. > > The dependencies and supported targets are all slightly different. > > Also, a cross-compiler for each arch is needed, but really the host > > compiler preprocessor is perfectly fine for building dtbs. Move the > > build rules to a common location and remove the arch specific ones. This > > is done in a single step to avoid warnings about overriding rules. > > > > The build dependencies had been a mixture of 'scripts' and/or 'prepare'. > > These pull in several dependencies some of which need a target compiler > > (specifically devicetable-offsets.h) and aren't needed to build dtbs. > > All that is really needed is dtc, so adjust the dependencies to only be > > dtc. > > > > This change enables support 'dtbs_install' on some arches which were > > missing the target. > > > > Cc: Masahiro Yamada > > Cc: Michal Marek > > Cc: Vineet Gupta > > Cc: Russell King > > Cc: Catalin Marinas > > Cc: Will Deacon > > Cc: Yoshinori Sato > > Cc: Michal Simek > > Cc: Ralf Baechle > > Cc: Paul Burton > > Cc: James Hogan > > Cc: Ley Foon Tan > > Cc: Benjamin Herrenschmidt > > Cc: Paul Mackerras > > Cc: Michael Ellerman > > Cc: Chris Zankel > > Cc: Max Filippov > > Cc: linux-kbuild@vger.kernel.org > > Cc: linux-snps-arc@lists.infradead.org > > Cc: linux-arm-kernel@lists.infradead.org > > Cc: uclinux-h8-devel@lists.sourceforge.jp > > Cc: linux-mips@linux-mips.org > > Cc: nios2-dev@lists.rocketboards.org > > Cc: linuxppc-dev@lists.ozlabs.org > > Cc: linux-xtensa@linux-xtensa.org > > Signed-off-by: Rob Herring > > --- > > Please ack so I can take the whole series via the DT tree. > > > > v2: > > - Fix $arch/boot/dts path check for out of tree builds > > - Fix dtc dependency for building built-in dtbs > > - Fix microblaze built-in dtb building > > > This breaks parallel building > because two threads could descend into scripts/dtc > at the same time. > > 'all' depends on both 'scripts' and 'dtc'. > > * 'scripts' target -- descends into scripts/, then scripts/dtc > * 'dtc' target -- descents into scripts/dtc directly Any suggestions for how to fix given the problem with depending on scripts? I suppose I could make scripts depend on dtc instead, but I'd be back to needing to fix cleaning. Or I could just skip removing the cross compiler dependency for now. Rob