Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1267038imu; Sat, 17 Nov 2018 21:07:52 -0800 (PST) X-Google-Smtp-Source: AJdET5daWm6h8QWa1pu6MKRczm5hqnKc9ytpfNO4IZx1DY7jFWPyOLFnrviOVYi8GeD3DNTp4qe0 X-Received: by 2002:a17:902:404:: with SMTP id 4-v6mr17726197ple.331.1542517672338; Sat, 17 Nov 2018 21:07:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542517672; cv=none; d=google.com; s=arc-20160816; b=xmfBhGaH8Sku2vjvWCO9lq0d3ECpXNSiFyYxTp3IYZMFvnIl5yO9M0MhA/yuewvKdn BY7kNl75+6lQ4YJQSOAyPA1jcLJ/dF9Ynosjt9VrQSzVI7sSTapHRVj3CSqycPJ/TtH/ DBw7ayTpO/OfYUo0KvZkl2F7L0YiKiExmOQiMHwHcBV2q+kOHCc/CmvTrueDFykC46SX tXVE5VsrewngBeuVo2dx4H6Lh2N/9Ps0XjcuYoDqSE5sr7poVbL08V4Bqp29Ghn7Kb+2 YplXNjTla+C+kKstsf/wfTeNbxKk5muZnGTjXtqp6ZL/8sod6LK1sR6e+9kkIpeNsKzh 2Sgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=dQpLK/4cyORAuLT6tU0euQEKA/LcBrscM9+Y7QXyxGk=; b=RagwbXyED994QmJNWKGWKeOSdt5hlQ4UqxvFpby+2UyvEhCBOIxfgX7RDCAMuDfuZb FmeUEC+r/BuVez/aOo3Rsvlv5cbA7GugBstg6bprT45hIec6/EiFDfUtG/r3Mds5cQDg 2kA8uZI7OJMaPXLsr7/lIEVaEg90NECq7XLqsv+/cFsy4rpZd+9rAiaD+xKXT6CZcXij lQd4x8DI6oJ7wZMZNb6UgxGiyAFRrwbnhUAf3QbUux6d2+qitg4lA0lEfSraYj3iIJlG wf3LMbzsRvuE1yjEo35T8yrSX9qdhdis5Mkm8CTJvdNHmY8NqndOSSbwtL8q5EwI97VD KNrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=y3872g0g; 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 64-v6si37443959ply.246.2018.11.17.21.07.02; Sat, 17 Nov 2018 21:07:52 -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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=y3872g0g; 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 S1726978AbeKRPUb (ORCPT + 99 others); Sun, 18 Nov 2018 10:20:31 -0500 Received: from conssluserg-05.nifty.com ([210.131.2.90]:49952 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725942AbeKRPUb (ORCPT ); Sun, 18 Nov 2018 10:20:31 -0500 Received: from mail-ua1-f50.google.com (mail-ua1-f50.google.com [209.85.222.50]) (authenticated) by conssluserg-05.nifty.com with ESMTP id wAI51836017049; Sun, 18 Nov 2018 14:01:09 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com wAI51836017049 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1542517269; bh=dQpLK/4cyORAuLT6tU0euQEKA/LcBrscM9+Y7QXyxGk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=y3872g0gcPrJ08CHG2SCOBqaILUGEIcnJufphJKS6nwKkxlywG04tqnmZ6HmC7L0r 60EKF16GagynkzMaKqtLf4iXt1mUB0YdVxfOsntEXnADqSEMPwTKG9CODSrnlcDg39 LyjVyEfzYCnS5FcCzr5apLjRaYsVf+Ckb4WADkyK2Ar+a2QwfQIH1BypGIFLxh+PHg 9A+I8Bbvbts/y2JxhiExX9IQ7fwyvPrmWdyloCDbDJpRqlIrJ3TrGZgKYt71Jo5YLF /UOCLB8zyNfYi6wSYLMeQNsmVVjztVWQE0Uy9fMJP18uRlS9TofuA8q6IjzuUq9v0M vd7XthQhVclDw== X-Nifty-SrcIP: [209.85.222.50] Received: by mail-ua1-f50.google.com with SMTP id e16so8428395uam.12; Sat, 17 Nov 2018 21:01:08 -0800 (PST) X-Gm-Message-State: AGRZ1gJmrv5OBgfrwAiIJxrev1cC2+gYgjrJiGTNpjpYlkgXNjJbemCG z2DHELAFEMmQZgw8n2w5a4eB/qXmR2KSrZ9gvsk= X-Received: by 2002:ab0:849:: with SMTP id b9mr7846850uaf.93.1542517267868; Sat, 17 Nov 2018 21:01:07 -0800 (PST) MIME-Version: 1.0 References: <1542270435-11181-1-git-send-email-yamada.masahiro@socionext.com> <1542270435-11181-4-git-send-email-yamada.masahiro@socionext.com> <20181116200109.GC15240@ravnborg.org> In-Reply-To: <20181116200109.GC15240@ravnborg.org> From: Masahiro Yamada Date: Sun, 18 Nov 2018 14:00:31 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 3/8] kbuild: refactor modversions build rules To: Sam Ravnborg Cc: Linux Kbuild mailing list , Nicolas Pitre , Rasmus Villemoes , Michal Marek , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sam, On Sat, Nov 17, 2018 at 5:01 AM Sam Ravnborg wrote: > > 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. Shifting code from Makefile to a shell script will be another clean-up. This patch is addressing a different problem. See this code in Malefile.build ifdef CONFIG_MODVERSIONS objtool_o = $(@D)/.tmp_$(@F) else objtool_o = $(@) endif cmd_cc_o_c writes an object into a different file name depending CONFIG_MODVERSIONS, which makes difficult for other actions to manipulate the object in a consistent manner. I will clarify this in the commit log in v2. Thanks. > 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 -- Best Regards Masahiro Yamada