From patchwork Mon Oct 1 15:25:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 147910 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp4044271lji; Mon, 1 Oct 2018 08:25:40 -0700 (PDT) X-Google-Smtp-Source: ACcGV61zhrRZXFINq5H4zG0X10juboTl35fUjmh56W3h8/a9mb3Poj4FpED89y2cPBQG4gk4g3JL X-Received: by 2002:a17:902:694a:: with SMTP id k10-v6mr12218114plt.166.1538407540639; Mon, 01 Oct 2018 08:25:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538407540; cv=none; d=google.com; s=arc-20160816; b=egXHjA/r+yWBS0PdRkxykf6mbXGm7AxRfuwKVA/gfn+4pX1E39emKlvrOhWnKhSSAp e/VYJBYwX5FEkmNXU6BcaWR0FZEbXbsJAjsj+Np7p0xgcO5sAeRJhw7cTezOCbLc6SiJ o30MdDyoTUwqh7t3hBBFdq+2yi7S1aNlT43JPqLyWX+bZkDaoWO6towl3VaByA8FuuY2 WWBcTKKrmBnxqgIOK+NwGGs1GPQa+SFCjT/EXfTsWLI9TXhmpluHdJRab7IBLFlbaq2F RHHFNoWhCLFt2MCcbF99KKTUd4NnbrdQd3WJjFp/YaLI4Hsy0t1edthXlKkeDJnSZhy0 lrBw== 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=UyCzgVa0S9jSz66CwZemQEtwQKyE2g8HQUKaESq/u1s=; b=PpEXnk7O+5rm7PL2O3cn/sQ6orPQLOslpRb/UHsFOWsr6zBk56JgMe6NWuYcB6Dzi2 8a0ebTTpj+dTxoTbnNjs76NClvGYR4Sm22YCTmUWkrW78xGsNDeR2WR2ZugC6uuBCeQF dhoYoS43lIFcnE9awHs7pEAAjE92nA/C1ABj2Gwf1zby3s+1OB+/kF1qiwb4RXJy4Lao I/fDH8OrbauKdT7QL6dFN8nQuboPKGBXb0T3w5EgyHf8IDGi7HebOTVa+z7bWvJ4wHKi IjLWT4AgRIUCfQXmQlemGJYso2p/4GXRYhbD9aMScMl3wJ2vIviYeew8jU1HM3h3U+sQ UL7A== 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 h185-v6si13608973pfc.172.2018.10.01.08.25.40; Mon, 01 Oct 2018 08:25:40 -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 S1729587AbeJAWD4 (ORCPT + 32 others); Mon, 1 Oct 2018 18:03:56 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:33511 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729516AbeJAWDx (ORCPT ); Mon, 1 Oct 2018 18:03:53 -0400 Received: by mail-ot1-f68.google.com with SMTP id m23-v6so13516753otf.0; Mon, 01 Oct 2018 08:25:34 -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=UyCzgVa0S9jSz66CwZemQEtwQKyE2g8HQUKaESq/u1s=; b=b8N7qDbdKNLg/Rj3TPISQTpCjB5u8epuVqe/tpz/cOcSyYJ0husxyaCRVqFjP2lByZ YOHzNsxGpK8O8Og+wKOzB/qGKIOdv4v5dK9p5k186Kuqn8txUu51xPus9uQJnbYT0Qyf pccvfLUNKbxJBR8GVJkHGEI2vOiwcrVc83KFqJmb6LISfsQaT5EXE7fuayBhQ/901m3N oFrQ2MyTmUUIsdxRWZzg7/P6wCGD3DDb1j2aMYnlrAp6HgbXkAjPzZ2KNi6BYrVUueZe FZ+z2hz1xCBFvMAIvhHuzAs7REw6uDWYPXI7UzhdpQGpjz0+ch8VYOdyzOHXuEGyxsUy 5ALg== X-Gm-Message-State: ABuFfog0g/slpSYYWcCtaXuVMmupqFAtbHQCWtW5AGw5024KyIz0iZjT lG+72T4OKaKPfD6aiePqUBdiPt/cfA== X-Received: by 2002:a9d:461a:: with SMTP id y26mr3008875ote.113.1538407534222; Mon, 01 Oct 2018 08:25:34 -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 s203-v6sm2047035oif.33.2018.10.01.08.25.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Oct 2018 08:25:33 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Masahiro Yamada , Frank Rowand Cc: Michal Marek , Vineet Gupta , Russell King , Catalin Marinas , Yoshinori Sato , Michal Simek , Ralf Baechle , James Hogan , 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, Will Deacon , Paul Burton , Ley Foon Tan Subject: [PATCH v4 0/9] Devicetree build consolidation Date: Mon, 1 Oct 2018 10:25:22 -0500 Message-Id: <20181001152531.3385-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. PPC maintainers, really need you review/ack on this especially patch 1. Rob v4: - Make dtbs and %.dtb rules depend on arch/$ARCH/boot/dts path rather than CONFIG_OF_EARLY_FLATTREE - Fix install path missing kernel version for dtbs_install - Fix "make CONFIG_OF_ALL_DTBS=y" for arches like ARM which selectively enable CONFIG_OF (and therefore dtc) v3: - Rework dtc dependency to avoid 2 entry paths to scripts/dtc/. Essentially, I copied 'scripts_basic'. - Add missing scripts_basic dependency for dtc and missing PHONY tag. - Drop the '|' order only from dependencies - Drop %.dtb.S and %.dtb.o as top-level targets - PPC: remove duplicate mpc5200 dtbs from image-y targets 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 | 37 +++++++++++++++++++- 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 | 55 ++++++++++++++---------------- arch/powerpc/boot/dts/Makefile | 6 ++++ arch/powerpc/boot/dts/fsl/Makefile | 4 +++ arch/xtensa/Makefile | 12 +------ scripts/Makefile | 3 +- scripts/Makefile.lib | 2 +- scripts/dtc/Makefile | 2 +- 27 files changed, 102 insertions(+), 195 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