Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp894403imu; Fri, 16 Nov 2018 12:02:05 -0800 (PST) X-Google-Smtp-Source: AJdET5c7dq1f9yrj7EQ3d1ysuHtZ/wNBCmuhELpPbEbRjCFRhnvbaaN9oYuMcGeCkboAHqtNBsRs X-Received: by 2002:a63:6645:: with SMTP id a66mr3010943pgc.390.1542398525089; Fri, 16 Nov 2018 12:02:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542398525; cv=none; d=google.com; s=arc-20160816; b=OQxSDIAK5SLRnGREadWa9ylt4sHq1C9rm2RS0XAdAYvSY7qJe2oDj3yIli6pQS7WDW 4/qroxYjLtGCXlkwabIHfiYV7H/iWPcX8bAx6H8Zo+xmAadImptPzQaVnXOwSFRbhrwh FyxuPH/A/yG2uLeoc2OuccG7zI6lQKeE20t1mMRvz1u5yo/BXJ3D0E/XJ9W17LbYp0G7 BHAz33A58P2n6d+jq5VXgCWcmgiFs1/jJdogLI4efkGI1NK9Cb2OCUBO0I8RMH4NMmVQ DIJjLk0i0Sy5HoZ8Am5cpxbW4rV5WowKPeJl8G/iIfTFgBn1XrDI514FGbAg9k5jSi5u b/1w== 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; bh=WXj/TH/4XJEjHsziFDLGjupp3H3u5u0eYFdHvTBJEX0=; b=JOroyHV5+ElqEX0uq/FezLiEFzSUJd/V+eFhJzHqwXQ07GWvsrQ9AXqD8gYQYZLeGl hYWYcDgWetsE1/+29e4+Qg6jxWJ237w+KLXsO8UlW+jnK4vFOm2g3p5izAQsqaOfMVGr en0DYvaIRVQhSzHfCYzPFCPfceo78m8OkBwqkmWyG+KYXQAUv86pJ549IuvHJSDyqV8S qlC0xpl6g8ssFoxxy7iGBAlnybD4bWrrLTluRNSqfem3DuZjLcSDsoUU6l2yduQTEU0i wjTLC3fr05qCm0Rly+tymRQpFAg0vtOT+6+AwW9qOr92G4LHF8LDdujcWvIKvA+R2VIl FfSw== 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 g22si17311873pfj.222.2018.11.16.12.01.50; Fri, 16 Nov 2018 12:02:05 -0800 (PST) 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 S1726529AbeKQGPB (ORCPT + 99 others); Sat, 17 Nov 2018 01:15:01 -0500 Received: from asavdk3.altibox.net ([109.247.116.14]:58805 "EHLO asavdk3.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725753AbeKQGPB (ORCPT ); Sat, 17 Nov 2018 01:15:01 -0500 Received: from ravnborg.org (unknown [158.248.194.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by asavdk3.altibox.net (Postfix) with ESMTPS id DE8C720027; Fri, 16 Nov 2018 21:01:10 +0100 (CET) Date: Fri, 16 Nov 2018 21:01:09 +0100 From: Sam Ravnborg To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, Nicolas Pitre , Rasmus Villemoes , Michal Marek , linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/8] kbuild: refactor modversions build rules Message-ID: <20181116200109.GC15240@ravnborg.org> References: <1542270435-11181-1-git-send-email-yamada.masahiro@socionext.com> <1542270435-11181-4-git-send-email-yamada.masahiro@socionext.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1542270435-11181-4-git-send-email-yamada.masahiro@socionext.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=dqr19Wo4 c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=kj9zAlcOel0A:10 a=lYPL5hkgdnwD7H-L1kUA:9 a=CjuIK1q_8ugA:10 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Masahiro On Thu, Nov 15, 2018 at 05:27:10PM +0900, Masahiro Yamada wrote: > Let $(CC) compile objects into normal files *.o instead of .tmp_*.o > whether CONFIG_MODVERSIONS is enabled or not. This will help simplify > build rules a lot. Another approach would be to move more of the build stuff to one or a few build scripts. Using build scripts makes is much easier to add comments and still keep it readable. And when the build logic list a set of serialized actions they thay can be included in a build script nicely. But that said - I also like the simplifications you made. Everytime you trim the core kbuild files it is a win for readability. Sam