Received: by 10.192.165.156 with SMTP id m28csp528946imm; Tue, 17 Apr 2018 14:39:30 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+Borfw7N7Veo/ncKKT7s0e1l+BrwKPcfQtZh18FNHQc+BgEm7caw5GDAh3w0ndky8ExAaa X-Received: by 10.99.117.26 with SMTP id q26mr3047334pgc.338.1524001170501; Tue, 17 Apr 2018 14:39:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524001170; cv=none; d=google.com; s=arc-20160816; b=HWL/PUV+5FY65RCX6WzyP2FYAK1HpuRxSTdi/iSRLywVirhM9+Y//Sau514qdG2a96 3E/bYVs2c9qelNR6/NmdPWOcf+zBm0sP9E2hO/aG8/deO7vC5HkgXqG+ll4MMWlzSnzl 4bmd6i9jDDnY28BdUP4fFua4LKNzyqnMuS5c1PNSUuvdR47PcsU2rxN0T8FtNzcFy6ip 0IfxMT7DXvJwE5hN7IsKyRR2CGbD8qKKJ13g4/CxypOGHIGK+8blOWdc5rxYBFqrTUMe pVAEy+MAgm66rGeG+P2LVx+FazxzuORqhM17tqmpy3edlvKC/sbgF6rlnGRmbt+Ggo75 uGzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:arc-authentication-results; bh=yvuR7rxMpLIlng0Oc9X6mQ1buZxy6s536dwbCw7fB8o=; b=m32C7BkhV461vlzP4XiB6fLyC7WK/sICtOPIPq+pZ8OVL/9ICpXxA17QFlC5C/ebnw X3zRW9bBnY+iXfsUQkcFBMmRN88I8wMkMPJyZNxfJ4HnCoRAU7vvF+yX69fIfO2LRkfy rI+H4VHo2ZrvEZsTOGt+INa5xjI9kBFpBcWudTNJ+ehEHRAWuYVVUMHakLbTKt+B1k83 KbyH5lYxo+TDSuiZgNL9qc4O67GXY+o7DTa3GEOklBvboTLZu3aJFVzlayYBsI0PUZ/7 7cJNLHddMrUWRTaKPqK5QwtxjoRyUM9NCkiOoKP2Pu5S/0v/bdN7w+3MemKPinBtrDMP rFhg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 196si12491282pgb.674.2018.04.17.14.39.14; Tue, 17 Apr 2018 14:39:30 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753375AbeDQVhq (ORCPT + 99 others); Tue, 17 Apr 2018 17:37:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:35870 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753346AbeDQVhn (ORCPT ); Tue, 17 Apr 2018 17:37:43 -0400 Received: from saruman (jahogan.plus.com [212.159.75.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7238321789; Tue, 17 Apr 2018 21:37:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7238321789 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=jhogan@kernel.org Date: Tue, 17 Apr 2018 22:37:36 +0100 From: James Hogan To: Masahiro Yamada Cc: Ralf Baechle , linux-mips@linux-mips.org, Paul Cercueil , devicetree@vger.kernel.org, Arnd Bergmann , Zubair Lutfullah Kakakhel , linux-kernel@vger.kernel.org, Thomas Gleixner , Philippe Ombredanne , Mathieu Malaterre , Alexandre Belloni , Kate Stewart , Greg Kroah-Hartman , Mark Rutland , Rob Herring , Harvey Hunt Subject: Re: [PATCH] MIPS: dts: avoid unneeded built-in.a creation in vendor DTS directories Message-ID: <20180417213736.GC21386@saruman> References: <1523893290-7958-1-git-send-email-yamada.masahiro@socionext.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jousvV0MzM2p6OtC" Content-Disposition: inline In-Reply-To: <1523893290-7958-1-git-send-email-yamada.masahiro@socionext.com> User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --jousvV0MzM2p6OtC Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 17, 2018 at 12:41:30AM +0900, Masahiro Yamada wrote: > arch/mips/boot/dts/Makefile collects objects from sub-directories > into built-in.a only when CONFIG_BUILTIN_DTB is enabled. Reflect > it also to the sub-directory Makefiles. This suppresses unneeded > built-in.a creation in arch/mips/boot/dts/*/ directories. >=20 > While I am here, I replaced $(patsubst %.dtb, %.dtb.o, $(dtb-y)) > with $(addsuffix .o, $(dtb-y)) to simplify the code a little bit. >=20 > Signed-off-by: Masahiro Yamada > --- >=20 > arch/mips/boot/dts/brcm/Makefile | 2 +- > arch/mips/boot/dts/cavium-octeon/Makefile | 2 +- > arch/mips/boot/dts/ingenic/Makefile | 2 +- > arch/mips/boot/dts/lantiq/Makefile | 2 +- > arch/mips/boot/dts/mscc/Makefile | 2 +- > arch/mips/boot/dts/mti/Makefile | 2 +- > arch/mips/boot/dts/netlogic/Makefile | 2 +- > arch/mips/boot/dts/pic32/Makefile | 2 +- > arch/mips/boot/dts/ralink/Makefile | 2 +- > arch/mips/boot/dts/xilfpga/Makefile | 2 +- > 10 files changed, 10 insertions(+), 10 deletions(-) >=20 > diff --git a/arch/mips/boot/dts/brcm/Makefile b/arch/mips/boot/dts/brcm/M= akefile > index d8787c9..d85f446 100644 > --- a/arch/mips/boot/dts/brcm/Makefile > +++ b/arch/mips/boot/dts/brcm/Makefile > @@ -34,4 +34,4 @@ dtb-$(CONFIG_DT_NONE) +=3D \ > bcm97425svmb.dtb \ > bcm97435svmb.dtb > =20 > -obj-y +=3D $(patsubst %.dtb, %.dtb.o, $(dtb-y)) > +obj-$(CONFIG_BUILTIN_DTB) +=3D $(addsuffix .o, $(dtb-y)) I like this. I had also spotted the .o files being unnecessarily generated when building the dtbs target with bmips and CONFIG_DT_NONE=3Dy. I'll apply for 4.18. Thanks James --jousvV0MzM2p6OtC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEd80NauSabkiESfLYbAtpk944dnoFAlrWaSAACgkQbAtpk944 dnpdnw//YD2A/1lEIzZxj8CEUQ2ujJJrxQouFF1sJi9IXcJbCLSImNRiuI9qsoc3 h9T4YeQAAHCkXjIfwwQ2HL3wkCH+KK3xnF/Hq6h6wSMFcFHvoDRNrDwLP6XQx/xL 4cEtVo5DD2IltrFqx1aKI2LFZ9t3kFvaDPQx8rmpLQy/eeExvOG7x0B9MnI49wrT 5wChz2eKWFj3ngy5PSkMD1KaOfjT8aL5gzgLMKGvl6byo5nuiMSG3waSe8K0izJu KPuwgmL5bJp/hEJOCmc9IiG9HzYlBLzC5wXnkkZ+AGx7wj8N6J6A8fgboziQqvND CM9LdLwETacwHijTRpRZb66/OjjBgD4gg0Q3Djd6rdkpJJ/g632wZiZm0z8dP722 BxEfunGnDtUl02fTfcPwLlnMQPDXdQ3ZwyRdl5gbPhGHK6jp5aYVU9bXTcDmimOm /SxylcFCf625dBWeqa0JdxR+UvsOnq6B5iTPhQQ2NYG6E6FPZy+tcFGuuYPzYXld Lm/SVcoGlfWQpUMm4QMWq8QCISzGQ4bH+c53JzgBpNQ+Hgif+TZGh9SWZFiNfDXw vQj2DBxAysPkje/ZFNQ+poAwQqvG1WApk9BUvDsojLcP/8TmV8jQuFwdez4n/P64 HA5fXyD8gVVezoGESjXOdmVQOBpZS+siBHrvSBOootQH1zyHgUA= =wV2M -----END PGP SIGNATURE----- --jousvV0MzM2p6OtC--