Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp151786imm; Wed, 5 Sep 2018 16:55:00 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZEXwxGG/qlyGw+LNC1vaxC7Co04S3k4Ie00jjuSH7xJknpkKavM9s8doLXtIGTj0Zmn+Vq X-Received: by 2002:a17:902:8348:: with SMTP id z8-v6mr119333pln.51.1536191700263; Wed, 05 Sep 2018 16:55:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536191700; cv=none; d=google.com; s=arc-20160816; b=ezpZE4S7W//Ph+ssg07YEqOtV1KL9zXK0D5oGj4V2M8IKzbTraXpvXSGPT8welG4wm SfNMHc8gSOGZbhdr4Wsfcgf9lcqB9UZiww2oxRBm9VSuya8voyRKlIzSG2pbZMzz7CWA LNDbP9MOpzUgHl9v4VZguVRJuefl6dwKW+5/mdLQ8X6f0XtGQP4npH4fabEDlG6B6dAV Ev+yq6FlLG/y4xq7sp1jPCdJkI0sam1xJKI1u5j6QeRnFZRF3/+uRPc5X97fXaQ31uwt JwP3dfYXX3FmSC9M2SUCyoTa0RHW6ip67oyzDQfmHLriqx06OKzVEYm2NbfoqFkgCe9n rDoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=OyvN1cpM7RnrgXuUADJuSHYQfVp0emDNRAOJvT0826M=; b=rrblBTynagcKOsqQQ1xJ3bMxfHo8pjisRYW8hId86uiX+Nj55N4jwdtlvmkgnNVgL8 t0zDxoBFwIJ45+Wt6YIl0YTIraK4lvpPBKN0FnupyBZCHygdgvfqTcTWExTm2HbZUKj/ sRBvS3R51+e1nbufYzLxxerldMG66dcU8LbaDpsHjwrhaoiL89YqAUi7m2dHiUxJc3Zg 6qNlsQYtLe1U25NGDmOPp7pHn6mU9ifaQpthHHl8NasS4kzUOJqqY9ONA4qtNLwD1EdU jXe89V1AZuA9zIcnXYfC1aZ0D5MS8UD3D2q/9LUquXJjfveV+uZWlnJd/VvedGzSgg6Q /JMw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 bb4-v6si3290888plb.467.2018.09.05.16.54.44; Wed, 05 Sep 2018 16:55:00 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726017AbeIFE0D (ORCPT + 99 others); Thu, 6 Sep 2018 00:26:03 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:41204 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725804AbeIFE0C (ORCPT ); Thu, 6 Sep 2018 00:26:02 -0400 Received: by mail-oi0-f66.google.com with SMTP id k12-v6so17090391oiw.8; Wed, 05 Sep 2018 16:53:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=OyvN1cpM7RnrgXuUADJuSHYQfVp0emDNRAOJvT0826M=; b=nWEJ58tZ7OcS0KuR7fsSR/BIruQxZmRfTLQTzKZ1dZ3sfXCOb0qaBdKB2cb7q+vesV tsovDJrxHXwxKFTThdK/HULRslaYm9f8f2m3iF2g7WKq7ZfViGW9en4X1OkjrVbLGvwJ HaEm2LZ2K9SbODIs8QjitLV7977zEvFv4tBn6FLMgnqag9qMNLIZiuTho9TIWkJRRe16 VSWTo9pAxatn7kl3zcJirXzGo59XboLzZREeioLpV7pZi02Mzr/sS9szv8I4RX4ZOIPT ClDp8R8NMltQh6FajBHSjhMMEjUAbcCYj/+yuZzbuV+Dooj2J1wIeS+a+fHhW+DUKllV 5xcg== X-Gm-Message-State: APzg51Dl1zo8eDPWbE66VxSfHzjQulv521PMbObsGVWwRK3I+I4PO+fM nlGGL2fO4rlOVjFaVXbEt6BJLQU= X-Received: by 2002:aca:6541:: with SMTP id j1-v6mr100231oiw.157.1536191609819; Wed, 05 Sep 2018 16:53:29 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id h186-v6sm3860624oib.55.2018.09.05.16.53.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Sep 2018 16:53:29 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Masahiro Yamada Cc: Frank Rowand , 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@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, uclinux-h8-devel@lists.sourceforge.jp, linux-mips@linux-mips.org, nios2-dev@lists.rocketboards.org, linuxppc-dev@lists.ozlabs.org, linux-xtensa@linux-xtensa.org Subject: [PATCH v2 0/9] Devicetree build consolidation Date: Wed, 5 Sep 2018 18:53:18 -0500 Message-Id: <20180905235327.5996-1-robh@kernel.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series addresses a couple of issues I have with building dts files. First, the ability to build all the dts files in the tree. This has been supported on most arches for some time with powerpc being the main exception. The reason powerpc wasn't supported was it needed a change in the location built dtb files are put. Secondly, it's a pain to acquire all the cross-compilers needed to build dtbs for each arch. There's no reason to build with the cross compiler and the host compiler is perfectly fine as we only need the pre-processor. I started addressing just those 2 problems, but kept finding small differences such as target dependencies and dtbs_install support across architectures. Instead of trying to align all these, I've consolidated the build targets moving them out of the arch makefiles. I'd like to take the series via the DT tree. Rob 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 - Add dtbs target for microblaze Rob Herring (9): powerpc: build .dtb files in dts directory nios2: build .dtb files in dts directory nios2: use common rules to build built-in dtb nios2: fix building all dtbs c6x: use common built-in dtb support kbuild: consolidate Devicetree dtb build rules powerpc: enable building all dtbs c6x: enable building all dtbs microblaze: enable building all dtbs Makefile | 32 +++++++++++++++++++ arch/arc/Makefile | 6 ---- arch/arm/Makefile | 20 +----------- arch/arm64/Makefile | 17 +---------- arch/c6x/Makefile | 2 -- arch/c6x/boot/dts/Makefile | 17 +++++------ arch/c6x/boot/dts/linked_dtb.S | 2 -- arch/c6x/include/asm/sections.h | 1 - arch/c6x/kernel/setup.c | 4 +-- arch/c6x/kernel/vmlinux.lds.S | 10 ------ arch/h8300/Makefile | 11 +------ arch/microblaze/Makefile | 4 +-- arch/microblaze/boot/dts/Makefile | 4 +++ arch/mips/Makefile | 15 +-------- arch/nds32/Makefile | 2 +- arch/nios2/Makefile | 11 +------ arch/nios2/boot/Makefile | 22 -------------- arch/nios2/boot/dts/Makefile | 6 ++++ arch/nios2/boot/linked_dtb.S | 19 ------------ arch/powerpc/Makefile | 3 -- arch/powerpc/boot/Makefile | 49 ++++++++++++++---------------- arch/powerpc/boot/dts/Makefile | 6 ++++ arch/powerpc/boot/dts/fsl/Makefile | 4 +++ arch/xtensa/Makefile | 12 +------- scripts/Makefile.lib | 2 +- 25 files changed, 93 insertions(+), 188 deletions(-) delete mode 100644 arch/c6x/boot/dts/linked_dtb.S create mode 100644 arch/nios2/boot/dts/Makefile delete mode 100644 arch/nios2/boot/linked_dtb.S create mode 100644 arch/powerpc/boot/dts/Makefile create mode 100644 arch/powerpc/boot/dts/fsl/Makefile -- 2.17.1