From patchwork Tue Aug 21 21:55:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 144780 Delivered-To: patch@linaro.org Received: by 2002:a2e:164a:0:0:0:0:0 with SMTP id 10-v6csp51191ljw; Tue, 21 Aug 2018 14:55:30 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyV3rAXPBXETM7teKUSP72yOQtp2acA+L1aB/8FD0TIVy7Iaq1CEZyFtMWD2d7z2rDZGxC3 X-Received: by 2002:a63:91:: with SMTP id 139-v6mr17944400pga.389.1534888530161; Tue, 21 Aug 2018 14:55:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534888530; cv=none; d=google.com; s=arc-20160816; b=OYstMfsWM75nA5hxabwhljtj284bM+L+go/eHQ0gagTrahIB9PG3gTfIPi9z+tK75H zjUDZ1XEIBpzyQWpfOx15mgOWxf7oRSOeG9Bvy2bQT+y9fsjkoDNfVmUDymBzrr22OAe kmY+OirFZimGw1Sn/Sryi2ZE5EmQ1uNRS9507wlP7cQaJKvP6qRmfJmJmMxtaiUIPhCO LgPy1Mp/Btuuo3n5cJGAcDKxl7btMAyFZa0ifi3WHjiUFCOcUdfh3L3lOAda+QQ7q9Hr EYKZZqEmgokr7KwLV+ZW07xssdY5BAUE4FvEM9kwVmmv9p6c/aVBwigC3N6oN7EU0xWD wHWQ== 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 :arc-authentication-results; bh=nYByRictVraWe44R39mkAFN6mZthpxcDanXdqeRYm3c=; b=Yji0CppveMr4WPldSN3OIccLDuynY8DXNLSc+36XGCXH3AkOvKY+EYls2CiGq6zvvq wbqc3ICtUfFLFuU8g50Ow9+RDh8LYP8qP8OQtOc/MS/fW9VUG6s8evb5ab2F3dvi0B6m CjNzXranj4vgPsi/EYMqPLuv3oRgNIW9QGgjGkAg03uCBrk09HYMMAP9OGOOIfjpwsB3 qpL2s/qjzH/qFNc7KgIRsvKaKoNIDjgCMAnXOMrb4xXrc09w56CHbDl52tdsET3nibkc JzOg0EMwU3QfWvhR29UxplBqdS7Y9e/yaYBHRmG9FoWfGQuWZCcaio3nt2mlkw9+wC0T nPLw== 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 s9-v6si13015549pgk.384.2018.08.21.14.55.29; Tue, 21 Aug 2018 14:55:30 -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 S1727159AbeHVBRX (ORCPT + 6 others); Tue, 21 Aug 2018 21:17:23 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:44635 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726755AbeHVBRW (ORCPT ); Tue, 21 Aug 2018 21:17:22 -0400 Received: by mail-oi0-f65.google.com with SMTP id s198-v6so34759393oih.11; Tue, 21 Aug 2018 14:55:26 -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=nYByRictVraWe44R39mkAFN6mZthpxcDanXdqeRYm3c=; b=c8z6erlHOY9hWKf499aNzF7fGO3TKlEN3lo7ecmLG3rHgka0wkAabGA/uTa7DkPAUD OT53XUc267/xBKSvjPQ7tt8IOu5Llma8iGKxKslPCpm8e7V6lEcKhZIbO4sEZATe0fJu FTTELRolxhXAVW/avqLudyy2/myzlfdocluqtAGLmL2+zSEIXnjxvhvZel3E9LSpKo0f n+4r/v3uofkS/wjT6LZL0Gv/zZOMpEjURPv7dsp+Nqpumcep1jjgCDHt2+cAy7BPTAc/ cKLIJ147kgdI5Zm/rB3GqVCVBWEOhP/l/7gteNcUWiqiYGZBoOxJLci5jcS0iJRRMVMz zk+A== X-Gm-Message-State: APzg51C05HwoHGsaxNZhcLiGiQLV6kpTd3BC3cGwcYuTXM/LgPvwEKQh /xt73Kxlk1l94AsZ5ttkVqCqn88= X-Received: by 2002:aca:401:: with SMTP id 1-v6mr1151864oie.28.1534888526316; Tue, 21 Aug 2018 14:55:26 -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 x126-v6sm18785332oig.15.2018.08.21.14.55.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Aug 2018 14:55:25 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Frank Rowand , Masahiro Yamada , 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 0/8] Devicetree build consolidation Date: Tue, 21 Aug 2018 16:55:16 -0500 Message-Id: <20180821215524.23040-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 Rob Herring (8): 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 Makefile | 30 ++++++++++++++++++ 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/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 | 1 - scripts/Makefile.lib | 2 +- 25 files changed, 87 insertions(+), 189 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