From patchwork Wed Sep 5 23:53:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 146052 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp104197ljw; Wed, 5 Sep 2018 16:53:32 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY9gvBNG87uXhkjM7ZnIAuLVIfPslE95c9xQSnfL22cS1EFWePv04pY/avjJ0JrT25jK7G2 X-Received: by 2002:a17:902:82c5:: with SMTP id u5-v6mr106261plz.83.1536191612474; Wed, 05 Sep 2018 16:53:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536191612; cv=none; d=google.com; s=arc-20160816; b=QBXxXWtbcad5eE/mUL5ovJO/7yw5HJ2usmnmt8uK+t0IBVKCCIIVL3kHxtzScaN/dJ MvKMo4ba1lm7/rUC+E6UbW57sQQmeMwvul6AAyKPCo+zw2cn8/h8tW6u8cefwWcq4nqO eEaL2xezPpHXiOdtCoVu91kTRMJvgwQ2DGyjmmyApGZHoOXIRON796HPlcBL3cTkSsnU UHQpxqNn6xMA5U0CN7EG0hiGtM5w5O2Pk/CpRajLHRVHyL7fKIumKtaK8y4X7i+Lj7EJ re/UfZ1wNw4Rpcdr4etauUaRVP+i4dK3TGcpZn1e/uhDWUVuAXf8+YlAdoKqwWpjHM45 gtfQ== 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=0qB7ZfTpAht49gEyQxQ0IKaNkdaFcufJkyED1hG/hn1r5m1JRo1OZra4yPzV0baymU 5empbG5z5VOYIDEpYXZQxw+bd8S2ovkXu0EBVtOr2Guci6G2T5va4NvNnIB01lk9sdd9 VV0yehEf143wEPgvWS6NVyd/KsPV+VH45jPVbTUkWr8qS/eNt+zCPeFH0klx/NewqmKX eg85EFpx5YR+agVqyS05BsbTT1R66M6wNPp2LYRjeaXBdj9ApAeVQRBP1BPNawNBwNy2 ox2nhnXICqBJQxyUd8QvhARv10wc55xEM/H4yYJ+C0bfYl0JPCAft2DVm/o6bV8R4ln4 Hu6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 u64-v6si3486293pgu.533.2018.09.05.16.53.32; Wed, 05 Sep 2018 16:53:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1725938AbeIFE0D (ORCPT + 6 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 Acked-by: Ley Foon Tan