From patchwork Mon Oct 1 15:25:24 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: 147918 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp4045265lji; Mon, 1 Oct 2018 08:26:31 -0700 (PDT) X-Google-Smtp-Source: ACcGV60svtAqN8gZZhTdgXnlLrXwfuGarNVWHCiRKu8UOITkeGNeYzDnL7CnKjSVMYNK9DsifWst X-Received: by 2002:a17:902:2:: with SMTP id 2-v6mr12667718pla.178.1538407591485; Mon, 01 Oct 2018 08:26:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538407591; cv=none; d=google.com; s=arc-20160816; b=gtmP2PJdG25T3+bMM6CYr2/u+1sPFiPayuYHi47CCrivsFXbl2ywf4PXG2f6rkyww0 0UFSvE9drhGhmjB0eVGBwgpeNiBtHYavx40urNmsewovmOhXJxujH7677dOngregTSpG Vmi5i8IMzAc2wAZR6wixJ/aF8Ho5Eho9LqQJ5t3eevEKoGaJhEFzq5gI9OdqWGgBIXV3 u4AlWxMepdoCmN9nph/ygaVOFx4GGlBVwFnI1GDY72sDx47ODnTg1ScKGOksMmUPpyrO LE3KXlRPnz9OYtPeprkeo6E78Irqu6vkhS9mknBcaKDIHJXzVGmCwPWihVskT8NuauwD sRSA== 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=FWWpu/rZ73LHeaOx/3FicCXTVC+bW2dp+6ooQF6mKYw=; b=KRZsYS87MqiRlt+rYS44wLIMjFcbfWBOapTwWhpUFIWf/Mn+NVOJrbc/rkANPoKHIb F+iIQiquyXI1/NW9/dRCSCxDqXCuhmVI5VkJ87BDrHhSTicvNQzT8/0GWFsUocC14CYI fEr2XtVPvm2sk+1SsCDWDkJgf/+kkizaNEOpsD0O1QVI6huwi4+RTPDiWymgIYy7CNTn 9DO8S7yPEaMHH/gY4sWaLwGeLmBM+8mhDMSAVNInIJhIiJixeVX5GmDMo8AwT7s/tNZh jgitDtVdW30cDtsna00zj9X8CGkPrkfLujc6DdHBGElkQRLk083y5B4Q8xo92IniaMG0 qrJw== 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 y86-v6si12988194pfi.195.2018.10.01.08.26.31; Mon, 01 Oct 2018 08:26:31 -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 S1729605AbeJAWD5 (ORCPT + 32 others); Mon, 1 Oct 2018 18:03:57 -0400 Received: from mail-oi1-f194.google.com ([209.85.167.194]:37226 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729579AbeJAWD4 (ORCPT ); Mon, 1 Oct 2018 18:03:56 -0400 Received: by mail-oi1-f194.google.com with SMTP id e17-v6so10647192oib.4; Mon, 01 Oct 2018 08:25:37 -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=FWWpu/rZ73LHeaOx/3FicCXTVC+bW2dp+6ooQF6mKYw=; b=jwjlEUlqHfknZcmVHX/gng2XsekZOCF9s/XbXupNkqADUcqahX2UI/83T2BCXbJSHm lPDL39Z6GVq2S7Z/QxNqnqkQBTEJlcReLXsosyVXhal3VK1zLcMSuS++yeMIzjK4pmiM /5AVjWLK2kp4Tgq6afxTETfdIkKElsqs6uSCEwFWH9QlTAgIPvFwQQisMzxhXLUqNQhj Iev+j3/tlvOJSEU5zDsqvotyXV6HI+BuSrPkA60M6VyTIXTwp/NGU3GHLlojKB/02lkc kA3aes1SAl/+zF0eFq8SJh88lIRB79uZMHkmGRsbugm4UBr7FA+NUm1JIgZbyzVhbpH8 Rw4Q== X-Gm-Message-State: ABuFfoiJ3Rl4dPLcDrf0EyrnH3tWwgGtAYNDFMwY0nZp/M4tVwVb/3bo A3BVl2/XvqYAUS6Mcy0SVbUexLGwQQ== X-Received: by 2002:aca:e64b:: with SMTP id d72-v6mr2505124oih.314.1538407536522; Mon, 01 Oct 2018 08:25:36 -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.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Oct 2018 08:25:35 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Masahiro Yamada , Frank Rowand Cc: Ley Foon Tan , nios2-dev@lists.rocketboards.org Subject: [PATCH v4 2/9] nios2: build .dtb files in dts directory Date: Mon, 1 Oct 2018 10:25:24 -0500 Message-Id: <20181001152531.3385-3-robh@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181001152531.3385-1-robh@kernel.org> References: <20181001152531.3385-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 --- 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