Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1625245imm; Fri, 7 Sep 2018 03:34:28 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZzt5Wg0ExRsJw0y/wCTawcBZcSXaEriHwIhacIdnedRe6YN53U4iN14jIBRSP+YLBajHAe X-Received: by 2002:a63:d401:: with SMTP id a1-v6mr7499965pgh.414.1536316468855; Fri, 07 Sep 2018 03:34:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536316468; cv=none; d=google.com; s=arc-20160816; b=AlIXUuBICUrIhfxWIzf6cbkJAQhP50DMJXtPlZwLlVp3maEPa2gUVE7p2RZ8LllqrW VRhnWuJ3lCtN6CeoO5mwNdW0lW+5gNy7dscmxVflXPwe2h2PkzGa6Du9bNnfkdkU6A9I TKPhs3oK0YlVBdlAPsS5UCImxr/xYAqGN36QP2DzYs/y0EB2hsV6eOhmJVvVeo5yBpfC rYE8NEEvENSbOA7++UTi6zeSi33QQCnsp0dIZVXolzRGTyvHUQ3IxOSsf95M5nEtYvAV QlL+4Olpmr5JIlzN9I3aHKNSsLiM8tQZ/nzQe0991aBE+Km/sCpd41+uHP+8bc9yDokY hzrQ== 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=pJCv2283OBzHmxus/1+hSNzyq8ZyWd6ml6XFVuZWUYM=; b=jKB3cy3GE7Zuc+0yFqom2iZH5kktwP87BXvD3gFpZE7C5Ef0WV2YMk7KpYOuqM+KfD K6Q5k6fILAX4HVKKyshViwHUeTlPZkvLnaNPhCJObjXMlI1oPk+JpFONtco9ObY+ZmK1 bxmUmHAOLcHaOOStbFd1bqXY2P1+tL3L+4Vvr/PUqNRWvG9jB1bqalysjwjBzIN4j8KX BfvnS2KuKT/mlJMy1ucy3Jp5JLYbe1QEcksrp56NJqw77CkpILFU2vOZBnJ1M7HC1Kni /ZvnaAWdFWupnSH8b+ZCgvCOIw0qUw31huvNasSNk3WDVuo5Gm5X0O9s3vRomRPsfmt/ q5ZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=sfe2YE4T; 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 t1-v6si8871605pfb.208.2018.09.07.03.34.12; Fri, 07 Sep 2018 03:34:28 -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=sfe2YE4T; 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 S1728573AbeIGPNS (ORCPT + 99 others); Fri, 7 Sep 2018 11:13:18 -0400 Received: from conssluserg-04.nifty.com ([210.131.2.83]:45614 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728443AbeIGPNS (ORCPT ); Fri, 7 Sep 2018 11:13:18 -0400 Received: from mail-ua1-f41.google.com (mail-ua1-f41.google.com [209.85.222.41]) (authenticated) by conssluserg-04.nifty.com with ESMTP id w87AWlcd018165; Fri, 7 Sep 2018 19:32:47 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com w87AWlcd018165 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1536316368; bh=pJCv2283OBzHmxus/1+hSNzyq8ZyWd6ml6XFVuZWUYM=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=sfe2YE4ThYFGu9LJio64fEpbE9DERir1mv/+uUHFsLRO8QnNIPMyGCLc31/DKLXei OY7B6QMSJ3jacMZEDyIRnfyonmDoK5uXULCgRW/g76rQmuknyxBSYINJJ8VhuHnDRZ HCbZ7243HOLNchBJdolwgwiEN1/WnaSR6tva5L65mTOyS4kKg+KIX7jxzhSv5hPXdl S+xhHReWH+pHtIlOkFBLHrVttV6cuOH9EXoltLBOCe2U2xPfwkopDVwLKfHxucxO1t /Y4LptNfPAH7aqYofOL4aCb7W8133npcsNtyxI2WilGUNKTqEeWy5UlGo8t7hAD0ZJ CUdl2NwSXAFQQ== X-Nifty-SrcIP: [209.85.222.41] Received: by mail-ua1-f41.google.com with SMTP id y10-v6so11538126uao.4; Fri, 07 Sep 2018 03:32:47 -0700 (PDT) X-Gm-Message-State: APzg51DrQ/dOjZmvSltKs77ilR3yI9SSXaJTOJZPwmn8aWVyEYiHQ11z B640g9fnqxPQNSivZOD+xJlDiblNW6vU/MxuV7Y= X-Received: by 2002:a67:4441:: with SMTP id r62-v6mr2584846vsa.38.1536316366545; Fri, 07 Sep 2018 03:32:46 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:7111:0:0:0:0:0 with HTTP; Fri, 7 Sep 2018 03:32:06 -0700 (PDT) In-Reply-To: <20180905235327.5996-7-robh@kernel.org> References: <20180905235327.5996-1-robh@kernel.org> <20180905235327.5996-7-robh@kernel.org> From: Masahiro Yamada Date: Fri, 7 Sep 2018 19:32:06 +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 Mailing List , 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 , linux-snps-arc@lists.infradead.org, linux-arm-kernel , uclinux-h8-devel@lists.sourceforge.jp, 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 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 -- Best Regards Masahiro Yamada