Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2036541imm; Fri, 7 Sep 2018 09:50:17 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbIYBZIPdbiDrzPv7OPO0ChIlOXIHMY/HRvaMU5+m2KXLiSo2fLGkowyQTRulysKI0KTLRw X-Received: by 2002:a63:144b:: with SMTP id 11-v6mr8948466pgu.219.1536339017147; Fri, 07 Sep 2018 09:50:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536339017; cv=none; d=google.com; s=arc-20160816; b=Ud37JpfdQjWKQojAzzUOUhgNn0QBzz0e9FiOg8I8Eeyj7wiulKvpI4ZI3Ia9CPGhom 8fpp/hJGKyaHH5IIxxVYBrJJDqZgp37K3u3IhFcW/zyLZkVkrQWqv4okRHz4C6gtrhNR YNuZlMgLgIrig9v4Uw4WOWUL77bvhhg6uSXdQKHRxJ+952xGbpJJNy3afw9/5+JgVZ2b pmOsDL4TaR+VlccvyjS8AH1NHxWQKj9wOZ8qYpXmNjmDmvqjqUkSo/X+/4GNSkuHyi9U aCcgGziBBYaI5gmDDeGkijAc++zOrKBk+zuyfmT1MT1zYMx8aZRFekqgTblQJJxXVlFf jFiA== 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 :references:in-reply-to:mime-version:dkim-signature:dkim-filter; bh=wER4gBuQUeE7HQITJpS3mJUP8Y3qHolw1TuwBhE/iqI=; b=dfC8PIjmRqA6nKGoDJUvmKkAElESMRlJTmtVwmKHOtA22C5NpY6LqWJuZci2EEG7xg glP2BoGQ5lmZFlaXTWGGDRxA4d8n4DDIuH1tAwhfzSTGX7Co9vI+KrLIFzqHAq8//uBc U6zG5pdl7p8tp0D5XEdq1k5HH/thrqk39pESYdrFvOVfc4xJOtFVbGXno7FDaG9JNhXQ 6NT8MVWEkwfOrRPCA6hSZaBknjS6SpTQOeGVW8H5XOi043ItLi4yabAvvK5MJM2ok9bi 7hiQ2YLzk5PkuaCXa4hlu3J66yaNANJ7vD83kr9w4VKBF387E+EJnk8aXR7HjG7sMAz1 QoNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=F84FBNhg; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w17-v6si9534323pfl.171.2018.09.07.09.50.02; Fri, 07 Sep 2018 09:50:17 -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=@nifty.com header.s=dec2015msa header.b=F84FBNhg; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726782AbeIGVaP (ORCPT + 99 others); Fri, 7 Sep 2018 17:30:15 -0400 Received: from conssluserg-02.nifty.com ([210.131.2.81]:24650 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726147AbeIGVaP (ORCPT ); Fri, 7 Sep 2018 17:30:15 -0400 Received: from mail-ua1-f41.google.com (mail-ua1-f41.google.com [209.85.222.41]) (authenticated) by conssluserg-02.nifty.com with ESMTP id w87Gm5ie012973; Sat, 8 Sep 2018 01:48:05 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com w87Gm5ie012973 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1536338886; bh=wER4gBuQUeE7HQITJpS3mJUP8Y3qHolw1TuwBhE/iqI=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=F84FBNhg/mJz6e6fsFV5lTBTHTYcUCW9/L+OYBJN66n/uTI6/Q529uSVuixScsqD1 GJQ84j8N967wKve5e1nIrmptQ+sK5e0UkcXuLW7j21o0SBa66Kt/WLXAkKyJ5zZUx8 Xld/eytmM3EQ+G7P8Qp4/kbJovKdM8iuXur7RFeNitqUFukxhL9+dUprcodxS/VIUP rqnkmt38K2G9FB6KyeETR9SstgECrHZAj6+nfZNod0bo17ab1QgbahG5HsN47jW5+X t/gEMEJxfNYpRwNJ5P2pGE++F2i/xlIegfQcqnC4FbgtX60NRqNEItry/ZfJ2Ya/7n wbTS63NGXRKWg== X-Nifty-SrcIP: [209.85.222.41] Received: by mail-ua1-f41.google.com with SMTP id g18-v6so12440586uam.6; Fri, 07 Sep 2018 09:48:05 -0700 (PDT) X-Gm-Message-State: APzg51DfYj2KqhEYggWugbMn0fPQeqh28B7EwzQ7vyGQCvhMRqa0fo48 YsL8wzL8y5NKSaHrGTRUsoJfA55ngD4dwtA++JI= X-Received: by 2002:a9f:3e87:: with SMTP id x7-v6mr3146609uai.53.1536338884570; Fri, 07 Sep 2018 09:48:04 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:7111:0:0:0:0:0 with HTTP; Fri, 7 Sep 2018 09:47:24 -0700 (PDT) In-Reply-To: References: <20180905235327.5996-1-robh@kernel.org> <20180905235327.5996-7-robh@kernel.org> From: Masahiro Yamada Date: Sat, 8 Sep 2018 01:47:24 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 6/9] kbuild: consolidate Devicetree dtb build rules To: Rob Herring Cc: DTML , "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 Hi Rob, 2018-09-07 21:17 GMT+09:00 Rob Herring : > 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. How about making 'prepare' depend on 'dtc'? Then, remove subdir-$(CONFIG_DTC) += dtc from scripts/Makefile but, add dtc to subdir- > Or I could just skip removing the > cross compiler dependency for now. I want to build scripts/ without target compiler. modpost is a special host-program that depends on $(CC). I will take a look at it when I find some time. -- Best Regards Masahiro Yamada