From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=3.0 tests=MAILING_LIST_MULTI,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EC168C43334 for ; Wed, 5 Sep 2018 23:53:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9EA742083E for ; Wed, 5 Sep 2018 23:53:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9EA742083E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726059AbeIFE0D (ORCPT ); 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-Google-Smtp-Source: ANB0Vdbrs88ccsQdrBIRLBtLdSR97TqWwYDgS5lwH0uZpOeHileUmLg6NL7k2yURyLmt0IsbFGmK6Q== 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