From patchwork Wed Sep 5 23:53:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 146054 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp104390ljw; Wed, 5 Sep 2018 16:53:50 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaXYf+7fNuyIabouUJ4U/se2yu74mEv9JFgkn7gVjmoIZKCpn3k64trQh35sN13YlnLKOZo X-Received: by 2002:a62:e008:: with SMTP id f8-v6mr138960pfh.208.1536191629991; Wed, 05 Sep 2018 16:53:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536191629; cv=none; d=google.com; s=arc-20160816; b=0og3Lxk2D3h2/H0dSV2Vad3UGQoK/r2C6v2vp2LB4l7XhVAVKJ8ZuyLlw9VeiFpkmV w1RjjJUoQcDk3736eMyR+dCVIH7lTRP8xMgula606iC4/E5EDRj+49YkFYYi2qEd3oR+ jt/neEf+O4XE/SANrS7DjQS3CpGnaauTz6HNicLJk8olpvQbdAGgwya0Pcil9SYgQbZV R25v7HQ0txFICEEJTtauAXiYVi+n6Ja3q+y6rSkFjBxjCGiVC44twRsGwkrqrsfpj+Hh Y86e4k+r7VYM4LmO7la+AangBycHCxs6DmRXuTsa5Qvc9oPEgYC/Eex2HurV+evedmmn Qf+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=536qjisqbzf15CCnT+KJXbmbrcg6Ws7yKjBosjpRz50=; b=aqPbcjmm/Rvu8GLBj952BIW8dgZ/qVz6KaadC78zwAwLlO6NYxuYMTC6TxDCCuCkHF dSXasfCu+Y//FTur95xnEqKqAOQt99pYiuYkO7r1S9BtEEe+ZA2OKxSgi2nB6PGIZZS4 Qu3kye/oYDye70PYfZEhzf/T/oSs2w/aNEn4f/vYk8iQKFgfuyAOuPOKvMsprLa/eq4M ah5NM+9e9atrlMI2XOJ6o1SwF8d74wvw0oXJr16j6exQxU5PEJBDKWfil9+xzysGVGSq 0aQBojsITqBL7sLH1go5//dmC/jiS+g07DsMwr/Be/8MPSGhnqw4fLnqaqYkBzsfDq6K 1+SQ== 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 u190-v6si3649961pgb.270.2018.09.05.16.53.49; Wed, 05 Sep 2018 16:53:49 -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 S1726404AbeIFE0F (ORCPT + 32 others); Thu, 6 Sep 2018 00:26:05 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:37648 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725804AbeIFE0E (ORCPT ); Thu, 6 Sep 2018 00:26:04 -0400 Received: by mail-oi0-f66.google.com with SMTP id p84-v6so17149781oic.4; Wed, 05 Sep 2018 16:53:32 -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:in-reply-to :references; bh=536qjisqbzf15CCnT+KJXbmbrcg6Ws7yKjBosjpRz50=; b=GWfpAX6iL0JFt+jkqJt3+C9VZE3B34ERc7JwRYR4T+cPd08nNgZbBTDxwujr3fN3RL ghCF0mnyyXEBZmsLhoqviIHHlBbx9lvV3/ZSP7eeMx0Zd8HbIXdtU1Fvv6oIpH9JfiyG 2wITndv4PH3vtBQvNH74FzwIbf5UFa2qjZdc/UqoifR6OmIRnRmzvujpOEd3EslAS0/S TGVHYey0j8F0C5WgmReyBKUJr1tLV8kekRZiicpwwlJPS+UVybiO4SnVm6qrzhOEOfTW 7ET+gf3uixisMSdr2BWBtc1YvAqSgb+Uh5zN3TiFkOQvGyZozKDbLukakdysyio+X1QT bZcA== X-Gm-Message-State: APzg51D1oYJBUT4F4Qg8rPDFFrf6L20PCFGhs/1Ybwj5i8h8Y0G3ohP8 gE0lnvGVkDcTzn4osDJSO5v+G0I= X-Received: by 2002:aca:2c02:: with SMTP id s2-v6mr100787ois.305.1536191611793; Wed, 05 Sep 2018 16:53:31 -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.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Sep 2018 16:53:31 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Masahiro Yamada Cc: Ley Foon Tan , nios2-dev@lists.rocketboards.org Subject: [PATCH v2 2/9] nios2: build .dtb files in dts directory Date: Wed, 5 Sep 2018 18:53:20 -0500 Message-Id: <20180905235327.5996-3-robh@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180905235327.5996-1-robh@kernel.org> References: <20180905235327.5996-1-robh@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Align nios2 with other architectures which build the dtb files in the same directory as the dts files. This is also in line with most other build targets which are located in the same directory as the source. This move will help enable the 'dtbs' target which builds all the dtbs regardless of kernel config. This transition could break some scripts if they expect dtb files in the old location. Cc: Ley Foon Tan Cc: nios2-dev@lists.rocketboards.org Signed-off-by: Rob Herring --- Please ack so I can take the whole series via the DT tree. arch/nios2/Makefile | 4 ++-- arch/nios2/boot/Makefile | 4 ---- arch/nios2/boot/dts/Makefile | 1 + 3 files changed, 3 insertions(+), 6 deletions(-) create mode 100644 arch/nios2/boot/dts/Makefile -- 2.17.1 diff --git a/arch/nios2/Makefile b/arch/nios2/Makefile index 8673a79dca9c..50eece1c6adb 100644 --- a/arch/nios2/Makefile +++ b/arch/nios2/Makefile @@ -59,10 +59,10 @@ archclean: $(Q)$(MAKE) $(clean)=$(nios2-boot) %.dtb: | scripts - $(Q)$(MAKE) $(build)=$(nios2-boot) $(nios2-boot)/$@ + $(Q)$(MAKE) $(build)=$(nios2-boot)/dts $(nios2-boot)/dts/$@ dtbs: - $(Q)$(MAKE) $(build)=$(nios2-boot) $(nios2-boot)/$@ + $(Q)$(MAKE) $(build)=$(nios2-boot)/dts $(BOOT_TARGETS): vmlinux $(Q)$(MAKE) $(build)=$(nios2-boot) $(nios2-boot)/$@ diff --git a/arch/nios2/boot/Makefile b/arch/nios2/boot/Makefile index 2ba23a679732..007586094dde 100644 --- a/arch/nios2/boot/Makefile +++ b/arch/nios2/boot/Makefile @@ -47,10 +47,6 @@ obj-$(CONFIG_NIOS2_DTB_SOURCE_BOOL) += linked_dtb.o targets += $(dtb-y) -# Rule to build device tree blobs with make command -$(obj)/%.dtb: $(src)/dts/%.dts FORCE - $(call if_changed_dep,dtc) - $(obj)/dtbs: $(addprefix $(obj)/, $(dtb-y)) install: diff --git a/arch/nios2/boot/dts/Makefile b/arch/nios2/boot/dts/Makefile new file mode 100644 index 000000000000..f66554cd5c45 --- /dev/null +++ b/arch/nios2/boot/dts/Makefile @@ -0,0 +1 @@ +# SPDX-License-Identifier: GPL-2.0